File Compressor
Upload any file, pick from 8 compression algorithms, and download the result. Everything runs in the browser: native APIs for gzip and deflate, CDN-loaded libraries for the rest. Files never leave your machine.
Live Demo
Drop a file, pick an algorithm, and compress. Nothing leaves your browser.
How it works
Algorithm Comparison
All 8 algorithms ranked by speed and compression ratio.
| Algorithm | Speed | Ratio | Year | Best for |
|---|---|---|---|---|
| gzip | ★★★★★ | ★★★★★ | 1992 | Web, general purpose |
| deflate | ★★★★★ | ★★★★★ | 1996 | ZIP, PNG internals |
| Brotli | ★★★★★ | ★★★★★ | 2015 | Web content, CDN |
| Zstandard | ★★★★★ | ★★★★★ | 2016 | General purpose, databases |
| LZMA | ★★★★★ | ★★★★★ | 1998 | Archives, maximum compression |
| LZ4 | ★★★★★ | ★★★★★ | 2011 | Real-time, streaming |
| Bzip2 | ★★★★★ | ★★★★★ | 1996 | Large text, source archives |
| Snappy | ★★★★★ | ★★★★★ | 2011 | Data pipelines, databases |
Decisions
From LZ4 (fastest, lower ratio) to LZMA (slowest, best ratio), every major compression philosophy is represented. Users can compare algorithms on the same file to see the tradeoffs firsthand.
gzip and deflate use the browser's built-in CompressionStream API for maximum speed and zero dependencies. The remaining 6 algorithms lazy-load their libraries from CDN only when first selected, keeping initial page load fast.
Files never leave the user's machine. Libraries run locally once downloaded from CDN. This removes privacy concerns, avoids upload bandwidth limits, and works offline once loaded.
Each algorithm can reverse its own output. The decompress tab uses DecompressionStream for native formats and the corresponding library decompressor for the rest. File extensions are stripped or added automatically.