Reverse complement of DNA and RNA

Paste a DNA or RNA sequence, plain or in FASTA format, and get its reverse complement — the other strand read 5′ to 3′ — or just the complement or the reversed sequence, written as DNA or RNA.

Operation
Write as

39 bases

Runs in your browser: nothing you enter is sent anywhere.

How to use

  1. Paste a sequence. Plain letters, numbered lines from a GenBank file or FASTA with > headers all work.
  2. Pick Reverse complement (the default), Complement (same order, partner bases) or Reverse (same bases, backwards).
  3. Choose whether the result is written as DNA (T) or RNA (U) and copy it.

How it works

Each base is replaced by its Watson–Crick partner — A↔T (or U), G↔C — and IUPAC codes by the code of the partner set. For the reverse complement the order is reversed too, so the new strand reads 5′ to 3′. Upper and lower case are kept letter by letter, which keeps soft-masked (lowercase) regions visible. Anything that is not a nucleotide code stops the conversion with a message naming the character.

Worked example

The sample sequence ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG (39 bases) gives the reverse complement

CTATCGGGCACCCTTTCAGCGGCCCATTACAATGGCCAT

Read from the end: the last base G becomes C, then A→T, T→A … up to the first base A, which becomes T at the end.

Tips

  • To design a reverse primer, take the reverse complement of the target region at the 3′ end of your amplicon.
  • Complement without reversing is rarely what a lab protocol means by “the other strand”: it reads 3′ → 5′.
  • Typos such as O for 0 or a stray letter are flagged rather than silently dropped, so the length stays right.

Frequently asked questions

What is a reverse complement?

DNA strands are antiparallel. The reverse complement is the opposite strand read in its own 5′ → 3′ direction: replace each base by its partner (A↔T, G↔C) and read the result backwards. 5′-ATGC-3′ pairs with 5′-GCAT-3′.

How are IUPAC ambiguity codes complemented?

Each code becomes the code of the complementary bases: R (A/G) ↔ Y (C/T), K (G/T) ↔ M (A/C), B (not A) ↔ V (not T), D (not C) ↔ H (not G). S (G/C), W (A/T) and N (any) are their own complements.

Can I paste FASTA with several sequences?

Yes. Lines starting with > stay as they are, and each record is transformed on its own. Spaces, line breaks, position numbers and gap dashes inside a sequence are removed, so the result of each record is one line.

What does the RNA option do?

It writes U instead of T in the result (and reads U as T in the input). The complement of A is then U, which is what you need for an mRNA or a probe written in RNA letters.

More in Education

All tools in this category: Education ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.