.FASTA

FASTA File

FASTA Sequence File (DNA / RNA / Protein)
Ask a question
QUICK ANSWER

A FASTA file is a plain-text file holding one or more biological sequences - DNA, RNA, or protein. Each record starts with a ">" header line followed by the sequence letters. You can open it in any text editor, but for analysis or alignment use free tools such as Jalview, AliView, UGENE, or MEGA.

Developer: William R. Pearson & David J. Lipman (FASTA program, 1985-1988) Category: Data Files Open standard MIME: text/x-fasta
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Aug 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the FASTA file format?

The .fasta format belongs to the category of bioinformatics data files. Contents of .fasta files include sequences of genetic data - they can contain information about the structure of DNA and RNA, but also about protein structures. The content is organized in a layout specific to this standard. One of its characteristic features is a > header line (called a defline), in which an identifier and descriptive annotations can also be recorded. One or more lines of raw sequence letters follow each header, using IUPAC nucleotide or amino-acid codes.

.fasta files can store a large number of sequences in a single file, which is why multi-.fasta files are often used as reference databases. All this information is used by specialized programs for genetic analyses. Thanks to the .fasta format, DNA comparative tests can be performed, as well as studies on the evolution of genetic structures.

Because .fasta stores only the identifier and raw sequence - without quality scores or rich annotations - complementary formats are often used alongside it: .fastq files add per-base quality scores for sequencing reads, while GenBank files carry full feature annotations. The format was developed by William R. Pearson and David J. Lipman for their FASTA sequence-comparison program and has since become the baseline plain-text standard for sharing biological sequences across tools and databases worldwide.

Common variant extensions include .fa, .fna (nucleotide sequences), .faa (amino-acid sequences), and .ffn (coding sequences).

Security & safety

RISK: LOW

A FASTA file is plain-text sequence data with no executable content, so it is very low risk to open. The realistic cautions are practical, not security: whole-genome FASTA can be hundreds of MB to many GB and may freeze a basic text editor (use a streaming viewer like AliView or command-line seqkit/samtools faidx), and watch for malformed headers or mixed line endings that break downstream tools. Get reference sequences from authoritative sources (NCBI, Ensembl, UniProt) to ensure data integrity.

Format details

in a nutshell
FULL NAMEFASTA Sequence File (DNA / RNA / Protein)aka FASTA format, Pearson FASTA
DEVELOPERWilliam R. Pearson & David J. Lipman (FASTA program, 1985-1988)since 1985 (FASTP/FASTA sequence-comparison program; format formalized 1988)
CATEGORYData Files
MIME TYPEtext/x-fasta
TYPEPlain-text biological sequence format (one or more records)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00
HEX
3E
ASCII
>
No binary magic - FASTA is plain text. Each record begins with a ">" header (description/defline) line, followed by sequence lines. (A ";" was historically also allowed for comment lines.) Identify it by the leading ">" and the sequence letters that follow.

Programs that open FASTA files

Windows5 apps
MEGA Free Import the .fasta for alignment and phylogenetic analysis.
Jalview Free Open the .fasta to view/edit and align sequences with a rich alignment viewer (Java, free).
UGENE Open-source Open the .fasta in this free integrated bioinformatics suite to view, align and analyze.
SnapGene / SnapGene Viewer Freemium Open the .fasta to view sequences and (with SnapGene) design cloning; the free Viewer reads FASTA.
Notepad++ (plain text) Open-source Open small FASTA files as text to read or edit headers/sequences directly.
macOS3 apps
AliView Open-source Fast, free alignment viewer/editor - open the .fasta to view and edit large alignments.
SnapGene / SnapGene Viewer Freemium Open the .fasta to view sequences; free Viewer available.
UGENE Open-source Open and analyze FASTA in the free cross-platform suite.
Linux2 apps
EMBOSS / Bioconda command-line tools Open-source Use seqret/infoseq (EMBOSS) or seqkit/samtools to inspect, index and convert FASTA on the command line.
AliView / Jalview / UGENE Open-source GUI viewers/editors for FASTA alignments on Linux.
Web1 app
NCBI BLAST (web) Free Paste or upload the FASTA sequence to search it against databases online.

