Convert a SnapGene sequence file to FASTA.

Maximum file size: 50 MB. The file is checked before conversion.

SnapGene → FASTA

  • The output keeps sequence records but drops features, references, and other source annotations.

Getting the plain DNA sequence out of a SnapGene file

Yes, this page converts SnapGene to FASTA. The file's single DNA sequence is written as one FASTA record, and its features and other annotations are dropped. No sequence-type question is asked for this pair, and the sample on this page converts to one record.

What carries over from the SnapGene file

Data in your file In the output Details
DNA sequence Kept In the sample on this page, the 10-letter sequence is unchanged.
Record name Changed in the sample The sample has no stored name, so its header line shows placeholder text (see below).
Features Lost The sample's one feature is gone from the output.
References and other annotations Lost The notice under the Convert file button says these are dropped.

Check the name on the header line

For the sample on this page, Biopython reports no name, so the output's header line holds its placeholder text instead: the words unknown id and unknown description, each in angle brackets. When Biopython reads that file back, it takes the text before the first space, an angle bracket followed by unknown, as the record name. Look at the header line before using the output as a named record; if you need a name there, replace the placeholder text after the > with the name you want.

Keeping the features

SnapGene to GenBank converted the sample with its feature still present; the sample has no stored name, and the output's LOCUS line shows "." in the name position. SnapGene to EMBL refused the same sample: EMBL needs an identifier for every record, and the message says to add a name or accession to each record, or to choose FASTA or another output. Neither route shows a loss notice on this site.

Going back to SnapGene

FASTA to SnapGene is not supported here, because no writer is available for this format pair.

If the file is refused

If the upload cannot be read, the page says only that it could not be read as SnapGene and asks you to check that it is a valid SnapGene file; no cause is given. Uploads are limited to 50 MB.

Run it with Biopython

For batch work, you can use Biopython's SeqIO.convert function. This pair needs no molecule type argument.

from Bio import SeqIO

count = SeqIO.convert("input.snapgene", "snapgene",
                      "output.fasta", "fasta")
print("Converted %i records" % count)

Sample input file: SnapGene

SnapGene is a binary format, so it cannot be shown as text. Download the sample file to try the converter.

Download sample (sample.dna, 10.5 KB)

Samples are small illustrative files. Some come from the Biopython test suite (see the project's sample notes); they are not real study data.

Choose another conversion