About this tool
CSV files from different tools disagree on quoting, whitespace and line endings, which trips up imports. The formatter re-writes your file in one consistent style: values trimmed, empty rows removed, every row padded to the header width, and quotes used either only where needed or on every field. Choose LF or CRLF line endings and an optional UTF-8 byte order mark. All processing happens on your device.
How to use CSV Formatter
- Paste CSV or open a file.
- Pick the delimiter, quoting style and line endings for the output.
- Toggle trimming and empty-row removal.
- Preview the table, then download the formatted file.
Frequently asked questions
What happens to rows with too few or too many fields?
Short rows are padded with empty cells so every row matches the header. Cells beyond the header width are dropped, and a warning tells you this happened. Use the CSV Validator first if you need to find those rows.
Should I add a BOM?
Only if the file will be opened in Excel and contains non-English characters. Most other tools prefer files without one.