Text Tools · Biology
DNA reverse complement, protein and GC%.
Paste a DNA sequence to get its reverse complement, its protein translation in three forward frames, and its GC content. Nothing you enter leaves this page.
Sequence
Result
How it works
- Reverse complement: each base is swapped for its Watson-Crick partner (A with T, C with G), then the order is reversed, so the result reads 5′ to 3′ on the opposite strand.
- Translation: codons are read with the NCBI standard genetic code, table 1 (NCBI Taxonomy, The Genetic Codes). Frames 1, 2 and 3 start at the first, second and third base of the strand you entered.
*marks a stop codon (TAA, TAG, TGA); a trailing partial codon is ignored and a codon containing N shows as X. Other genetic codes (for example vertebrate mitochondrial) are not applied. - GC content: (G + C) divided by total bases, as a percentage. N counts toward length but not toward GC.
- Input: letters A, C, G, T, U and N only. U is read as T. Lines starting with > (FASTA headers) are skipped, and spaces and digits are removed.
- Reverse strand proteins: to translate the opposite strand, copy the reverse complement back into the box.
Reverse complement, step by step
DNA is double stranded and the two strands run in opposite directions. Adenine pairs with thymine and cytosine pairs with guanine, so if you know one strand you know the other. The catch is direction: sequences are written 5′ to 3′, and the partner strand also reads 5′ to 3′ when written out, which means you must complement every base and reverse the order. Forgetting either step is the most common mistake.
Worked example
The placeholder sequence in the box, ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG, has 39 bases. Its reverse complement is CTATCGGGCACCCTTTCAGCGGCCCATTACAATGGCCAT. You can check the first and last bases: the original ends in G, so the reverse complement begins with its partner C; the original begins with A, so the reverse complement ends in T. The sequence contains 22 G or C bases out of 39, so its GC content is 56.4%.
A shorter check you can do in your head
Take ATGCC. Reverse it to CCGTA, then complement each base to get GGCAT. Several restriction enzyme recognition sites are their own reverse complement, which is why they are called palindromic: GAATTC (EcoRI) and AAGCTT (HindIII) both return themselves. If the tool gives you back exactly what you typed, the sequence is palindromic in this sense.
Reading the three-frame translation
A codon is three bases, so a stretch of DNA can be read in three different frames depending on where you start. Frame 1 starts at the first base, frame 2 at the second and frame 3 at the third. For the placeholder sequence the tool produces:
- Frame 1:
MAIVMGR*KGAR* - Frame 2:
WPL*WAAERVPD - Frame 3:
GHCNGPLKGCPI
Frame 1 is the interesting one: it begins with M (the ATG start codon) and has a stop after seven amino acids, then continues. An asterisk is the standard way of writing a stop. The same sequence appears in the Biopython tutorial as an RNA example that translates to MAIVMGR*KGAR*, which matches frame 1 here. Frames 2 and 3 have no start codon and stops that interrupt them, so they are unlikely to be real coding frames for this sequence, though the tool does not make that judgement for you.
Why only forward frames?
Genes can lie on either strand. This page translates the three frames of the strand you paste. To examine the other three frames, copy the reverse complement into the box and read the new result. Together that gives all six reading frames, which is what an open reading frame search normally looks at.
What GC content tells you, and what it does not
GC content is the percentage of bases that are G or C. A G–C pair is held by three hydrogen bonds and an A–T pair by two, so GC-rich DNA tends to melt at a higher temperature. That is why primer design guides ask for a GC percentage within a moderate band rather than at an extreme. This tool reports the figure but does not compute melting temperature, primer quality or secondary structure. Ambiguous bases such as N count toward the sequence length but not toward G or C, so a long run of N lowers the percentage.
Input rules and edge cases
- FASTA headers. A FASTA record begins with a definition line starting with
>. The tool skips those lines, so you can paste a record directly. NCBI recommends keeping sequence lines to 80 characters or fewer, but line length does not matter here because line breaks are removed. - RNA. U is read as T. Tick the RNA option to display the output with U.
- Unknown bases. N is accepted. In translation, any codon containing N shows as X. Other IUPAC ambiguity letters such as R or Y are not accepted by this page.
- Incomplete codons. A trailing one or two bases that do not form a full codon are ignored.
- Genetic code. Translation uses NCBI table 1, the standard code, where TAA, TAG and TGA are stop codons. Mitochondrial DNA and some organisms use different tables; in the vertebrate mitochondrial code (table 2), for example, TGA codes for tryptophan and AGA and AGG are stops. Do not use this page for those sequences.
Who this is for, and its limits
It suits students checking homework, researchers drafting a reverse primer from a template, and anyone who needs a quick sanity check of a short sequence. It is not a substitute for alignment software, and it does not search for open reading frames, annotate genes or check a sequence against a database. For anything that feeds a clinical or regulatory decision, use validated bioinformatics software. If you need to count words or characters in the same session, the word count checker does that, and the binary converter handles unrelated binary and hex conversions.
Frequently asked questions
How do I find the reverse complement of a DNA sequence?
Replace each base with its partner (A with T, C with G), then reverse the order so the new strand reads 5′ to 3′. For example, ATGCC becomes GGCAT. This tool does both steps at once.
What is the difference between complement and reverse complement?
The complement only swaps each base for its partner and keeps the original order. The reverse complement also reverses the order, which is the sequence of the opposite strand written 5′ to 3′. Primer design and read mapping use the reverse complement.
What do the three frames mean?
A codon is three bases, so DNA can be read starting at the first, second or third base. Those are frames 1, 2 and 3 of the strand you entered. To see the other three frames, translate the reverse complement.
Which genetic code does the translator use?
The NCBI standard code, table 1, in which TAA, TAG and TGA are stop codons shown as an asterisk. Other tables, such as vertebrate mitochondrial (table 2), assign some codons differently and are not applied here.
How is GC content calculated?
It is the number of G and C bases divided by the total number of bases, as a percentage. N counts toward the total but not toward G or C. The example sequence has 22 G or C bases out of 39, or about 56.4%.
Can I paste a FASTA file?
Yes for a single record. Lines beginning with > are skipped, and spaces, digits and line breaks are removed. If you paste several records, their sequences are joined into one, so run them one at a time.
What does X mean in the protein result?
X marks a codon that contains an N or another unknown base, so the amino acid cannot be determined. A trailing partial codon is ignored instead of being shown as X.
Is my sequence uploaded?
No. All calculations run in your browser and nothing you paste is sent to a server.
Sources
- NCBI Taxonomy: The Genetic Codes (tables 1 and 2) (retrieved 2026-10)
- NCBI GenBank: FASTA format description (retrieved 2026-10)
- NHGRI Genetics Glossary: Base pair (retrieved 2026-10)
- Biopython Tutorial: Sequence objects (complement, reverse complement, translation) (retrieved 2026-10)