Jamie Software Lab
JavaScript Compression WASM Streams API

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.

BackendNone: browser only
Algorithms8 (gzip, deflate, Brotli, zstd, LZMA, LZ4, Bzip2, Snappy)
LibrariesLazy-loaded from CDN on first use
Max file sizeLimited by available RAM

Live Demo

Drop a file, pick an algorithm, and compress. Nothing leaves your browser.

Drag & drop a file here, or click to browse
- -
Compressing...
- Original
- Compressed
- Savings
- Time

How it works

Select
Pick from 8 algorithms, each tuned for different speed and ratio tradeoffs
Load
Library is fetched from CDN on first use. gzip and deflate run natively with zero downloads.
Process
File bytes are piped through the compression or decompression algorithm
Download
Output is collected into a Blob and offered as a browser download

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

8 algorithms covering the full speed-ratio spectrum

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.

Native APIs first, CDN libraries second

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.

No server component

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.

Decompress mode with format detection

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.