Text to DNA Sequence
Encode your digital text into biological DNA sequences (A, T, C, G)
Write a message in the four letters of DNA
Researchers have shown that information can be stored in DNA, and this tool gives you a simple, playful version of that idea. Type a message and it is converted into a sequence of the four bases A, T, C and G. It is meant for puzzles, science-club activities and lessons on how data can be represented, not for laboratory synthesis, since the sequence is not designed to be biologically valid.
Encoding your message
- Enter your text in the Input Message box.
- Press Encode as DNA.
- The sequence appears under DNA Helix Sequence, and the Total Nucleobases card shows how many letters were produced.
- Press Copy Sequence to copy it to your clipboard.
Editing the input hides the previous output so you always copy a current result.
How the conversion works
Text is first turned into bytes using UTF-8. Every byte is eight bits, and each pair of bits is mapped to one base.
- 00 becomes A
- 01 becomes T
- 10 becomes C
- 11 becomes G
So each character of plain English becomes four bases. The word Hi gives TACATCCT. Accented letters and emoji use more bytes, so they produce longer stretches of bases. Because every base has a fixed meaning, the process is fully reversible.
Some ideas for using it
- Hiding a secret word in a biology-themed scavenger hunt.
- Showing students how four symbols are enough to store any digital data.
- Making a sequence-style caption or sticker for a science fair.
- Practising binary-to-base conversion by checking your own working.
Things to remember
The mapping is one convention among many, so a sequence made here will only decode correctly with a tool using the same mapping, such as the DNA to Normal Text tool on this site. The output is a single unbroken string with no spaces, start codons or error correction, and it does not follow real gene structure. Long messages produce very long sequences, four letters for every byte. Any typo you introduce while copying or retyping a sequence will shift all the following letters, so copy it with the button and avoid editing by hand.
Related Tools
Related Tools