FASTA splitter icon

FASTA splitter

(v1.0.0)Docs

Split FASTA records by count, target file count, record length, or one sequence per file.

Input

Output

Configure inputs to begin

Set options on the left, then click “Split FASTA”.

How to split FASTA files online

The easiest way to split a FASTA file online is to upload or paste a multi-sequence FASTA file, choose how records should be grouped, and run the splitter. ProteinIQ returns downloadable FASTA files and, by default, a summary file that lists the number of records and residues or bases in each output file.

FASTA splitting is useful when downstream tools have per-job sequence limits, when you want one sequence per structure-prediction job, or when a large sequence collection needs to be divided across parallel searches, alignments, or annotation runs.

For a small input like this:

Text
>seq1 sample A
MKTAYIAKQRQISFVKSHFSRQ
>seq2 sample B
GATCGATCGATCGATC
>seq3 sample C
MVLSPADKTNVKAAWGKVGA

Split by sequence count with Sequences per file set to 2 returns one FASTA file containing seq1 and seq2, and another FASTA file containing seq3.

fasta_part_001.fasta:

Text
>seq1 sample A
MKTAYIAKQRQISFVKSHFSRQ
>seq2 sample B
GATCGATCGATCGATC

fasta_part_002.fasta:

Text
>seq3 sample C
MVLSPADKTNVKAAWGKVGA

With the default Sequences per file value of 1, the same input produces three FASTA files. A single-record input produces one FASTA file in every mode; it is never fragmented.

InputDescription
FASTA inputMulti-sequence FASTA text or an uploaded .txt, .fasta, .fa, .fas, .fna, or .faa file. Maximum file size: 50 MB.
SettingDefaultPurpose
Split modeSplit by sequence countChoose whether to group records by count, create a target number of files, group by total residues or bases, or write one file per sequence.
Sequences per file1Number of complete FASTA records per file when using Split by sequence count.
Number of output files2Target number of non-empty files when using Split into number of files.
Max residues/bases per file100000Maximum total sequence length per output file when using Split by residues/bases per file.
Naming conventionNumberedUse numbered names, sequential names, or names based on the first sequence header in each file.
File prefixfastaPrefix added to all output filenames and the optional summary file.
Include summary fileOnAdds a text summary with split statistics and warnings.
Preserve original headersOnKeeps original FASTA headers. Turn off to write Sequence_1, Sequence_2, and similar generated headers.

The three numeric split settings must be whole numbers. Sequences per file and Number of output files range from 1 to 10000; Max residues/bases per file ranges from 1 to 10000000. Only the numeric setting for the selected split mode affects grouping. Runs that would produce more than 10,000 FASTA files are rejected; the summary and run log do not count toward this cap.

How FASTA splitting works

A FASTA file stores each sequence as a record with a header line that begins with >, followed by one or more sequence lines. NCBI GenBank FASTA guidance describes the first line as the FASTA definition line and recommends a unique sequence identifier. NCBI BLAST documentation also describes FASTA as a single-line description followed by sequence data lines.

ProteinIQ reads the FASTA records, validates that every header has sequence content, and splits complete records into output files. It does not cut a single FASTA record into smaller sequence fragments. This matters for downstream tools because record identifiers, annotations, and complete biological sequences stay together.

Blank lines are ignored. Comment lines beginning with # or ;, including comments before the first record, are omitted with a warning. Whitespace inside sequence lines, including tabs and non-breaking spaces, is removed and counted in run.log. Wrapped sequence lines are joined into one line per output record, and outputs use LF line endings with a final newline.

Sequence letters retain their original case. Ambiguous letters and the markers -, ., *, and ? are preserved. Length totals count all retained sequence characters, including those markers; they are not molecular-weight calculations or ungapped lengths. The splitter checks file syntax rather than determining whether a sequence is biologically valid for a particular organism or downstream tool.

Each input must contain its own FASTA headers, every header must contain text after >, and every record must have sequence content. Position numbers, commas, FASTQ quality markers, zero-width spaces and other non-sequence characters are rejected with a line number and a suggested correction. The tool does not guess which characters to delete. Duplicate identifiers are preserved and reported when original headers are retained; unique filenames do not make the identifiers inside the files unique.

All splitting runs in your browser. Sequence data is not sent to a server for this client-side utility.

Which FASTA split mode should I use?

The right split mode depends on the downstream constraint you are trying to satisfy.

Split modeUse whenOutput behavior
Split by sequence countA downstream tool accepts a fixed number of FASTA records per job.Creates chunks with up to the selected number of complete records per file.
Split into number of filesYou want batches with similar record counts for parallel processing.Creates contiguous groups whose record counts differ by at most one, with larger groups first. It does not balance total sequence length. If you request more files than sequences, each sequence gets its own file and a warning is shown.
Split by residues/bases per fileA workflow has an approximate total-sequence-length limit per file.Adds complete records until the next record would exceed the target. Records longer than the target are kept intact and reported with a warning.
Individual filesEach sequence needs a separate job, such as one protein per prediction or one query per search.Writes one FASTA file per record.

