GZIP Compressor
Compress files to .gz format using the browser's native CompressionStream API. Batch compress multiple files, preserve original filenames, show before/after size comparison, and build .tar.gz archives (TAR + GZIP). 100% client-side — your files never leave the browser.
About GZIP Compressor
Compress files to .gz format using the browser's native CompressionStream API. Batch compress multiple files, preserve original filenames, show before/after size comparison, and build .tar.gz archives (TAR + GZIP). 100% client-side — your files never leave the browser. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
What does this tool do?
It compresses files to the GZIP (.gz) format using the browser's native CompressionStream API. The output .gz file preserves the original filename in its header so GZIP decompressors (gunzip, 7-Zip, WinRAR, macOS Archive Utility) restore the original name automatically. For multiple files, you can combine them into a single .tar.gz archive (TAR + GZIP).
What compression level does it use?
CompressionStream uses the browser's built-in zlib implementation, which is typically level 6 (default). The browser API doesn't expose level control, so we display 'Default (browser-managed, ~level 6)' in the stats. This gives a good balance between speed and ratio for most file types.
Why are some files barely smaller after compression?
Already-compressed formats (JPEG, PNG, MP4, ZIP, XLSX, GZIP) don't compress further — they're already entropy-coded. Text files (TXT, CSV, JSON, XML, HTML, source code) typically shrink 60-90%. Random binary data won't compress at all.
What's the maximum file size?
There's no hard limit, but very large files (> 500MB) will use lots of memory because GZIP compresses the whole file at once. For multi-GB files, consider splitting first. The browser also has a per-tab memory cap (~2-4GB) that limits total batch size.
Can I compress multiple files at once?
Yes. Drag-drop or select multiple files — each becomes a separate .gz file preserving its original name. For a single output, enable 'Combine as .tar.gz' to bundle all files into a TAR archive then GZIP-compress it into one .tar.gz file.
What extra features does this tool have compared to others?
10 extras: (1) Drag-drop file input. (2) Batch compress multiple files at once. (3) Compression level display (browser-managed, ~level 6). (4) Before/after size comparison per file. (5) Aggregate stats — total saved bytes, total ratio. (6) Progress bar during batch compression. (7) Custom output filename. (8) .tar.gz support — combine TAR + GZIP into one archive. (9) History (localStorage — last 10 batch summaries). (10) Shareable URL with options (tar.gz toggle, custom filename).
Is my file uploaded anywhere?
No. All GZIP compression runs in your browser via the native CompressionStream API. File contents never leave your device. Only batch summaries (filenames + sizes) are saved to local history.
Does it work offline?
Yes. CompressionStream is a browser-native API available in all modern browsers (Chrome 80+, Firefox 113+, Safari 16.4+). Once the page loads, no network access is required.
Related tools
7Z Extractor
Inspect and extract files from 7z archives. Detects the 7z signature (0x37 0x7A 0xBC 0xAF 0x27 0x1C), parses the SignatureHeader and StartHeader, lists files from the archive metadata, and extracts STORE-method files when possible. Honest about LZMA compression limitations. 100% client-side.
APK Extractor
Extract and inspect Android APK files in the browser — pure JavaScript APK (ZIP) parser. View AndroidManifest.xml (binary XML detection), list DEX files, resources, and assets, extract individual files, detect app info (package name, version) from manifest. 100% client-side.
ARJ Extractor
Inspect ARJ archives. Detects the ARJ magic (0x60 0xEA), parses header structures, lists file entries with sizes and CRCs, and extracts STORE-method files when possible. Honest about ARJ compression limitations. 100% client-side.