DNA Translation Tool

Translate any DNA sequence into its corresponding protein using either the standard genetic code or vertebrate mitochondrial code. Select reading frame, reverse complement, and visualize each codon's amino acid property. Includes GC content calculation and ORF detection.

Only letters A, T, G, C (case insensitive). Spaces and digits are ignored.
? Insulin fragment: ATGGCCCTGTGGATGCGC
⏹️ Start/stop: ATGAAATAG
? GC‑rich: GCGGGCGCCATGGCC
? Random: ATCGATCGATCG
? Test reverse complement: ATGCCCTAA
? Mito test: ATATAA
Privacy first: All calculations are performed locally. Your DNA sequence never leaves your browser.

From DNA to Protein: The Genetic Code

The DNA translation tool simulates the biological process by which ribosomes decode messenger RNA (derived from DNA) into polypeptide chains. Each triplet of nucleotides, called a codon, specifies a single amino acid or a stop signal. This tool uses the standard genetic code (NCBI translation table 1) and optionally the vertebrate mitochondrial code (NCBI table 2), which differs in several codon assignments.

5′‑DNA → 3′‑mRNA → Protein (N‑terminus to C‑terminus)

ATG (start) → Methionine (M)    Stop codons vary by table.

Why Use an Interactive DNA Translator?

  • Verify cloning constructs: Ensure your insert encodes the correct protein without frameshifts.
  • Educational tool: Visualize how reading frames affect the resulting amino acid sequence.
  • Reverse complement support: Easily translate the opposite strand (e.g., for antisense transcripts).
  • Codon property chart: See at a glance the distribution of hydrophobic, polar, and charged residues.
  • Mitochondrial code support: Translate mtDNA sequences with the correct vertebrate mitochondrial genetic code.

How Translation Works – Algorithmic Details

Given a DNA sequence, the tool:

  1. Strips whitespace/digits and converts to uppercase. Validates characters (only A, T, G, C).
  2. If reverse complement is selected, generates the complementary strand (A↔T, G↔C) and reverses it (5'→3').
  3. Applies the chosen reading frame (1, 2, or 3) by discarding the first (frame-1) nucleotides.
  4. Splits the resulting sequence into non‑overlapping triplets (codons). Partial final codon is ignored.
  5. Looks up each codon in the selected codon table (standard or vertebrate mitochondrial) and returns the one‑letter amino acid code or '*' for stop.
  6. Calculates GC content: (G+C count) / total nucleotides × 100.
  7. Assigns each amino acid a color class for visualization based on its physicochemical properties.

The codon‑amino acid mappings are derived from the NCBI taxonomy database, ensuring accuracy and consistency with current biological knowledge.

Codon Table Preview (first 32 codons, based on selected code)

Use the dropdown above to switch between standard and mitochondrial code. Stop codons shown as *.

Case Study: Insulin Mini‑Gene

Human insulin is synthesized as preproinsulin. A short fragment coding for part of the B‑chain: ATGGCCCTGTGGATGCGC translates to M A L W M R in the standard code. The tool correctly identifies the start codon (ATG) and translates each triplet. Researchers use such translations to verify synthetic gene sequences before ordering oligos. The interactive bar chart reveals the alternating hydrophobic (leucine, methionine) and polar (arginine) residues, aiding in secondary structure prediction.

Common Misconceptions

  • DNA is directly translated: In cells, DNA is first transcribed to mRNA; however, for computational translation we can directly use the DNA coding strand (T replaced by U in RNA conceptually). Our tool mimics this by treating T as U for codon lookup.
  • All start codons are ATG: In rare cases alternative start codons exist (e.g., GTG, TTG) but this tool strictly uses ATG = M and does not treat others as start (they are translated as Val/Leu).
  • Reverse complement gives the same protein: Usually not; the complementary strand encodes a completely different peptide.
  • Mitochondrial code is identical to standard: No, important differences exist (e.g., AUA = Met, AGA/AGG = stop in vertebrates).

Applications Across Fields

  • Synthetic biology: Codon optimization and back‑translation.
  • Forensics: Translation of mtDNA hypervariable regions (requires mitochondrial code).
  • Phylogenetics: Comparing protein sequences derived from DNA.
  • Education: Teaching the central dogma in an interactive way.

Built on authoritative data – This tool implements the standard genetic code (NCBI translation table 1) and vertebrate mitochondrial code (NCBI table 2) as provided by the NCBI Taxonomy database. All translations follow IUPAC nucleotide conventions and are validated against UniProt reference sequences. Regular reviews ensure alignment with current biological knowledge.Last reviewed Feb 2026

Frequently Asked Questions

It generates the complementary strand (A↔T, G↔C) and reverses the direction to represent the antiparallel strand in 5'→3' orientation. This is essential if your DNA sequence is from the opposite strand (e.g., in annotation files).

Asterisk (*) represents a stop codon (e.g., TAA, TAG, TGA in standard code). In a complete coding sequence, translation would terminate at the first stop codon. Our tool translates all codons, so you may see multiple stops if the sequence is not an open reading frame.

Yes, the tool accepts both T and U (they are treated identically). For RNA sequences, you can type U, and it will be correctly mapped in the codon table.

GC% = (number of G + number of C) / total nucleotides × 100. It's an important metric for primer design and PCR efficiency.

In vertebrate mitochondria: AUA codes for Met (instead of Ile), AGA and AGG are stop codons (instead of Arg), and UGA codes for Trp (instead of stop). Our tool implements these differences when you select "Vertebrate mitochondrial".

Visit Khan Academy or the NCBI Bookshelf for molecular biology primers.
Data sources: NCBI Genetic Codes; UniProt; Alberts B. et al. "Molecular Biology of the Cell" (6th ed.).