
DNA Sequence Encoder
Encode text to DNA codon sequences, decode DNA back to text, or translate codons to amino acids.
Last reviewed: April 2026New to this tool? Click here for instructions
How to Use the DNA Encoder
The DNA Sequence Encoder is a free online tool that allows you to encode text to DNA codon sequences and decode DNA back to text or translate codons to amino acids. To use the tool, simply enter the text you want to encode in the 'Text→DNA' section. The tool will automatically encode the text into a sequence of DNA bases using a 2-bit per base scheme. To decode DNA back to text, paste a DNA sequence into the 'DNA→Text' section. The tool will then decode the DNA sequence back to the original text. To translate codons to amino acids, input any DNA/RNA sequence into the 'Amino Acids' section and the tool will translate it using the standard genetic codon table.
When to Use the Tool in Real Workflows
The DNA Sequence Encoder tool is useful in various real-world scenarios, including data storage, digital information transfer, and genetic research. For example, DNA data storage has moved from theoretical concept to practical demonstration. In 2012, George Church's lab at Harvard stored 5.27 megabits of data in synthetic DNA. Microsoft Research has demonstrated retrieval of specific files from a pool of millions of DNA molecules using PCR-based addressing. The theoretical density of DNA storage is approximately 1 exabyte (10^18 bytes) per cubic centimeter - more than a million times denser than a solid-state drive. DNA also survives for thousands of years in cold, dry conditions, as demonstrated by the successful extraction of genetic information from woolly mammoth bones over 40,000 years old. The DNA Sequence Encoder tool can also be used in genetic research to translate DNA sequences to amino acids. This can help researchers understand the genetic code and the relationship between DNA sequences and amino acids. Additionally, the tool can be used in digital information transfer, where DNA can be used as a storage medium for digital data. For example, the tool can be used to encode text to DNA codons and decode DNA back to text, making it possible to transfer digital information using DNA.
How It Works
The DNA Sequence Encoder tool uses a simple 2-bit per base encoding scheme to encode text to DNA codons. Each base maps to 2 bits (A=00, C=01, G=10, T=11). One byte (8 bits) requires 4 bases. The output is displayed in triplet codons separated by spaces, and the bases are colour-coded (green=A, blue=C, amber=G, red=T). The Genetic Code in biology is the set of rules by which a cell translates information encoded in the DNA (or RNA) sequence of a gene into a sequence of amino acids. A codon is a sequence of three bases. With four possible bases, there are 4^3 = 64 possible codons. These 64 codons map to 20 amino acids and 3 stop signals. The code is nearly universal - with minor exceptions in mitochondria and some microorganisms, all life on Earth uses the same codon table, a strong piece of evidence for the unity of life.