CSV Compressor
This shrinks a CSV file by removing unnecessary double quotes, trimming trailing empty columns and rows, and normalizing line endings to a single \n, while keeping the output a valid, plain CSV file that opens the same everywhere. You can also gzip the minified result for extra savings. The whole process happens in your browser, nothing leaves your machine.
Reviewed by Vincenzo Manto, Founder & Lead Developer · Last updated September 27, 2026
How it works
- 1
Paste your CSV text or drop a .csv file into the input box.
- 2
The tool strips quotes that aren't required by RFC 4180, trims empty trailing rows/columns, and normalizes line endings.
- 3
See exactly how many bytes were saved.
- 4
Optionally check 'Also gzip the minified result' for extra savings, then copy or download.
Clean CSV without changing its shape
Exports from spreadsheets and legacy systems often over-quote every field and leave trailing empty columns behind from deleted data. This tool removes that noise: it unquotes fields that don't need it, drops columns and rows that are empty across the whole file, and normalizes CRLF/CR line endings to a single \n. The output still reads identically to the original in any CSV parser.
Pair minification with gzip for extra savings
Minification alone typically trims a modest percentage by removing redundant quotes and characters. When file size matters more, for archiving or transfer, check 'Also gzip the minified result' to run a second pass of standard DEFLATE compression on top, combining both techniques for a smaller output.
Frequently asked questions
How is this different from the CSV to Gzip Converter?
CSV to Gzip compresses your file into a binary .csv.gz archive. This tool rewrites the CSV itself instead: it stays plain, human-readable text, just smaller, cleaned of redundant quoting and empty trailing cells.
Will minifying change how my data is interpreted?
No. Quotes are only removed from fields that don't need them per RFC 4180 (fields without commas, quotes, or newlines), so the parsed values are identical before and after.
What counts as a 'trailing empty column'?
If the same rightmost column (or columns) is empty across every single row in the file, it's dropped, since it carries no information. Columns that have data in at least one row are always kept.
Does it also compress the file size in bytes, like gzip?
The minification alone typically saves a modest amount by removing redundant characters. For much larger savings, tick 'Also gzip the minified result' to additionally run gzip compression via pako.
Is my data uploaded anywhere?
No. Parsing, minification, and any gzip compression all happen in your browser; none of it is sent to a server.