Canonical: https://toolipedia.app/fasta-formatter-and-cleaner

# FASTA Formatter and Cleaner

Paste FASTA text to rewrap lines, clean or number the headers, split records into separate files and count sequences and lengths.

Breadcrumbs: Toolipedia > Online calculators > Science and chemistry calculators > FASTA Formatter and Cleaner

## About FASTA Formatter and Cleaner

A FASTA file stores each sequence under a header line that starts with the greater-than sign, and many programs expect a fixed line width or simple headers. Paste one or many records and choose a width such as 60 or 80 characters, or none for one line per sequence. Headers can be kept, cut to the first word, made safe with underscores or replaced with numbered names. Optionally the sequences are upper-cased and stripped of spaces, digits, dashes and dots. The page counts sequences and lengths, shows GC for nucleotides, and downloads every record as its own file in a zip.

## How to use FASTA Formatter and Cleaner
1. Paste your FASTA text, one or more records.
2. Choose the line width, the header style and the letter case, and whether to strip spaces, digits and gaps.
3. Copy or download the cleaned FASTA, or download the records as separate files in a zip.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- fasta formatter and cleaner
- fasta line wrap tool
- clean fasta headers
- split multi fasta file
- fasta sequence length counter
- fasta header renamer

## Frequently asked questions

### Why do some programs reject my FASTA file?

Common causes are very long header lines, special characters in names, blank lines, gaps or digits in the sequence and mixed line endings. The cleaner removes or fixes those.

### What line width should I use?

Sixty or 70 characters is traditional and 80 is common, but nearly all tools read any width. Use 0 for one line per sequence when a tool needs that.

### Does the page check whether the letters are valid DNA or protein?

No. It only reformats text, and the GC column is shown only when the sequence is mostly A, C, G, T or U, so you should check the alphabet in your own software.

### Is FASTA Formatter and Cleaner free?

Yes. FASTA Formatter and Cleaner on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with FASTA Formatter and Cleaner:
- [ORF Finder](https://toolipedia.app/orf-finder)
- [Restriction Enzyme Site Finder](https://toolipedia.app/restriction-enzyme-site-finder)
- [Text cleaner](https://toolipedia.app/text-cleaner)
- [Split Excel by column value](https://toolipedia.app/split-excel-by-column-value)
- [Polymer and Plastics Calculator](https://toolipedia.app/polymer-and-plastics-calculator)
