Protein to DNA converter icon

Protein to DNA converter

1.0.0

Reverse translate protein sequences into DNA with codon optimization and GC-content controls. Learn more

Input

Output

Configure inputs to begin

Set options on the left, then click “Convert”.

How to convert protein to DNA?

Paste a protein or amino acid sequence, or upload a FASTA file. Choose whether you want one concrete coding sequence or a degenerate IUPAC consensus, select the genetic code and codon-usage options, then run the converter. ProteinIQ returns a downloadable FASTA file and a conversion summary.

Protein to DNA conversion is also called reverse translation or back translation. It does not recover the original gene. Most amino acids have several synonymous codons, so many DNA sequences can encode the same protein. This tool makes those codon choices explicit and reproducible.

For example, the protein fragment GIVEQCC, using the human preset and the most frequent codon for each residue, produces:

Text
>Converted Sequence
GGCATCGTGGAGCAGTGCTGCTGA

The final TGA is present because Add stop codon is enabled by default. With a fixed random seed, frequency-matched and random codon choices produce the same result again when the input and settings are unchanged.

For a degenerate primer consensus, MKW produces:

Text
>Converted Sequence
ATGAARTGG

Here AAR represents the two lysine codons, AAA and AAG.

Input

InputDescription
Protein sequenceOne raw protein sequence or one or more FASTA records. Paste text or upload .txt, .fasta, .fa, .fas, or .seq files up to 50 MB.

The converter accepts the 20 standard one-letter amino acid codes, ambiguity codes B, Z, J, and X, the recoded residues U and O, and one terminal stop marker (*). An internal * is rejected because silently joining residues across a stop would change the requested protein. By default, ambiguous and recoded residues become NNN so uncertainty is preserved.

Settings

SettingDescription
Output modeSingle sequence chooses one codon per residue. Degenerate consensus combines all codons for each residue into IUPAC ambiguity codes. Host usage, CAI, and sequence-liability reduction do not apply to degenerate output.
Genetic code tableSelects one of 18 supported NCBI genetic codes. Standard (1) is appropriate for most nuclear genes. Choose a mitochondrial, plastid, bacterial, or alternative nuclear code only when it matches the intended biological system.
Expression hostSelects an organism-level codon-usage preset, no host, or a custom table. Built-in presets apply only to Standard (1) and Bacterial/Plastid (11), which share the relevant codon assignments. Other genetic codes require a compatible custom table. The Chinese hamster and fall armyworm presets are species-level records, not CHO- or Sf9-cell-line-specific datasets.
Custom codon usage tableAccepts Kazusa-style output or codon value pairs. Values may be fractions, per-thousand values, or counts and are normalized within each amino acid. At least 20 recognized codons are required.
Codon selectionMatch host frequency samples synonymous codons by the selected usage weights. Most frequent codon chooses the highest-weight codon. GC-rich and AT-rich favor synonymous codons with higher or lower GC content. With no usable host table, concrete output uses random synonymous codons.
Reading frame offsetPrepends zero, one, or two N bases. The prefix is padding and is not included in the coding-sequence codon distribution.
Add stop codonAdds one terminal stop when the input has no terminal *. Enabled by default. An existing terminal stop is preserved, not duplicated.
Ambiguous amino acidsPreserve uncertainty as NNN is the default. Representative mode maps B to D, Z to E, J to L, U to C, and O to K, while X remains NNN. Remove the residue omits it and changes sequence length.
Ensure start codonPrepends ATG if the input does not begin with M. This adds an N-terminal methionine to the encoded protein. Disabled by default.
Output typeDNA uses T. RNA replaces T with U. RNA output is a coding RNA sequence, not a complete mature mRNA with untranslated regions, a cap, a poly(A) tail, or modified nucleotides.
Line lengthWrap FASTA sequences at 60, 80, 100, or 120 characters, or use a single unwrapped line.
Avoid restriction sitesAttempts synonymous substitutions to remove a curated set of common restriction sites on either strand. Any sites that remain are reported. Disabled by default.
Avoid long repeatsAttempts synonymous substitutions to reduce long homopolymers and short tandem repeats. Any detected liabilities that remain are reported. Disabled by default.
Random seedAn integer from 0 to 4,294,967,295. The default is 42. It makes random and frequency-matched codon selection reproducible.

Results

OutputDescription
DNA or RNA FASTAThe reverse-translated sequence, ready to copy or download as .fasta.
run.logA curated run record with the sequence count, output type, genetic code, selected settings, seed, length, GC content, CAI when applicable, warning count, and remaining restriction sites or repeat liabilities. It appears in the final Logs tab and remains downloadable from Files.

What is reverse translation?

Forward translation maps each coding codon to an amino acid. Reverse translation starts with the protein and must choose among synonymous codons. It therefore generates a possible coding sequence rather than reconstructing the natural genomic or transcript sequence.

Reverse translation is useful when preparing a coding sequence for gene synthesis, generating a host-aware design, or making a degenerate nucleotide sequence for primer design. To check the other direction, use the DNA to protein converter. For cloning primer design around a known DNA template, use Primer3.

Codon usage presets and CAI

The eight presets use pinned organism-level records from the Kazusa Codon Usage Database methodology, which tabulated GenBank Release 160.0 in June 2007. The source taxonomy record and coding-sequence count are stored with each preset so results do not change silently. The presets cover Homo sapiens, Mus musculus, Cricetulus griseus, Escherichia coli W3110, Saccharomyces cerevisiae, Pichia pastoris, Spodoptera frugiperda, and Arabidopsis thaliana.

These preset tables use standard-code codon assignments. ProteinIQ applies them with Standard (1) and Bacterial/Plastid (11). If you select a genetic code with reassigned codons, provide a custom table built for that code; otherwise host-frequency and most-frequent selection fall back to seeded random synonymous codons, and GC-biased selection runs without preset frequency tie-breaking.

