Reverse complement calculator
DNA or RNA, plain text or FASTA. Computed as you type, nothing leaves the browser.
DNA or RNA, plain text or FASTA. Computed as you type, nothing leaves the browser.
The reverse complement is the sequence of the opposite strand of double-stranded DNA, written in the usual 5′→3′ direction. To get it you swap every base for its Watson–Crick partner (A↔T, C↔G) and then reverse the order. For example, the reverse complement of ATGGAATTCGCTAGC is GCTAGCGAATTCCAT. Because both strands are antiparallel, the reverse complement is what a reverse primer, an antisense probe or a read from the other strand actually looks like.
By hand, write the sequence backwards and replace each base with its complement. The tool does the same thing for sequences of any length and keeps FASTA headers with the record they belong to.
The three operations are easy to mix up, and only one of them gives the other strand in its natural orientation:
| Operation | What changes | ATGGAATTC → |
|---|---|---|
| Reverse complement | Bases swapped and order reversed | GAATTCCAT |
| Complement | Bases swapped, order kept | TACCTTAAG |
| Reverse | Order reversed, bases kept | CTTAAGGTA |
Use Complement when you want the paired strand written 3′→5′ under the original, and Both strands when you want the two of them drawn together. Use Reverseonly to flip reading direction without changing bases.
The Both strands tab draws the duplex instead of a single line of letters: the sequence you pasted runs 5′→3′ along the top, its partner runs 3′→5′ underneath, and a rung joins every base pair. That is the same layout a cloning map or a figure in a paper uses, and it is the quickest way to check an overhang, a restriction site or the orientation of a primer, because the pairing is in front of you rather than in your head.
The bottom strand is the complement, not the reverse complement: each column is a real base pair, so reading the bottom line right to left gives the reverse complement that the first tab prints. The figure is cut into blocks that fit the width you have, so it stays in line on a phone instead of scrolling sideways, and the block size is shown next to the result. FASTA headers are kept and each record gets its own figure.
Degenerate positions get a : instead of a |, since R over Y is a pair of ambiguity codes rather than a single hydrogen-bonded pair. Pressing Copy takes the whole display as plain text, ready to paste into a lab notebook, a protocol or a slide in any monospaced font.
Worked example. "Try an example" loads a 102 nt GFP fragment at65.7% GC. On the Both strands tab it comes back as six blocks of 20 bases (the last one holds the two remaining bases), the first of which is the figure above.
RNA is detected automatically: if a sequence contains U and no T, complements are written with U instead of T, so the output is a valid RNA strand. This gives the antisense RNA of an mRNA, siRNA or guide sequence directly. Mixed and lower-case input keeps its case, which is useful for marking primers, overhangs or exons.
Degenerate bases are complemented correctly, so the reverse complement of a degenerate primer is still a valid degenerate primer. The full table:
| Base | A | C | G | T/U | R | Y | S | W | K | M | B | D | H | V | N |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Complement | T/U | G | C | A | Y | R | S | W | M | K | V | H | D | B | N |
Paste the primer as written, 5′ to 3′. The result is the strand it anneals to, also written 5′ to 3′. To design a reverse primer, take the last 18 to 25 bases of the amplicon on the top strand and reverse complement them.
No fixed limit. Whole plasmids and multi-record FASTA files of many thousands of bases are handled instantly.
Whitespace, line breaks and digits from numbered formats are ignored. Any other character is skipped and reported in a notice above the result, so a stray letter never silently changes the output.
Because GAATTC is palindromic: complementing gives CTTAAG, and reversing that gives GAATTC again. Most type II restriction enzyme sites are palindromes for this reason.