DNA to Normal Text
Decode DNA sequences (A, T, C, G) back into human-readable digital text
Decoding messages written in A, T, C and G
DNA-style encoding is a playful way to hide text: each letter of a message is turned into a string of four nucleobases. This tool reverses it. Paste a sequence made of A, T, C and G and it returns the original text. It is a puzzle and teaching tool, not a piece of laboratory software, and it decodes only sequences written with the same simple scheme used by the Text to DNA Sequence tool on this site.
How to decode a sequence
- Paste or type the sequence into the DNA Sequence Input box.
- Press Decode DNA.
- Read the text in the Decoded Message box. Changing the input clears the previous result.
There are no extra options, and no copy button, so select the decoded text by hand if you need it elsewhere.
The scheme behind it
Computers store text as bytes, and each byte is eight bits. Each base in this scheme stands for two bits, so four bases make up one byte.
- A means 00
- T means 01
- C means 10
- G means 11
For example, the sequence TACATCCT breaks into TACA and TCCT, which give the bytes for the letters H and i, so it decodes to Hi. The resulting bytes are read as UTF-8 text.
Ways to use it
- Solving a biology-themed puzzle, quiz or escape-room clue.
- Teaching how data can be stored in DNA by walking through a small worked example.
- Checking that a sequence you created with the encoder decodes back to the original message.
- Making a nerdy greeting or a hidden line for a science-club newsletter.
Important limitations
Input is converted to capitals and every character other than A, T, C and G is thrown away, so lowercase letters work and spaces or numbers vanish. If you paste a real gene or a FASTA file, you will get meaningless characters, because real DNA does not use this two-bits-per-base mapping. Header lines in a FASTA file can even add stray letters, so delete them. If the number of bases is not a multiple of four, the final partial byte is ignored. A single wrong or missing letter shifts everything after it, which typically turns the rest of the message into odd symbols.
Related Tools