Convert GB to FASTA
Export GenBank sequences to FASTA for sequence-analysis tools while preserving the original annotations.
Popular online conversions: Other formats
We don't have an online converter for GB to FASTA yet. Try one of the most used conversions in Other formats:
All conversions in Other formats →Want to convert GB to FASTA?
Let us know. We pick the conversions to add next by how many people ask for them.
How to convert gb to fasta file
- Other formats
- No ratings yet.
When an alignment or sequence-search program accepts FASTA but not annotated GenBank records, export the sequence before importing it. The conversion usually drops GenBank feature annotations, so retain the original file if those details matter.
What the GB format is
.gb and .gbk commonly identify GenBank flat-file records used by NCBI and by genome, plasmid, and sequence-analysis tools. A record can contain a nucleotide or protein sequence plus features, source-organism details, references, and other metadata.
What the FASTA format is
FASTA stores each sequence as a header line beginning with >, followed by sequence letters. It is accepted by many alignment, search, and genome-analysis programs and is simpler to parse than an annotated GenBank record. FASTA can hold nucleotide or protein sequences, but it does not define GenBank feature annotations or metadata.
How to convert a GenBank file
With UGENE: Open the .gb or .gbk file and select the sequence or sequences in the Project view. Choose File → Export/Import → Export sequences (menu wording may vary by version), select FASTA as the output format, set the destination, and export. For multiple records, confirm that each sequence is written as a separate FASTA entry.
With EMBOSS: Run seqret -sequence input.gb -outseq output.fasta -osformat fasta, replacing the filenames with your paths. This command-line option is suitable for repeatable or batch conversions; verify that EMBOSS can identify the input as GenBank if automatic format detection fails.
For a public NCBI record: Open its Nucleotide database page, choose the FASTA view, and save the sequence. This downloads the current database record rather than converting a local file, so it may not include edits made to your copy.
What conversion keeps and loses
Check the output header and sequence to confirm that the intended record and sequence type were exported. Exporting a nucleotide GenBank record produces its nucleotide sequence; it does not translate coding regions into protein. To obtain protein FASTA, extract or select the desired coding sequences and translate them first.
FASTA generally retains a header and sequence, not GenBank feature locations, qualifiers, references, or circular-topology information. Keep the GenBank file when those annotations are needed, and check that the FASTA headers distinguish records if the output contains multiple sequences.
Information about file extensions and file types is provided by File-Extensions.org