Find ragged rows, quote errors and duplicate headers by line
CSV Formatter
Get a tidy, consistently quoted CSV that any program will read, or an aligned view that people can read.
Loading tool…
How to use csv formatter
Drop a CSV or TSV file, or paste the text.
Choose the delimiter, quoting style, line endings and whether to add a BOM.
Keep trimming, padding short rows and removing empty rows on, or switch them off.
Preview the formatted file, or switch to Aligned columns for an easy read.
Download or copy the result.
What this tool does
- Quotes only where needed, every field, or every field that is not a number.
- Writes Windows (CRLF) or Mac and Linux (LF) line endings, with or without a UTF-8 BOM.
- Trims spaces, pads short rows and removes blank and empty rows.
- Aligned columns view for reading and pasting into notes or tickets.
How the result is verified
The formatted text is parsed again with the chosen delimiter and compared with the intended rows cell for cell before you can download or copy it.
Frequently asked questions
Which quoting style should I choose?
Only when needed is standard and smallest. Every field helps some strict importers, and Every non-number keeps codes like 007 from being read as numbers by some tools.
What is the BOM option for?
Excel on Windows opens a UTF-8 CSV with accented letters correctly only when the file starts with a byte order mark. Leave it off for scripts and databases.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Switch between comma, semicolon, tab, pipe or any character
Trim, dedupe, rename, split and convert columns in steps
Comma separated to tab separated, with safe handling of tabs in values