How to use the GZIP Compress & Decompress
- Choose Compress or Decompress.
- Pick your file.
- Download the result.
What does this tool do?
GZIP is the standard compression for web assets, logs and Unix archives. This tool uses the browser's native CompressionStream, so it's fast and handles large files by streaming them.
How compressing and decompressing work here
Compress turns one file into a .gz file named after it (data.csv becomes data.csv.gz). Decompress accepts .gz and .tgz files: report.csv.gz gives report.csv, and backup.tgz gives backup.tar. The work is done by your browser's built-in GZIP engine (the CompressionStream API), reading the file as a stream. The limit is 1 GB per file; very large files need enough free memory for the result.
It needs a current browser: Chrome, Edge, Firefox, or Safari 16.4 or later. On older browsers the tool says so instead of failing silently.
What shrinks and what doesn't
Text compresses well: logs, CSV, JSON, SQL dumps and HTML often shrink to a fraction of their size. Files that are already compressed barely change: JPG, PNG, MP4, MP3, ZIP, DOCX and PDF usually save a few percent at most, and occasionally get slightly bigger.
GZIP holds exactly one file. To bundle several files, put them in a .tar archive first and then gzip it (that's what a .tar.gz is), or make a ZIP, which bundles and compresses in one step.
Related: TAR File Creator · ZIP File Creator
Why use it?
- Open .gz logs and data exports.
- Check how well a file compresses for the web.
- No command line needed.
Use cases
- Opening .gz log files and data exports on a computer without command-line tools.
- Shrinking a CSV or JSON export before emailing it.
- Testing what size a text asset will be when a web server gzips it.
.tar.gz files
Decompressing a .tar.gz gives you a .tar archive. That's a bundle of files; extract it with your operating system or archive software.
Common mistakes
- Gzipping photos or videos and expecting big savings.
- Expecting a .tar.gz to open straight into files: decompressing gives a .tar, which still has to be extracted.
Privacy
Your files are processed entirely in your browser using built-in web technologies. They are not uploaded to our servers, and closing the page clears them from memory. There's no account to create and nothing to install.
Frequently asked questions
Are my files uploaded?
No. Files are read and processed in your browser, and results are saved straight back to your device.
What's the difference between GZIP and ZIP?
GZIP compresses a single file, while ZIP can hold many files and folders. To compress several files the Unix way, bundle them into a .tar first, then GZIP it — that's a .tar.gz.
Content last updated . See how M2Toolkit works.