ProteinIQ preserves sequence order in all modes. Splitting is deterministic, so the same input and settings produce the same groups and filenames.

FASTA output and filename rules

The result panel returns split FASTA files as a file list. You can download files individually or use the download action to collect all output files together.

OutputDescription
Split FASTA filesRecord-preserving FASTA files generated from the selected split mode.
Summary fileOptional .txt report listing total sequences, total residues or bases, split mode, files created, per-file counts, per-file sequence length totals, file sizes, and warnings.
run.logAlways available for successful runs, even when the summary file is disabled. The Logs tab shows record and character totals, split settings, output count, whitespace cleanup, ignored comments, repeated identifiers and oversized-record counts. It contains no sequence text or full headers.
WarningsReturned in the results panel and included in the optional summary when comments were omitted, identifiers repeat, fewer parts were created than requested, or records exceed the size target. Ordinary whitespace cleanup appears only in the run log.

Output file extensions match supported uploaded FASTA extensions (.fasta, .fa, .fas, .fna, or .faa). Pasted input and .txt uploads use .fasta.

Numbered filenames use the pattern prefix_part_001.fasta. Sequential filenames use prefix_1.fasta, prefix_2.fasta, and so on. Header-based filenames use a sanitized version of the first sequence header in each output file; duplicate names are de-duplicated with numeric suffixes.

Keep Preserve original headers enabled unless a downstream system needs simple generated identifiers. FASTA headers often carry accessions, sample IDs, organism labels, or coordinate information needed to trace results back to the source sequence.

FASTA splitter alternatives

Command-line tools are better for automated pipelines, compressed files, very large datasets, and scripted reproducibility. SeqKit includes split and split2 commands for FASTA and FASTQ files, including splitting by number of parts and records per part. The SeqKit paper describes it as a cross-platform toolkit for FASTA/Q manipulation with high performance on large sequence files.

Use ProteinIQ's FASTA splitter when you need a browser-local, no-code workflow with upload or paste input, record-preserving output, summary files, visible warnings, and convenient downloads. For changing file formats rather than splitting existing FASTA records, use FASTQ to FASTA for sequencing reads, CSV to FASTA for sequence tables, TXT to FASTA for raw sequence text, GenBank to FASTA for annotated GenBank records, or the FASTA converter for alignments and other sequence formats. To list the records of a FASTA file in a spreadsheet instead of splitting it, use FASTA to CSV.

FAQ

Does FASTA Splitter change my sequences?

It preserves supported sequence characters and their case, while removing whitespace and joining wrapped lines. Comment lines are omitted with a warning. Header text is preserved by default, apart from whitespace at the beginning and end of the header line. If Preserve original headers is turned off, the output uses generated headers such as Sequence_1.

Can I split one long sequence into smaller fragments?

No. FASTA Splitter divides a multi-record FASTA file into smaller files, but it does not fragment an individual record. A sequence longer than the Max residues/bases per file setting is kept as one complete record and reported with a warning.

Why did I get fewer files than requested?

Split into number of files creates non-empty files only. If you request 20 files from 8 sequences, the tool creates 8 files and returns a warning.

What FASTA formats are supported?

The splitter accepts FASTA records for protein, DNA, and RNA sequences. Upload .txt, .fasta, .fa, .fas, .fna, or .faa files, or paste FASTA text. Compressed archives, Word and PDF documents, FASTQ, tables and GenBank records need to be converted to FASTA first.

Are my sequences uploaded to a server?

No. This FASTA splitter runs locally in your browser. The sequence text is processed client-side and the output files are generated from that local result.

Sources

  • NCBI GenBank FASTA format
  • NCBI BLAST FASTA input documentation
  • SeqKit usage documentation
  • Shen W, Le S, Li Y, Hu F. "SeqKit: A Cross-Platform and Ultrafast Toolkit for FASTA/Q File Manipulation." PLOS ONE 11(10), e0163962 (2016). doi:10.1371/journal.pone.0163962

Table of contents

Related tools

PDB2PQR

PDB2PQR

Prepare biomolecular structures for electrostatics calculations with charge and radius assignment.

Filter protein

Filter protein

Clean protein sequences by removing or replacing non-standard amino acids with configurable filters.

Filter DNA

Filter DNA

Clean DNA sequences by removing or replacing non-standard nucleotides with IUPAC-aware filters.

Ligand fixer

Ligand fixer

Repair SDF, MOL, and MOL2 ligands for RDKit, Meeko, and docking preparation workflows.

CSV to FASTA

CSV to FASTA

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

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.

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.

GenBank Feature Extractor

GenBank Feature Extractor

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

FASTA to CSV converter

FASTA to CSV converter

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

FASTA to FASTQ Converter

FASTA to FASTQ Converter

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