Translating a coding sequence into protein means reading it three bases at a time and looking each triplet up in the genetic code. This tool does exactly that for any DNA or mRNA you paste, in your chosen reading frame, and reports the protein in both one-letter and three-letter codes.
How it works
The sequence is cleaned of spaces, uppercased, and any thymine is converted to uracil so DNA and RNA behave identically. Starting from the chosen frame, the tool walks the sequence in non-overlapping triplets and maps each codon through the standard genetic code table.
AUG maps to methionine, the three stop codons map to an asterisk, and the other sixty codons map to their amino acids. Any one or two bases left over at the end cannot complete a codon and are reported as ignored.
The standard genetic code at a glance
The 64 codons map to 20 amino acids plus stop signals. A few key landmarks:
- AUG is the only start codon in the standard code and also codes for methionine (Met, M).
- UAA, UAG, UGA are the three stop codons (shown as
*in one-letter output). - The genetic code is degenerate: most amino acids are coded by more than one codon. Leucine, for example, has six synonymous codons (UUA, UUG, CUU, CUC, CUA, CUG).
- Only methionine (AUG) and tryptophan (UGG) have a single codon each.
This degeneracy is why silent mutations — changes that swap one codon for a synonymous one — often have no effect on the protein sequence.
Worked example
The DNA ATGGCCTTAGGCTAA read in frame +1 splits into ATG GCC TTA GGC TAA,
which translates to Met-Ala-Leu-Gly-Stop, or MALG* in one-letter code.
Shifting to frame +2 starts at the second base (TGGCCTTAGGCTAA), producing
TGG CCT TAG GCT A — Trp-Pro-Stop-Ala — a completely different, much shorter
reading with an early stop codon. This illustrates why frame selection matters
so much.
Reading frame identification tips
If you do not know the correct frame, try all three and apply these heuristics:
- The correct ORF (open reading frame) usually starts with Met (AUG) and runs for many codons before the first stop.
- Incorrect frames typically hit a stop codon within a few triplets.
- If you have the protein length from a database record, count which frame produces a matching number of codons before the stop.
Remember this tool translates the strand you paste as written. To translate the complementary strand, reverse complement the sequence first. The standard NCBI table 1 is used here — mitochondrial and a few bacterial codes differ and need a specialised tool.