DNA to mRNA Converter

DNA to mRNA Converter

Paste a DNA sequence from either strand to get the mRNA it codes for, written 5′→3′ in codons, and translate it into a protein from the first start codon.

Coding strand: T → U · Template strand: A→U, T→A, G→C, C→G, then read 5′→3′

Which strand did you paste?

The strand RNA polymerase reads, written in the usual direction. The tool reverse-complements it.

Spaces, line breaks, numbers and FASTA header lines (starting with >) are ignored.

mRNA, 5′→3′
AUGGCCUGGAAAUAA
AUG GCC UGG AAA UAA
Protein from the first AUG
MAWK
Met-Ala-Trp-Lys-Stop
Starts at base 1. 4 amino acids, then a stop codon.
15
Nucleotides
5
Codons from base 1
40%
GC content

How DNA Is Transcribed into mRNA

To get the mRNA, take the coding strand of the DNA and swap every T for U. If you only have the template strand, write its complement (A→U, T→A, G→C, C→G) and make sure you read the result 5′→3′.

In the cell, RNA polymerase moves along the template strand from its 3′ end to its 5′ end, building the RNA from 5′ to 3′ by base pairing. The result is complementary to the template and therefore matches the other strand, the coding strand, apart from using uracil instead of thymine.

The ribosome then reads the mRNA three bases at a time from a start codon, AUG, until it meets a stop codon (UAA, UAG or UGA). This tool does that translation too, using the standard genetic code.

Coding Strand vs Template Strand

Coding 5′-ATG GCC TGG AAA TAA-3′
Template 3′-TAC CGG ACC TTT ATT-5′
mRNA 5′-AUG GCC UGG AAA UAA-3′
Protein Met Ala Trp Lys Stop
  • Coding strand (also called the sense or non-template strand): reads the same as the mRNA. Gene sequences in databases are almost always this strand, written 5′→3′.
  • Template strand (antisense): what the polymerase actually reads. Textbooks often write it 3′→5′ underneath the coding strand, as above. If yours is written 5′→3′, it has to be reversed as well as complemented.

Worked Example: a Template Strand Written 5′ to 3′

Given:
Template strand 5′-TTATTTCCAGGCCAT-3′
Reverse:
3′-TACCGGACCTTTATT-5′
Complement:
5′-AUG GCC UGG AAA UAA-3′
Translate:
Met-Ala-Trp-Lys-Stop (MAWK)
Result:
AUGGCCUGGAAAUAA. Complementing without reversing would give AAUAAAGGUCCGGUA, which has no start codon and codes for nothing sensible.

The mRNA Codon Table

The standard genetic code used by the translator above. Rows are the first base, columns the second; each cell lists the third base.

Standard genetic code: amino acid for each of the 64 codons
1st \ 2ndUCAG
U
UUU Phe
UUC Phe
UUA Leu
UUG Leu
UCU Ser
UCC Ser
UCA Ser
UCG Ser
UAU Tyr
UAC Tyr
UAA Stop
UAG Stop
UGU Cys
UGC Cys
UGA Stop
UGG Trp
C
CUU Leu
CUC Leu
CUA Leu
CUG Leu
CCU Pro
CCC Pro
CCA Pro
CCG Pro
CAU His
CAC His
CAA Gln
CAG Gln
CGU Arg
CGC Arg
CGA Arg
CGG Arg
A
AUU Ile
AUC Ile
AUA Ile
AUG Met
ACU Thr
ACC Thr
ACA Thr
ACG Thr
AAU Asn
AAC Asn
AAA Lys
AAG Lys
AGU Ser
AGC Ser
AGA Arg
AGG Arg
G
GUU Val
GUC Val
GUA Val
GUG Val
GCU Ala
GCC Ala
GCA Ala
GCG Ala
GAU Asp
GAC Asp
GAA Glu
GAG Glu
GGU Gly
GGC Gly
GGA Gly
GGG Gly

Common Transcription Mistakes

  • Complementing the coding strand. The mRNA matches the coding strand. Only the template strand gets complemented.
  • Forgetting to reverse. A template strand written 5′→3′ must be reversed as well as complemented, or every codon is read backwards.
  • Pairing A with T in the RNA. RNA has no thymine: template A pairs with U.
  • Translating from the first base. Ribosomes start at a start codon, usually the first AUG, not at base 1. A shift of one base changes every amino acid after it.
  • Expecting genomic DNA to give the protein. Eukaryotic genes contain introns that are spliced out of the mRNA. Paste the coding sequence (CDS) or cDNA if you want the protein.

DNA to mRNA FAQs

Why does RNA use U instead of T?

Uracil is cheaper for the cell to make (thymine is uracil with an added methyl group). DNA uses thymine partly because cytosine can spontaneously turn into uracil; with T in DNA, any U found there is recognised as damage and repaired.

Is AUG always the start codon?

Almost always in eukaryotes. Bacteria sometimes start at GUG or UUG, and even then the first amino acid is usually methionine. This tool starts at the first AUG.

Does the real mRNA look exactly like this?

Not quite. In eukaryotes the transcript is spliced to remove introns, given a 5′ cap and usually a poly(A) tail. The tool shows the sequence that the DNA you pasted directly encodes.

Can I go from mRNA back to DNA?

Yes: replace U with T to get the coding strand. Cells do this only in special cases, such as retroviruses using reverse transcriptase, and labs do it routinely to make cDNA.

Sources

  • NCBI, The Genetic Codes: translation table 1 (standard code).
  • B. Alberts et al., Molecular Biology of the Cell, chapter 6: from DNA to RNA and from RNA to protein.
  • OpenStax, Biology 2e, chapter 15: genes and proteins.

Related Tools