FASTA to CSV converter icon

FASTA to CSV converter

Docs

Paste or upload FASTA and download a CSV or TSV table for spreadsheets, or a plain text file with one sequence per line.

Input

Output

Configure inputs to begin

Set options on the left, then click “Convert”.

How to convert FASTA to CSV?

Paste FASTA records or upload a .fasta file, and the FASTA to CSV converter writes one table row per sequence with id, description, length, and sequence columns. Wrapped sequence lines are joined into a single cell. Choose TSV for tab-separated output or TXT for sequences only, then download the file or copy it.

Two UniProt entries, converted with the default settings:

Text
>sp|P01308|INS_HUMAN Insulin OS=Homo sapiens OX=9606 GN=INS PE=1 SV=1
MALWMRLLPLLALLALWGPDPAAAFVNQHLCGSHLVEALYLVCGERGFFYTPKTRREAEDLQVGQVELGGGPGAGSLQPL
ALEGSLQKRGIVEQCCTSICSLYQLENYCN
>sp|P01344|IGF2_HUMAN Insulin-like growth factor 2 OS=Homo sapiens OX=9606 GN=IGF2 PE=1 SV=1
MGIPMGKSMLVLLTFLAFASCCIAAYRPSETLCGGELVDTLQFVCGDRGFYFSRPASRVSRRSRGIVEECCFRSCDLALLE
TYCATPAKSERDVSTPPTVLPDNFPRYPVGKFFQYDTWKQSTQRLRRGLPALLRARRGHVLAKELEAFREAKRHRPLIALP
TQDPAHGGAPPEMASNRK
Text
id,description,length,sequence
sp|P01308|INS_HUMAN,Insulin OS=Homo sapiens OX=9606 GN=INS PE=1 SV=1,110,MALWMRLLPLLALLALWGPDPAAAFVNQHLCGSHLVEALYLVCGERGFFYTPKTRREAEDLQVGQVELGGGPGAGSLQPLALEGSLQKRGIVEQCCTSICSLYQLENYCN
sp|P01344|IGF2_HUMAN,Insulin-like growth factor 2 OS=Homo sapiens OX=9606 GN=IGF2 PE=1 SV=1,180,MGIPMGKSMLVLLTFLAFASCCIAAYRPSETLCGGELVDTLQFVCGDRGFYFSRPASRVSRRSRGIVEECCFRSCDLALLETYCATPAKSERDVSTPPTVLPDNFPRYPVGKFFQYDTWKQSTQRLRRGLPALLRARRGHVLAKELEAFREAKRHRPLIALPTQDPAHGGAPPEMASNRK

The identifier is everything before the first space in the header, and the description is the rest. A description containing a comma or quote is wrapped in quotes so spreadsheet programs keep it in one cell:

Text
>primer_F forward, exon 2
ATGGATTTATCTGCTCTTCG
>primer_R reverse
CTAAGATTTTCTGCATAGCA
Text
id,description,length,sequence
primer_F,"forward, exon 2",20,ATGGATTTATCTGCTCTTCG
primer_R,reverse,20,CTAAGATTTTCTGCATAGCA

How to convert FASTA to TXT

Set Output format to TXT (one sequence per line). Headers are dropped and each sequence is written on its own line, ready for tools or scripts that expect bare sequences:

Text
ATGGATTTATCTGCTCTTCG
CTAAGATTTTCTGCATAGCA

To keep names alongside the sequences in a text file, use TSV (tab-separated) instead. The same primers as TSV:

Text
id	description	length	sequence
primer_F	forward, exon 2	20	ATGGATTTATCTGCTCTTCG
primer_R	reverse	20	CTAAGATTTTCTGCATAGCA

Open the result in Excel or Google Sheets

Download the .csv file and open it, or copy the preview and paste it into a sheet. TSV pastes into separate columns directly in both programs. Very long sequences fit in a cell: Excel holds up to 32,767 characters per cell, which covers most proteins and genes, while whole chromosomes and genomes are better kept in FASTA.