These aggregate organism records are useful heuristics, not expression guarantees. They do not model a specific strain or cell line unless the source record itself does. Expression also depends on promoter choice, RNA structure, transcript stability, translation kinetics, protein folding, and the experimental system. You can inspect predicted coding-RNA structure with RNAfold.

The Codon Adaptation Index (CAI) summarizes how strongly a concrete sequence favors the highest-weight synonymous codons in the selected table. ProteinIQ follows the relative-adaptiveness concept introduced by Sharp and Li. CAI is a comparative design metric, not a universal pass/fail threshold or a prediction of protein yield.

Genetic-code mappings follow the supported NCBI genetic code tables. A codon-usage table changes which synonymous codon is preferred; it does not change which amino acid a codon encodes.

Single sequence or degenerate consensus?

Use single-sequence output when you need one concrete coding sequence. Use degenerate output when a nucleotide position must represent every synonymous codon for the protein segment, such as an amino acid to nucleotide consensus for a degenerate primer.

Degenerate consensus can grow highly complex for residues with many codons. It also does not optimize for a host or guarantee that every combination represented by the IUPAC sequence encodes only the intended peptide. Check the resulting degeneracy and primer properties before ordering oligonucleotides.

A practical reverse-translation workflow

  1. Confirm the protein sequence and whether a terminal * is intentional.
  2. Choose the genetic code for the biological system.
  3. Select a host preset, paste a custom codon table, or leave the host unset.
  4. Choose frequency matching for a host-weighted design, or another strategy for a specific GC or codon-choice goal.
  5. Keep the seed with your design record so the sequence can be regenerated.
  6. If relevant, enable restriction-site and repeat reduction, then review any remaining liabilities in the summary.
  7. Translate the result back with DNA to protein and perform any synthesis-vendor or construct-specific checks required for your experiment.

Related sequence tools

GoalTool
Translate a coding DNA sequence to proteinDNA to protein
Transcribe DNA to RNADNA to RNA
Calculate GC contentGC content calculator
Find the reverse complementReverse complement
Introduce controlled DNA changesDNA mutator
Clean sequence text into FASTATXT to FASTA

FAQ

Can you convert a protein back to DNA?

You can generate DNA that encodes the protein, but you cannot infer the unique original gene from the protein alone. Synonymous codons, untranslated regions, introns, regulatory sequences, and genomic context are not recoverable from an amino acid sequence.

Does protein to DNA conversion preserve the amino acid sequence?

Standard residues and a supported terminal stop are reverse translated according to the selected genetic code. Ambiguous or recoded residues need an explicit policy: the default NNN preserves nucleotide uncertainty, representative mode makes a stated biological substitution, and remove mode changes the sequence. Ensure start codon also adds a methionine when needed. Review these warnings before using the result.

Can I translate protein to mRNA?

Select RNA output to receive a coding sequence with U instead of T. This is suitable as a coding-RNA starting point, but it is not a full mature mRNA design because the converter does not add untranslated regions, a 5' cap, a poly(A) tail, or modified nucleotides.

Which expression-host preset should I choose?

Choose the preset that matches the intended organism-level system, or provide a custom table when you have a more relevant strain, tissue, cell line, or expression-specific dataset. Do not treat the Chinese hamster preset as a CHO-cell-line table or the fall armyworm preset as an Sf9-cell-line table.

Why does the same protein have many possible DNA sequences?

The genetic code is degenerate: most amino acids are encoded by more than one codon. A protein containing many such residues can therefore have a very large number of synonymous coding sequences.

Are restriction sites and repeats guaranteed to be removed?

No. The converter attempts synonymous substitutions while preserving the encoded standard residues. Some motifs cannot be removed because no suitable synonymous alternative exists or because changes create another liability. Remaining sites and repeat liabilities appear in the warnings and summary.

What happens to an internal stop marker?

The affected FASTA record is rejected and reported. The converter never silently deletes an internal * and joins the surrounding residues.

Table of contents

Related tools

CSV to FASTA

CSV to FASTA

Convert CSV and TSV files containing sequence data to FASTA format with flexible column mapping and automatic delimiter detection

format-conversionprotein+4
DNA to Protein Converter

DNA to Protein Converter

Translate DNA sequences to protein sequences using genetic code

format-conversionDNA+1
TXT to FASTA converter

TXT to FASTA converter

Convert TXT or pasted DNA, RNA, and protein sequences to FASTA locally in your browser, with cleanup, validation, and downloads.

format-conversionprotein+3
GenBank Feature Extractor

GenBank Feature Extractor

Extract sequence features (CDS, mRNA, gene, etc.) from GenBank files in FASTA format with support for spliced features

sequence-manipulationDNA+4
DNA to RNA converter

DNA to RNA converter

Convert DNA sequences to RNA (transcription) - replaces T with U

format-conversionDNA+1
FASTA to FASTQ Converter

FASTA to FASTQ Converter

Convert FASTA sequence files to FASTQ format with mock quality scores

format-conversionDNA+3
FASTQ to FASTA converter

FASTQ to FASTA converter

Convert standard FASTQ reads to FASTA with validation, IUPAC nucleotide support, average-quality filtering, and downloadable summaries

format-conversionDNA+3
GenBank to FASTA Converter

GenBank to FASTA Converter

Convert GenBank files to FASTA format

format-conversionDNA+3
One-to-Three Converter

One-to-Three Converter

Convert single-letter amino acid codes to three-letter codes

format-conversionprotein+1
PDB to CIF Converter

PDB to CIF Converter

Convert Protein Data Bank files to Crystallographic Information File format

format-conversionprotein+2