FASTA Parser
Parse multi-record FASTA input, inspect each entry, and re-export cleanly formatted.
The FASTA Parser & Formatter inspects, cleans, validates, and re-formats multi-record FASTA files, extracting sequence headers, length distributions, composition statistics, and line-wrapped sequence blocks.
Free, runs in your browser. Nothing you enter is uploaded.
How to use it
- Paste multi-FASTA format text.
- Inspect record count, individual headers, and sequence lengths.
- Export cleaned/reformatted FASTA.
What you enter
- Text containing one or more FASTA records (each starting with a '>' header line)
- Target line wrap length (e.g. 60, 80 characters, or single-line unwrapped)
What you get
- Total Record Count and Header Metadata Table
- Per-record Length and Base Composition Breakdown
- Clean, Standardized FASTA Output ready for BLAST or alignment input
Formula
Parse Rule: Header = Lines starting with '>' | Sequence = Concatenation of subsequent non-header lines (whitespace stripped)
Validates FASTA syntax compliance (RFC-like format), strips whitespace and invalid non-IUPAC characters, and re-formats sequences to standard 60-character or 80-character line wraps.
Example: Cleaning a 5-Record Viral Gene FASTA
Input: Unformatted raw text with irregular line lengths, spaces, and numbers
Result: Parsed 5 valid records | Standardized 60-character wrapped FASTA output
All non-sequence characters removed; valid FASTA ready for downstream bioinformatics command-line pipelines (BLAST, Clustal, Bowtie).
Questions
What is standard FASTA sequence format?
FASTA format begins with a single-line description starting with a '>' character, followed by lines of single-letter nucleotide or amino acid codes.
Limitations
- Extremely large FASTA files (>50 MB) should be processed via dedicated command-line utilities (seqkit, samtools) rather than browser memory.
- Does not parse complex FASTQ quality score headers (Phred scores).
References
- Pearson WR, Lipman DJ (1988) Proc Natl Acad Sci USA 85(8):2444-2448.
- Shen W et al. (2016) PLOS ONE 11(10):e0163962.
Related reading
- Phasing Accuracy & Long-Read Assembly Quality
- Kraken2 vs Minimap2 Metagenomic Taxonomic Classifiers
- Sanger Sequencing Quality Assessment
More Utilities
All free tools · By Dr. Zubair Khalid, DVM, MS, PhD.