FASTA Biological Sequence Format (.fasta)

Widely Standard

FASTA is a widely used text format for representing nucleotide and protein sequences with single-letter codes. Support and conventions vary among tools and databases.

Convert FASTA to GENBANK

Free in-browser FASTA to GENBANK converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify FASTA files by inspecting the leading binary byte sequence:

Select or drop files here

Private - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify FASTA files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

3E

ASCII REPRESENTATION: >

Standardization: Widely used bioinformatics sequence format

Technical Specifications

Container ArchitecturePlaintext sequence file where header lines start with '>' followed by sequence identifier, and succeeding lines contain single-letter nucleotide or amino acid codes
CompressionUncompressed text (frequently compressed with Gzip as .fasta.gz or .fa.gz)
Byte EndiannessASCII / UTF-8 text stream
Color SpacesN/A (Genomic Sequence Data)
Channels & StructureNucleic acid codes (A, C, G, T, U, N) or IUPAC 20 amino acid protein codes
Max DimensionsUnbounded sequence length (supports entire human chromosomes over 250 million base pairs)
TransparencyNone
Streaming & ProgressiveSequential record-by-record streaming processing

Technical Comparison Matrix: FASTA vs Competitors

Technical AttributeFASTA (Current)FASTQGENBANKGFF
Quality ScoresNone (pure sequence letters)Per-base Phred quality scoresNone (feature annotations)None (feature coordinates)
Header LineStarts with '>' characterStarts with '@' characterStructured LOCUS blockTab-delimited genomic columns
Primary UseReference genomes & BLAST searchRaw high-throughput sequencers (Illumina)Comprehensive annotated genesGenomic feature annotations
File Size (Human)Varies by sequence length and formatting~100+ Gigabytes (with qualities)Multi-gigabyte rich text~50 Megabytes

Common Corruption Modes & Hex Recovery Guide

Bioinformatics tool reports 'Invalid sequence character at line X'.

Root Cause: Whitespace, numbers, or non-IUPAC characters inside the sequence lines.

Recovery: Filter and clean sequence characters using File2File.app Bioinformatics Tool.

Security Analysis & Parser Attack Vectors

Genomics tools parse massive multi-gigabyte FASTA files where integer overflows can occur when indexing sequence coordinates.

Known Attack Vectors

  • Integer overflow in 32-bit sequence indexers (FAI) exceeding 2^31 base pairs.
  • Buffer overflow when reading excessively long sequence identifier headers.
  • Denial of service through pathological alignment queries.

Defensive Best Practices: Use 64-bit coordinate types and enforce maximum header length validation.

Historical Origins & Milestones

2003The Human Genome Project completes its initial sequencing goals; sequence data is shared in several formats.
1990BLAST (Basic Local Alignment Search Tool) adopts FASTA as its standard input format.
1985William Pearson and David Lipman introduce FASTA with the FASTP sequence alignment software.

Key Advantages & Pros

  • FASTA is widely used for biological sequences, but tool, database, and instrument support varies by workflow.
  • Extreme simplicity: line 1 starts with '>' followed by an ID, followed by plain text genetic letters.
  • Multi-sequence capacity: a single file can contain thousands of individual genes or complete viral genomes.

Technical Limitations & Cons

  • Contains no sequencing quality scores (unlike FASTQ, which stores per-base Phred confidence scores).
  • No standardized metadata syntax for header lines beyond the initial identifier.
  • Enormous storage footprint for whole-genome datasets without Gzip or specialized genomic compression.

Interesting Technical Trivia

  • A human genome sequence can be represented in FASTA text. Its file size depends on the sequence length, line wrapping, headers, and whether it is compressed.
  • The four letters of DNA stored in FASTA files are A (Adenine), C (Cytosine), G (Guanine), and T (Thymine).
  • When the COVID-19 coronavirus genome was first sequenced in January 2020, scientists shared it globally as a 30,000-letter FASTA file.

Frequently Asked Technical Questions

What is a FASTA file?

A FASTA file is a plain text file used in biology to store DNA, RNA, or protein sequences using single-letter abbreviations.

What is the difference between FASTA and FASTQ?

FASTA stores only the genetic sequence letters, while FASTQ stores both the letters and the sequencing accuracy quality score for each base.

How can I view a FASTA file?

You can open FASTA files in any text editor, view them in bioinformatics software like Jalview or UGENE, or convert them using File2File.app.