Back to Tools

Text to DNA Sequence

Encode your digital text into biological DNA sequences (A, T, C, G)

0 Total Nucleobases

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

  1. Enter your text in the Input Message box.
  2. Press Encode as DNA.
  3. The sequence appears under DNA Helix Sequence, and the Total Nucleobases card shows how many letters were produced.
  4. 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


Frequently Asked Questions

Is the sequence real, usable DNA?
No. It is a text-encoding game that borrows the letters A, T, C and G. The sequence is not designed for synthesis, has no error correction and does not follow real gene structure, so it should not be used for laboratory work.
How many bases does each character need?
Four for basic English characters. Each character is one UTF-8 byte of eight bits, and every two bits map to one base. Accented letters, symbols and emoji use more bytes and therefore produce longer runs of bases.
What is the mapping between bits and bases?
00 is A, 01 is T, 10 is C and 11 is G. The bits of each byte are read from the left in pairs. For example Hi becomes TACATCCT, which the DNA to Normal Text tool will turn back into Hi.
How do I decode the sequence again?
Paste it into the DNA to Normal Text tool on this site, which uses the same mapping. Copy the sequence with the Copy Sequence button rather than retyping it, because a single missing or wrong letter garbles everything after it.
What does the Total Nucleobases number show?
It is the length of the generated sequence, in letters. It always equals four times the number of UTF-8 bytes in your text, so a five-letter English word gives 20 nucleobases.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.