DNA mutation generator icon

DNA mutation generator

2.1.0

Mutate DNA online by exact count or mutation rate, with reproducible controls and FASTA export. Learn more

Input

Output

Configure inputs to begin

Set options on the left, then click “Generate variants”.

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

  1. Paste a DNA sequence containing A, T, C, and G, or paste up to five FASTA records.
  2. Choose how many variants to create for each input sequence.
  3. Set the mutation amount as an exact event count or a percentage of input length.
  4. Choose a mutation preset and any substitution or indel controls.
  5. Select Generate variants.
  6. Review the mutation summary, then copy or download the FASTA output.

Example input

FASTA
>example_gene
ATGGCTTACGACTAA

With three variants, two substitutions per variant, all substitutions allowed, seed 42, and no line wrapping, the result is:

FASTA
>example_gene|variant_001
ATGGCTTACGACGGA
>example_gene|variant_002
ATGGCTTAAGCCTAA
>example_gene|variant_003
ATGGCTTACGTGTAA

These 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

InputAccepted value
Plain DNAA sequence containing only A, T, C, and G
FASTA textOne to five records with headers beginning with >
File upload.txt, .fasta, .fa, .fas, or .seq
Maximum file size50 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

SettingWhat it controlsRange or choices
Variants per input sequenceNumber of output sequences created from each source1 to 100
Mutation amountHow the number of events is determinedExact event count or percentage of input length
Mutations per variantExact mutation events applied to each output1 to 50
Mutation rateInput length multiplied by a percentage, rounded to the nearest event0.1% to 50%, with 1 to 50 events
Variant presetAllowed mutation typesSubstitutions, insertions, deletions, or mixed
Substitution biasAllowed replacement basesAll, transitions, transversions, A/T only, or G/C only
Insertion/deletion sizeBases added or removed by each indel event1 to 20
Protect first 3 basesKeeps the first three bases unchangedOn or off
Protect last 3 basesKeeps the final three bases unchangedOn or off
Random seedMakes a batch reproducible0 to 999999
Require unique variantsSkips duplicate output sequencesOn or off
FASTA line wrappingControls output line widthNone, 60, or 80 characters
Output headersPreserves the source name or uses indexed namesTwo 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:

Text
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:

BiasAllowed changes
All substitutionsAny base can change to any of the other three bases
Transitions onlyA ↔ G and C ↔ T
Transversions onlyPurine ↔ pyrimidine changes
A/T onlyThe replacement is A or T and differs from the original
G/C onlyThe 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?

GoalTool
Introduce controlled random changes into an existing sequenceDNA mutation generator
Create a new random sequence with a chosen length and compositionRandom DNA generator
Reorder the bases of an existing sequence while preserving compositionDNA shuffler
Reverse and complement a DNA sequenceReverse complement
Remove records that fail length, GC, motif, or ambiguity rulesFilter DNA sequences
Convert a protein sequence into possible coding DNAProtein 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:

Text
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:

Text
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:

Text
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.

Table of contents

Related tools

DNAGenIQ - Random DNA sequence generator

DNAGenIQ - Random DNA sequence generator

Generate random DNA sequences with customizable length, GC content, and restriction sites for molecular cloning and testing purposes.

DNAsequence-design+1
ProtGenIQ - Random protein sequence generator

ProtGenIQ - Random protein sequence generator

Generate random protein sequences with customizable length, composition, and amino acid properties

sequence-designprotein+1
RNAGenIQ - Random RNA sequence generator

RNAGenIQ - Random RNA sequence generator

Generate random RNA sequences with customizable types and structural features

sequence-designRNA+1
DNA Shuffle

DNA Shuffle

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

sequence-manipulationDNA+1
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
DNA to RNA converter

DNA to RNA converter

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

format-conversionDNA+1
FASTA splitter

FASTA splitter

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

format-conversionprotein+3
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