
Mutate DNA online by exact count or mutation rate, with reproducible controls and FASTA export. Learn more
Input
Mutate DNA online and generate variant libraries
The DNA mutation generator creates reproducible mutated versions of one or more DNA sequences. Paste a plain sequence or FASTA, choose substitutions, insertions, deletions, or a random mixture, then copy or download the generated variants as FASTA.
The calculation runs in your browser. The same input, settings, and random seed produce the same variant batch.
Quick start
- Paste a DNA sequence containing A, T, C, and G, or paste up to five FASTA records.
- Choose how many variants to create for each input sequence.
- Set the mutation amount as an exact event count or a percentage of input length.
- Choose a mutation preset and any substitution or indel controls.
- Select Generate variants.
- Review the mutation summary, then copy or download the FASTA output.
Example input
>example_gene
ATGGCTTACGACTAAWith three variants, two substitutions per variant, all substitutions allowed, seed 42, and no line wrapping, the result is:
>example_gene|variant_001
ATGGCTTACGACGGA
>example_gene|variant_002
ATGGCTTAAGCCTAA
>example_gene|variant_003
ATGGCTTACGTGTAAThese sequences are generated by the tool's deterministic mutation logic. Changing the seed creates a different batch while keeping the other settings fixed.
Inputs and accepted formats
| Input | Accepted value |
|---|---|
| Plain DNA | A sequence containing only A, T, C, and G |
| FASTA text | One to five records with headers beginning with > |
| File upload | .txt, .fasta, .fa, .fas, or .seq |
| Maximum file size | 50 MB |
Whitespace and letter case are normalized. Ambiguity codes such as N, R, or Y are not accepted because the generator needs an unambiguous original base for every mutation.
Mutation settings
| Setting | What it controls | Range or choices |
|---|---|---|
| Variants per input sequence | Number of output sequences created from each source | 1 to 100 |
| Mutation amount | How the number of events is determined | Exact event count or percentage of input length |
| Mutations per variant | Exact mutation events applied to each output | 1 to 50 |
| Mutation rate | Input length multiplied by a percentage, rounded to the nearest event | 0.1% to 50%, with 1 to 50 events |
| Variant preset | Allowed mutation types | Substitutions, insertions, deletions, or mixed |
| Substitution bias | Allowed replacement bases | All, transitions, transversions, A/T only, or G/C only |
| Insertion/deletion size | Bases added or removed by each indel event | 1 to 20 |
| Protect first 3 bases | Keeps the first three bases unchanged | On or off |
| Protect last 3 bases | Keeps the final three bases unchanged | On or off |
| Random seed | Makes a batch reproducible | 0 to 999999 |
| Require unique variants | Skips duplicate output sequences | On or off |
| FASTA line wrapping | Controls output line width | None, 60, or 80 characters |
| Output headers | Preserves the source name or uses indexed names | Two header formats |
Exact count versus mutation rate
Exact event count applies the selected number of mutation events to every variant.
Percentage of input length calculates the event count separately for each source sequence:
mutation events = round(input length × mutation rate / 100)The result is limited to at least one and at most 50 events. A 200-base sequence at 5% therefore receives 10 mutation events per variant. This setting describes simulated mutation events, not an experimentally measured mutation frequency in a cell population.
Protecting terminal codons
Enable Protect first 3 bases to avoid changing a possible start codon. Enable Protect last 3 bases to avoid changing a possible stop codon. The protected bases are excluded from substitutions and deletions, and insertions are placed outside the protected three-base blocks.
For coding sequences, these controls preserve the terminal triplets only. They do not verify the reading frame, identify the actual coding region, or guarantee that internal mutations preserve protein function.
How each mutation preset works
Substitutions
Each selected position receives a different nucleotide. The bias setting controls the possible replacements:
| Bias | Allowed changes |
|---|---|
| All substitutions | Any base can change to any of the other three bases |
| Transitions only | A ↔ G and C ↔ T |
| Transversions only | Purine ↔ pyrimidine changes |
| A/T only | The replacement is A or T and differs from the original |
| G/C only | The replacement is G or C and differs from the original |
Positions are unique within a substitution-only variant, so a base is not selected twice in the same output.
Insertions
Each event inserts a random DNA segment of the chosen indel size after a selected position. Insertion positions are unique within an insertion-only variant.
Deletions
Each event removes a segment of the chosen indel size. Deletion-only variants use non-overlapping segments so the requested events have distinct source locations.
Mixed variants
Each event randomly chooses among the currently possible substitution, insertion, and deletion operations. Since indels change sequence length, later events operate on the sequence produced by earlier events.
Understanding the results
The results show:
- Generated variants grouped by source sequence
- Mutation records with zero-based sequence positions
- The total number of variants and mutation events
- FASTA output ready to copy or download
- A warning when there are not enough possible unique sequences to reach the requested count
Substitutions and inserted bases can be highlighted in the final sequence. Deleted bases no longer exist in the output sequence, so their locations are reported in the mutation records rather than highlighted as output bases.
Which DNA tool should I use?
| Goal | Tool |
|---|---|
| Introduce controlled random changes into an existing sequence | DNA mutation generator |
| Create a new random sequence with a chosen length and composition | Random DNA generator |
| Reorder the bases of an existing sequence while preserving composition | DNA shuffler |
| Reverse and complement a DNA sequence | Reverse complement |
| Remove records that fail length, GC, motif, or ambiguity rules | Filter DNA sequences |
| Convert a protein sequence into possible coding DNA | Protein to DNA converter |
What is a DNA mutation?
A DNA mutation is a change in a nucleotide sequence. Mutations can arise during DNA replication, through imperfect repair, or after exposure to mutagens. They are a source of genetic variation, but their biological effect depends on the sequence context, affected gene, cell type, and organism.
This generator simulates nucleotide-level sequence changes. It does not predict whether a generated variant is viable, pathogenic, beneficial, expressed, or structurally stable.
Types of DNA mutations
Point mutations and substitutions
A point mutation changes one nucleotide. A transition swaps bases within the same chemical class, while a transversion swaps a purine and a pyrimidine.
In a protein-coding region, a substitution may have several outcomes:
- Silent or synonymous mutation: the codon changes but encodes the same amino acid.
- Missense mutation: the codon encodes a different amino acid.
- Nonsense mutation: the codon becomes a premature stop codon.
For example, changing the coding DNA codon TCA to TCG still encodes serine, while changing GAG to GTG changes glutamate to valine.
The generator does not select substitutions by their protein-level outcome. Translate and inspect generated coding variants before treating them as synonymous, missense, or nonsense designs.
Insertions
An insertion adds one or more nucleotides:
Original: ATGCATGGCTAA
Inserted: ATGCAATGGCTAA
+In a coding region, an insertion whose length is not a multiple of three shifts the downstream reading frame. An insertion of three, six, or another multiple of three bases adds whole codons but may still disrupt protein structure or function.
Deletions
A deletion removes one or more nucleotides:
Original: ATGGCATGCTAA
Deleted: ATGGATGCTAA
-As with insertions, a deletion that is not a multiple of three changes the downstream reading frame in a coding sequence.
Frameshift mutations
Codons are read in groups of three. Adding or removing a number of bases that is not divisible by three shifts those groups:
Original codons: [ATG][GCA][TGC][AAG][TAA]
After deletion: [ATG][GCT][GCA][AGT][AA...]A frameshift can change every downstream amino acid and may introduce an early stop codon. To model in-frame indels, choose an indel size that is a multiple of three.
What determines a mutation's biological effect?
The same nucleotide change can have different consequences depending on:
- Location: coding, regulatory, splice, and intergenic regions have different constraints.
- Reading frame: coding-region indels can be in-frame or frameshifting.
- Protein context: active sites, interfaces, transmembrane regions, and conserved positions may be less tolerant of change.
- Chemical change: conservative amino-acid substitutions often differ from changes in charge, size, or polarity.
- Genetic background: other variants can amplify, suppress, or compensate for an effect.
- Expression and dosage: sequence changes can alter transcript abundance, stability, translation, or gene dosage.
Generated variants are hypotheses for downstream analysis or experimental design, not evidence of a biological phenotype.
Mutations in gene design
When designing coding sequences, mutation type and placement matter. Synonymous substitutions can change codon usage or sequence composition without changing the encoded protein, while nonsynonymous changes may alter protein behavior. Indels can add or remove amino acids or change the entire reading frame.
Protecting the first and last three bases can keep terminal codons intact, but additional checks are still needed. Consider translating each output, screening motifs, checking GC content, and evaluating the protein sequence. The Protein to DNA converter is better suited to generating coding DNA from a desired protein sequence.
Frequently asked questions
Can I generate synonymous mutations only?
Not with this tool. It mutates DNA bases directly and does not constrain replacements to synonymous codons. Use the results as candidate sequences and translate them to confirm their protein-level effects.
Does the mutation rate represent a natural mutation rate?
No. It is a convenient way to scale the number of simulated mutation events with input length. It does not model replication cycles, selection, population size, or a biological error process.
Can I keep the start and stop codons unchanged?
Yes. Enable protection for the first and last three bases. Confirm that those triplets are the actual terminal codons of your coding region before relying on the setting.
Why did the tool generate fewer variants than requested?
When unique variants are required, a short sequence or restrictive settings may not provide enough distinct outcomes. The results include a warning instead of repeating variants.
Are my sequences uploaded?
The mutation calculation runs client-side in your browser. You can use the tool without creating a compute job.
Related tools

DNAGenIQ - Random DNA sequence generator
Generate random DNA sequences with customizable length, GC content, and restriction sites for molecular cloning and testing purposes.

ProtGenIQ - Random protein sequence generator
Generate random protein sequences with customizable length, composition, and amino acid properties

RNAGenIQ - Random RNA sequence generator
Generate random RNA sequences with customizable types and structural features

DNA Shuffle
Shuffle DNA sequences while preserving nucleotide, dinucleotide, or k-mer composition for generating randomized control sequences

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

DNA to Protein Converter
Translate DNA sequences to protein sequences using genetic code

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

FASTA splitter
Split FASTA files into record-based chunks by sequence count, target file count, maximum residues per file, or one file per sequence.

FASTA to FASTQ Converter
Convert FASTA sequence files to FASTQ format with mock quality scores

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