Skip to content
Lab ToolsFREE
ISO 13485 & 9001 certified

Reverse Complement Tool

Get the reverse, complement or reverse complement of a DNA or RNA sequence. Paste a plain sequence or FASTA; IUPAC degenerate bases are supported.

  • Runs in your browser. Your sequence is never uploaded.
  • DNA (T) or RNA (U) output
  • FASTA, multi-record
Output as
Spaces & line breaks
Length0nt
GC content–
Detected–
    Reverse complementThe opposite strand, written 5′→3′. Use this for reverse primers and probes.
    ComplementPairing base for each position, same order (the opposite strand read 3′→5′).
    ReverseYour sequence in reverse order, no base pairing applied.

    Complement, reverse and reverse complement

    The two strands of a DNA double helix pair base by base, A with T and G with C (A with U in RNA), and run in opposite directions. By convention every sequence is written from the 5′ end to the 3′ end. So the partner strand of a sequence is not simply its complement: it is the complement read backwards, the reverse complement.

    ATGCAGTC → GACTGCAT

    Reverse complement

    Complement every base, then reverse the order. This is the other strand written 5′→3′: the form used for reverse primers, probes, and reads that map to the minus strand.

    ATGCAGTC → TACGTCAG

    Complement

    Swap each base for its partner and keep the order. The result is the other strand read 3′→5′, which is useful for checking base pairing position by position.

    ATGCAGTC → CTGACGTA

    Reverse

    Reverse the order without pairing. Use it when a sequence was written 3′→5′ and you need it in the standard 5′→3′ direction.

    IUPAC degenerate bases and their complements

    Degenerate primers and consensus sequences use IUPAC codes for positions that can hold more than one base. The complement of a degenerate code is the code for the complementary set of bases, so R (A or G) pairs with Y (C or T). The tool applies this table to every position.

    CodeMeaningComplement
    Standard bases
    AAdenineT (U in RNA)
    CCytosineG
    GGuanineC
    T / UThymine (DNA) / Uracil (RNA)A
    Two possible bases
    RA or G (purine)Y
    YC or T (pyrimidine)R
    SG or C (strong)S
    WA or T (weak)W
    KG or T (keto)M
    MA or C (amino)K
    Three possible bases
    BC, G or T (not A)V
    DA, G or T (not C)H
    HA, C or T (not G)D
    VA, C or G (not T)B
    Any base and gaps
    NAny baseN
    -Gap in an alignment-
    • Lowercase is kept. Soft-masked regions and primer tails written in lowercase stay lowercase in every result.
    • GC content is (G + C + S) ÷ (A + C + G + T + U + S + W), that is, over every position that is certainly G/C or certainly A/T. N and the other degenerate codes are left out and counted separately.
    • Other characters such as numbers from GenBank files or letters that are not nucleotide codes are skipped, and the tool tells you which ones and where.
    • Palindromic sites are their own reverse complement. The EcoRI site GAATTC, for example, reads the same on both strands. Many type II restriction enzymes recognize palindromic sites like this, so they find the same sequence on each strand.

    Example: from target sequence to reverse primer

    Say the region you want to amplify ends with this stretch on the top (sense) strand: 5′-TTGCAGACCGTAAGCTGAAC-3′. The reverse primer has to anneal to that stretch, antiparallel, so its sequence is the bottom strand written 5′→3′, which is the reverse complement.

    5′-TTGCAGACCGTAAGCTGAAC-3′Top strand (your target)
    ||||||||||||||||||||
    3′-AACGTCTGGCATTCGACTTG-5′Reverse primer, as it binds
    Reverse primer to order, 5′→3′ · 20 nt · 50% GCGTTCAGCTTACGGTCTGCAA

    A common mistake is to order only the complement, AACGTCTGGCATTCGACTTG. That is the bottom strand read 3′→5′. Synthesized as written, it runs parallel to the target instead of antiparallel and will not prime the reaction. Before ordering, also check primer length, GC content, melting temperature and the 3′ end; see our 12 golden rules for PCR primer design.

    Frequently asked questions

    What is the difference between the complement and the reverse complement?

    The complement replaces every base with its pairing partner (A↔T, G↔C) but keeps the order, so you get the opposite strand read 3′→5′. The reverse complement also reverses the order, giving the opposite strand written in the standard 5′→3′ direction. For primers, probes and sequences that map to the minus strand, the reverse complement is almost always the one you need.

    How are N, R, Y and other degenerate bases handled?

    Each IUPAC code is replaced by the code for the complementary set of bases: R (A or G) becomes Y (C or T), K becomes M, B becomes V and D becomes H, while N, S and W stay the same. The full list is in the table above. Degenerate positions count toward the length but are left out of GC content, except S, which is always G or C.

    Can I convert a DNA sequence to RNA?

    Yes. Choose RNA (U) and every result is written with U instead of T. If your input is the template (antisense) strand written 5′→3′, the RNA transcribed from it is its reverse complement, so copy the Reverse complement box. If your input is the coding (sense) strand, the mRNA has the same sequence with each T replaced by U.

    Is this a reverse translation tool?

    No. Reverse translation turns a protein sequence back into a possible DNA sequence using the genetic code; because most amino acids have several codons, the result is degenerate. This tool works on nucleotide sequences only. If you paste a protein sequence, it flags the letters that are not nucleotide codes instead of converting them.

    Is my sequence uploaded or stored?

    No. The conversion runs entirely in your browser with JavaScript. Your sequence is not sent to our server or to anyone else, and nothing is kept after you close or reload the page.

    Talk to an expert

    Not ready for a quote? Discuss feasibility, formats, host systems or validation with the specialist behind this page — no sales script.

    Topic detected: your enquiry

    Reply within one business day from an application scientist. For pricing, COA or samples, use Request a quote instead.

    Application scientistAssay integration & formats

    Tell us what you want to discuss

    Four fields. We route it to the right person and reply the way you prefer.

    🔒 Used only to reply to this request. No newsletters. Privacy Policy

    Need pricing, a COA or samples? Request a quote →

    Quick Contact

    * Your data is securely protected for essential communications only. We won’t share your details or send spam emails, Privacy Policy *