Compression, both directions, on your own machine
This is the tool that does not care what your file is. It works on bytes: point it at a log, a CSV export, a database dump, an SVG or a folder of source files, and it will shrink them with the same algorithms your web server and your build pipeline already use. To go the other way, open a .zip or .gz in Unzip.
Which codec to reach for
- gzip
- Understood by everything. The safe default for anything you will ship.
- Brotli
- Noticeably smaller than gzip on text. Every current browser can read it.
- zlib
- DEFLATE with a zlib header. What PNG chunks and many protocols embed.
- DEFLATE
- Raw stream, no header or checksum. Only useful if something expects it.
- ZIP
- A container, not a stream: bundles many files into one archive.
What the level slider buys you
Higher levels spend more time searching for repetition before giving up, reducing file size at the expense of processing time. The curve flattens quickly. Gzip 9 is only a few percent smaller than gzip 6 on most inputs, while Brotli keeps improving up to level 11 because its sliding window spans four megabytes. Decompression speed is unaffected by the compression level, so the time investment occurs only once during compression.
What will not shrink
JPEG, PNG, WebP, AVIF, MP3, MP4, and ZIP files already use internal compression. Running them through gzip usually adds a few bytes of header overhead rather than saving space, which the result panel displays as a positive percentage. To reduce those formats, re-encode them in the Image Converter to optimize the underlying pixel data.
Frequently asked questions
- Which should I use, gzip or Brotli?
- Brotli, if whatever reads the file supports it: on text it is usually 15-25% smaller than gzip at a comparable level. Choose gzip when the consumer is old, unknown, or a command-line tool you do not control.
- Can I make a ZIP file in the browser?
- Yes. Drop as many files as you like, switch the output to ZIP, and they are bundled into a single archive with DEFLATE compression. Entry names are stripped of directory-traversal segments before they are written.
- How do I open a ZIP or .gz file?
- Use the Unzip tool. It reads a ZIP's table of contents, lets you download single entries without unpacking the whole archive, and decompresses gzip, zlib and Brotli files.
- Why did compressing my JPEG barely help?
- Because it is already compressed. gzip and Brotli look for repetition, and a JPEG, MP4 or ZIP has had most of its repetition removed already. They pay off on text, code, logs, CSVs, SVGs and uncompressed formats like BMP or WAV.
- Is there a file-size limit?
- Only what your browser will hand a single tab. Compression is done in memory in a Web Worker, so multi-hundred-megabyte files are practical on a desktop and considerably less so on a phone.