PrivateCSV

Compress CSV files to ZIP or GZIP

Shrink CSV files into a ZIP or .csv.gz archive.

CSV files

  • Nothing is uploaded
  • Free · no account
  • Tested on 400k-row files

Reference

CSV Compressor: how it works

The tool is above. Below: a short overview, optional step-by-step detail, honest browser limits, and answers to common questions.

Last updated 2 min read

About this tool

PrivateCSV compresses CSV files into a ZIP or GZIP archive at the highest compression level. CSV is plain text with many repeated values, so files usually shrink by 80 to 95%, enough to get under an email or upload limit. Put several CSV files in one ZIP, or make a .csv.gz for databases and scripts. An option first removes unneeded quotes and empty rows without changing any value. Compression runs in your browser.

How to check that your file is never uploaded

Read the step-by-step guideHow-to, example and use cases (~2 min)

How to compress a CSV file

  1. Drop one or more CSV files on the picker.
  2. Choose ZIP to open the archive anywhere, or GZIP for a .csv.gz file (one file only).
  3. Tick Minify the CSV first to remove unneeded quotes, empty rows and Windows line endings.
  4. Click Compress and download the archive. The sizes before and after are shown.

Example

A 48 MB export compressed to ZIP.

orders.csv
48.2 MB, 410,000 rows
orders.zip
5.1 MB (89% smaller)

When you need it

Email a large export
Gmail and Outlook limit attachments to 20 to 25 MB. A CSV of 100 MB often fits once zipped, and every computer can open a ZIP file without extra software.
Upload to a tool with a size limit
Many import forms, support portals and AI tools limit file size. Several accept ZIP or .gz files directly.
Load into a database or data tool
PostgreSQL, BigQuery, Snowflake, Redshift, pandas and DuckDB read .csv.gz files directly, which saves storage and transfer time.

ZIP or GZIP?

ZIP holds one or more files and opens with a double-click on Windows, macOS and Linux. GZIP compresses a single file into .csv.gz; it is the usual format for data pipelines, cloud storage and command-line tools. Both use the same Deflate compression, so the size is almost the same.

Why CSV compresses so well

CSV repeats the same delimiters, quotes, column values and digits on every row. Compression replaces repeats with short references, so a typical export shrinks to 5 to 20% of its size. Files with many unique random values, such as UUIDs or hashes, shrink less.

Browser and file limits (not a trial)

These are technical limits of running in your browser—device memory, encoding and what this tool does not do. They are not a free trial, account quota or paid plan. There is no subscription.

  • Each file is read into your browser's memory; files of a few hundred MB work on a computer, less on a phone.
  • Minify reads the file as CSV (up to 200 MB per file); without it, any file type can be compressed as it is.
  • This page creates archives. To open a ZIP, double-click it; to read a .csv.gz, use 7-Zip, gunzip or the target tool.

Frequently asked questions

How do I compress a CSV file?

Drop it on the CSV compressor above, keep ZIP selected and click Compress. You get a .zip that is usually 80 to 95% smaller and opens on any computer.

How do I make a CSV file smaller to email?

Zip it: most email services accept ZIP attachments and the file shrinks several times. If it is still too large, split the CSV into parts first and zip each part.

What is a .csv.gz file?

A CSV compressed with GZIP. Databases, pandas, R and command-line tools read it directly; on Windows, 7-Zip extracts it, and on macOS a double-click does.

Does compressing change the data in my CSV?

No. Compression is lossless: extracting the archive gives back the exact file. The optional Minify step only removes characters that do not change any value, such as unneeded quotes and empty rows.

Related tools

Go further

Your files never leave your device

PrivateCSV runs this tool in your browser. No upload, no account, no trial and nothing to install.