Technical details

deep spec
Format typePlain-text biological sequence format; one or more records per file
File encodingASCII / UTF-8 plain text; no binary data
Record header marker">" (greater-than, 0x3E) at byte offset 0 of each header line - the only pseudo-magic identifier
Header (defline) structure">identifier description" per NCBI defline convention, widely followed by databases and tools
Sequence alphabetIUPAC nucleotide codes (A, C, G, T, U, N, ambiguity codes) for DNA/RNA; single-letter amino-acid codes for protein
Multi-record supportUnlimited records per file (multi-FASTA); a single file can serve as a full reference database
Sequence line wrappingTypically 60-80 characters per line; wrapping is cosmetic - conformant tools reassemble the sequence ignoring line breaks
Quality scoresNot supported; raw sequence only - per-base quality data requires the FASTQ format instead
Annotation supportIdentifier and free-text description in the header only; no feature or coordinate annotations (use GenBank/.gb or GFF3 for those)
CompressionNone native; commonly distributed gzip-compressed as .fasta.gz or .fa.gz
MIME typetext/x-fasta (also seen: text/plain, application/x-fasta)
Typical file sizeA few KB for a single gene or protein, up to tens of GB for whole-genome or reference databases
Variant extensions.fa (generic), .fna (nucleotide), .faa (amino acid), .ffn (coding sequences), .frn (non-coding RNA)
In-file integrity checkNone; reference releases are typically accompanied by external .md5 checksum files
Platform usageCross-platform; dominant in Linux/HPC bioinformatics pipelines, with broad support on Windows and macOS tools
InteroperabilityAccepted as input/output by virtually all sequence-analysis tools: BLAST, BWA, STAR, Bowtie2, EMBOSS, Biopython, and others
Released1985 (FASTP/FASTA sequence-comparison program; format formalized 1988)
Latest versionDe facto standard; no formal versioned spec (NCBI defline conventions widely followed)
Open standardYes · royalty-free
Specificationwww.ncbi.nlm.nih.gov

FASTA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with FASTA files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about FASTA files.

Frequently asked questions

What is a FASTA file?
A plain-text file storing one or more biological sequences (DNA, RNA, or protein). Each record starts with a '>' header line (an ID and description), followed by the sequence letters.
How do I open a FASTA file?
Small ones open in any text editor. To view, align or analyze sequences use free bioinformatics tools like Jalview, AliView, UGENE, MEGA or SnapGene Viewer. For huge genomes, use command-line tools (seqkit, samtools faidx).
What's the difference between FASTA and FASTQ?
FASTA stores just identifiers and sequence. FASTQ additionally stores a per-base quality score for each letter - it's the format for raw sequencer reads. Converting FASTQ to FASTA simply drops the quality information.
What is a multi-FASTA file?
A single FASTA file containing many records, each with its own '>' header and sequence, stacked one after another - common for gene sets, proteomes or batches of sequences.
Can I convert AB1/SCF trace files to FASTA?
Yes - chromatogram trace files (.ab1/.scf) contain base calls you can export to FASTA with tools like SnapGene, EMBOSS or Biopython. You can't go the other way (FASTA has no trace signal).
Why does my FASTA file have .fa, .fna or .faa instead?
They're the same format with content-specific extensions: .fa is a short form, .fna for nucleotide sequences, .faa for amino-acid/protein sequences, .ffn for coding regions.

References

1NCBI - FASTA format definitionwww.ncbi.nlm.nih.gov
2Pearson & Lipman (1988) - Improved tools for biological sequence comparisonwww.pnas.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.BINCD/DVD Disc Image (BIN/CUE)
6.M4AMPEG-4 Audio File
7.RPMSGRestricted Permission Message
8.ICSiCalendar data file
9.EXEWindows Executable (Portable Executable)
10.JSONJavaScript Object Notation file

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z