Home › Text Tools › DNA Reverse Complement Tool

DNA Reverse Complement Tool

Paste a DNA or RNA sequence, single or multi-record FASTA, and get its reverse complement, complement or reverse instantly. IUPAC ambiguity codes, gaps and letter case are handled correctly.

Last updated:

Reverse complement
Advertisement
Advertisement

How to use the DNA Reverse Complement Tool

  1. Paste your sequence into the input box. Plain sequence, numbered GenBank text or FASTA with one or many records all work.
  2. Choose the operation: Reverse complement (the opposite strand read 5'→3'), Complement or Reverse.
  3. Pick the output options: DNA or RNA letters, line width, and whether to add a note to FASTA headers.
  4. Check the warnings. Unusual characters are listed with their positions so you can spot typos.
  5. Copy or download the result as a .fasta file.

How the reverse complement is calculated

DNA is a double helix of two antiparallel strands. Each base pairs with a fixed partner: adenine (A) with thymine (T), or uracil (U) in RNA, and guanine (G) with cytosine (C). Because the strands run in opposite directions, the partner strand of 5'-ATGCC-3' is 3'-TACGG-5'. Sequences are always written 5'→3', so that strand is written backwards as 5'-GGCAT-3'. That is the reverse complement.

  • Complement: swap each base for its partner and keep the order. This is the other strand written 3'→5'.
  • Reverse: keep the bases but read them backwards. This is the same strand written 3'→5'. It is rarely needed for biology but useful for checking palindromes and reading traces.
  • Reverse complement: complement and reverse. Use it to design reverse primers, read the minus strand of a gene, or check whether a sequence matches the opposite strand of a reference.

IUPAC nucleotide codes and their complements

CodeMeaningBasesComplement
AAdenineAT (U in RNA)
CCytosineCG
GGuanineGC
T / UThymine / UracilT or UA
RPurineA or GY
YPyrimidineC or TR
SStrong (3 H-bonds)G or CS
WWeak (2 H-bonds)A or TW
KKetoG or TM
MAminoA or CK
BNot AC, G or TV
DNot CA, G or TH
HNot GA, C or TD
VNot TA, C or GB
NAny baseA, C, G or TN
- or .Gapnonekept as gap

Tips for working with sequences

  • Reverse primers: to make a reverse primer that binds the end of your target, take the last 18–25 bases of the target's top strand and use their reverse complement. Check its melting temperature with the Primer Tm Calculator.
  • Palindromes: many restriction sites are their own reverse complement. EcoRI's site GAATTC, for example, reads the same on both strands.
  • Soft-masking: genome files often mark repeats in lowercase. Keep the "Keep as typed" case option so that masking stays where it belongs.
  • Translating the minus strand: the three reverse reading frames of a sequence are the forward frames of its reverse complement. The DNA to Protein Translator shows all six frames at once.

Frequently asked questions

What is a reverse complement?

It is the sequence of the opposite DNA strand, written in the normal 5' to 3' direction. You swap every base for its partner (A with T, C with G) and then read the result backwards. For 5'-ATGCC-3' the reverse complement is 5'-GGCAT-3'.

Why do I need the reverse complement and not just the complement?

DNA strands are antiparallel. The plain complement is written 3' to 5' under the original, but sequences are always written 5' to 3', so you also reverse it. Reverse primers, probes on the minus strand and genes on the reverse strand are all written as reverse complements.

How are IUPAC ambiguity codes complemented?

Each code stands for a set of bases and becomes the code for the complementary set: 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 base) are their own complements.

Does it work with RNA?

Yes. U is treated as the partner of A. If the input contains U and no T the output uses U automatically, or you can force DNA (T) or RNA (U) output with the Output letters option.

Can I paste a FASTA file with several sequences?

Yes. Every record is processed separately, headers are kept and the sequence lines are re-wrapped at the width you choose. You can optionally add a note such as "reverse complement" to each header.

What happens to numbers, spaces and lowercase letters?

Numbers, spaces and line breaks are removed, so sequences copied from GenBank or a text editor work directly. Lowercase letters stay lowercase, which preserves soft-masked repeat regions. Gaps (- and .) are kept in place.

Is my sequence uploaded anywhere?

No. The conversion runs entirely in your browser with JavaScript; nothing is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

DNA to Protein TranslatorTranslate DNA or RNA into protein in all six reading frames with stop codons highlighted.Primer Tm CalculatorPrimer melting temperature by basic, salt-adjusted and nearest-neighbor methods, plus Ta.Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.WhatsApp Text FormatterFormat WhatsApp messages with bold, italic, strikethrough, monospace, lists and quotes, then copy.Word CombinerBlend two or more words into portmanteaus, compound and clipped names for brands and wordplay.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Word Wrap ToolWrap text at any column width with hard line breaks, indents and prefixes, or unwrap it again.Daily Affirmation GeneratorGet random positive affirmations by theme; save favorites, copy them or make an image card.Business Plan GeneratorFill in a guided form and get a formatted business plan with financial tables, as Word or PDF.Keyword Match Type ConverterTurn a keyword list into broad, "phrase", [exact] and negative match types for PPC ads.Discord Text FormatterFormat Discord messages with bold, spoilers, headers, quotes, lists and code blocks, with live preview.Filter Lines Containing TextKeep or remove lines that contain words or match a pattern, with match counts and regex.Focus Reading ConverterBold the first letters of every word for faster, focused reading. Copy as rich text or HTML.Memo GeneratorWrite a business memo in standard To/From/Date/Subject format, then print, copy or save as .docx.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.Pros and Cons List MakerWeigh a decision with a weighted pros and cons list, a score, a verdict and easy export.Remove Numbers from TextStrip all numbers and digits from text, keep MP3-style words or ordinals, and tidy the spaces.Return Policy GeneratorCreate a return and refund policy for your store as text or HTML, with a refund example.Screenplay FormatterType a script in plain text (Fountain) and get a properly formatted screenplay, page count and PDF.Word ChangerSwap words for synonyms in your text, then click any word to cycle through alternatives.Words That End WithFind English words ending in any letters or suffix, filtered by length and sorted by score.Annotated Bibliography GeneratorBuild an APA or MLA annotated bibliography with hanging indents and download it as DOCX.EPUB to Text ConverterExtract plain text from EPUB e-books, pick chapters, count words and download a TXT file.Extract Dates from TextFind every date in text, in any common format, and convert them all to one format you choose.Extract Text Between DelimitersPull out every piece of text between brackets, quotes, HTML tags or your own start and end markers.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.One Word Per LineSplit any text into a list with one word per line; strip punctuation, dedupe, lowercase and sort.Recipe FormatterPaste a messy recipe and get clean ingredients, numbered steps, scaling and a printable card.Remove Words from TextDelete a list of words or phrases from any text and see how many times each one was removed.Reverse Line OrderFlip the order of lines, list items or paragraphs so the last becomes first.Pairwise Sequence Alignment ToolAlign two DNA or protein sequences, global (Needleman-Wunsch) or local (Smith-Waterman), with identity %.Sort Lines by LengthSort lines from shortest to longest or the reverse, with ties sorted A-Z and lengths shown.
See all 96 Text Cleaning & Formatting →