Guide
Translating DNA or mRNA into protein: codons, reading frames, genetic codes and ORFs
The genetic code connects the four-letter language of DNA and RNA to the twenty-letter language of proteins: each group of three bases, a codon, specifies one amino acid or a signal to stop. Given a nucleotide sequence you can work out the protein it would produce, if you know the strand, the reading frame and the code. This tool does the translation for you, with the codons laid out beside the amino acids, and it can search a sequence for open reading frames.
How translation works
A codon is three bases, so a sequence is read in steps of three from a starting position. Of the 64 possible codons, 61 specify amino acids and three, TAA, TAG and TGA in the standard code, are stop signals, written “*”. Translation normally begins at a start codon, ATG, which also codes for methionine. The tool reads the sequence from base 1, 2 or 3, which are the three frames, and translates every complete codon; a trailing one or two bases are reported as leftover.
Choosing the strand and the code
Under The sequence is, choose the coding (sense) strand, the template (antisense) strand or mRNA. A template strand is reverse-complemented first so that it reads like the coding strand, and RNA is read with U treated as T. Choose the genetic code: the standard code (table 1), the vertebrate mitochondrial code (table 2) or the bacterial, archaeal and plastid code (table 11). You can stop at the first stop codon or read through, and show one- or three-letter amino acid names.
Worked examples
The default ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG has 39 bases and 13 codons, and translates in frame 1 to MAIVMGR*KGAR*: eleven amino acids and two stops, one at the TGA after Arg and one at the final TAG. With stop-at-first on, it ends at MAIVMGR*. A 90-base insulin B-chain gene fragment gives the 30-residue peptide FVNQHLCGSHLVEALYLVCGERGFFYTPKT. The mRNA AUGGCCAUUGUAAUGGGCCGCUGA read to the stop is Met-Ala-Ile-Val-Met-Gly-Arg-Stop in three-letter code.
The codon table
Below the protein the page lists each codon with its amino acid and the three-letter name, for example ATG, M, Met for the first codon, up to 120 codons, with a note if there are more. This makes it easy to check a translation by hand, to see where a mutation changes an amino acid, or to find which stop codon ended the protein. Codons containing an ambiguous base such as N are shown as X, for an unknown residue.
The three codes
The standard code is used by the nuclear genes of most organisms. Vertebrate mitochondria differ: TGA codes for tryptophan instead of stopping, AGA and AGG are stops instead of arginine and ATA codes for methionine instead of isoleucine, so ATGATAAGAAGGTGA translates to MM**W there but to MIRR* in the standard code. Table 11 has the standard amino acids with extra start codons, used by bacteria, archaea and plastids.
Open reading frames
Choose Find open reading frames on all six frames, a minimum length in amino acids and the start codons: ATG only, or ATG plus the alternative starts of the code, such as TTG and CTG in the standard code or GTG and the ATT, ATC and ATA codons in the bacterial code. For each ORF the table shows the strand, frame, start and end positions, the length and the protein, longest first, and the longest is offered as a FASTA text. In the default sequence one ORF of 7 amino acids, MAIVMGR, starts at base 1 and ends at 24.
Limits
Real genes in eukaryotes contain introns, so a protein is often not a single continuous reading frame in genomic DNA; the tool does not predict genes or splicing and does not translate across introns. A long ORF is a candidate, not proof, and short ORFs occur by chance in any sequence. Positions on the minus strand count along the reverse complement. Selenocysteine, pyrrolysine and other special cases are not recognised.
Related tools
- DNA Reverse Complement Tool produces the other strand to translate.
- Primer Tm Calculator helps design primers that flank an ORF.
- Punnett Square Calculator links genes to inheritance.
- Diversity Index Calculator is the ecology counterpart in this set of biology tools.
Checked against the current version of the DNA to Protein Translator on .

