Compress / Decompress

Compress / Decompress

Compress text or files with GZip, Deflate (zlib), or raw Deflate; decompress them back — fully client-side using browser CompressionStream APIs.

RFC 1952 — widely supported, adds header/checksum
Drop a file here to compress it
or use the text input above for text content

Compress / Decompress

Compress text or files with GZip, Deflate (zlib), or raw Deflate; decompress them back — fully client-side using browser CompressionStream APIs.

Common uses

  • Compress a JSON payload for storage
  • Decompress a .gz file in the browser
  • Measure compression ratio of a text blob

Also searched as

  • gzip decompress online
  • gzip compress text online
  • decompress gz file in browser
  • decompress base64 gzip
  • deflate compress online
  • brotli compress online
  • zlib inflate online
  • gunzip online
  • compress text to base64 gzip
  • compression ratio calculator
  • decode gzipped payload

Frequently asked questions

How do I decompress a gzip string or base64 payload?

Open the Decompress tab, paste the data as Base64 or hex or load the file, and choose GZip. The output is shown as text.

What compression formats are supported?

GZip, Deflate (zlib), raw Deflate and Brotli. GZip and Deflate use the browser's CompressionStream API, while Brotli runs through a WebAssembly build.

Can I see how much my data shrinks?

Yes, the Compress tab shows the compressed size and the ratio so you can judge how well the data compresses.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.