Input

InputDescription
FASTA inputPasted FASTA or one uploaded .fasta, .fa, .faa, .fna, .ffn, .fas, .mfa, or .txt file up to 50 MB. Lines starting with ; are skipped as comments. Records with a header but no sequence are skipped and reported.

Text without any > header is not FASTA; convert it with TXT to FASTA first.

Settings

SettingDescription
Output formatCSV (comma-separated) (default), TSV (tab-separated), or TXT (one sequence per line).
Separate ID and descriptionCSV and TSV only. On (default), the header is split into id and description columns. Off, the whole header goes into one header column.
Include length columnCSV and TSV only. Adds a length column with the number of characters in each sequence. Default: on.
Include column namesCSV and TSV only. Starts the file with a row of column names. Default: on.
Sequence caseKeep original (default), Uppercase, or lowercase.

Sequences are copied as they are, apart from joining wrapped lines and removing whitespace. Gaps, stop markers, and ambiguity codes stay in the output, so the length column counts them too.

Results

TabContents
PreviewThe converted file as text, with a summary such as 2 sequences · CSV file.
FilesThe .csv, .tsv, or .txt file, named after the uploaded file or sequences for pasted input.
TableEvery record as a table (up to the first 5,000 records).

Which tool should I use?

GoalTool
FASTA to a spreadsheet or plain sequence listFASTA to CSV
A spreadsheet back to FASTACSV to FASTA
Plain text or a Word file to FASTATXT to FASTA
GenBank, FASTQ, or an alignment to FASTAFASTA converter
One FASTA file into many smaller filesFASTA splitter

FAQ

How do I convert a FASTA file to Excel?

Convert it to CSV, download the .csv file, and open it in Excel. Each sequence becomes a row with its identifier, description, length, and sequence.

How do I get only the sequences from a FASTA file?

Choose TXT (one sequence per line). Headers are removed and each sequence is written on one line.

Does the converter change my sequences?

No. Wrapped lines are joined and whitespace is removed; letters, gaps, and stop markers stay as they are unless you change Sequence case.

Can I convert the CSV back to FASTA?

Yes, with CSV to FASTA, which reads the id and sequence columns this tool writes.

Table of contents

Related tools

CSV to FASTA

CSV to FASTA

Convert CSV or TSV sequence tables to FASTA with automatic delimiter detection and column mapping.

format-conversionprotein+4
FASTA converter

FASTA converter

Paste or upload a sequence file in any common format and download FASTA. The format is detected automatically, and nothing leaves your browser.

format-conversionprotein+3
TXT to FASTA converter

TXT to FASTA converter

Paste or upload DNA, RNA, or protein text and download FASTA. Sequence names, wrapped lines, and tables are detected automatically, and nothing leaves your browser.

format-conversionprotein+3
DNA to Protein Converter

DNA to Protein Converter

Translate DNA sequences into proteins across reading frames and genetic code tables.

format-conversionDNA+1
Protein to DNA converter

Protein to DNA converter

Reverse translate protein sequences into DNA with codon optimization and GC-content controls.

format-conversionprotein+1
GenBank Feature Extractor

GenBank Feature Extractor

Extract CDS, mRNA, gene, rRNA, and tRNA features from GenBank records into FASTA.

sequence-manipulationDNA+4
FASTA to FASTQ Converter

FASTA to FASTQ Converter

Convert FASTA sequences to FASTQ with configurable mock Phred quality scores.

format-conversionDNA+3
FASTQ to FASTA converter

FASTQ to FASTA converter

Convert FASTQ sequencing reads to FASTA while preserving headers and sequence case by default.

format-conversionDNA+3
GenBank to FASTA Converter

GenBank to FASTA Converter

Convert GenBank records to FASTA by extracting primary sequences, CDS, or translations.

format-conversionDNA+3
One-to-Three Converter

One-to-Three Converter

Convert one-letter amino acid sequences to three-letter codes with customizable formatting.

format-conversionprotein+1