Gzip and Deflate Compressor and Decompressor

Compress text with gzip or deflate into Base64, or decompress Base64 back to text, all in your browser.

About Gzip and Deflate Compressor and Decompressor

Compress text with gzip or deflate and get the result as Base64 text, which is easy to paste into a config file, an API payload or a test. Decompress reverses the process when you paste Base64 that came from a gzip or deflate stream.

Compression uses the browser's built-in CompressionStream, so it needs no upload. Repetitive text compresses well; short or random text can get slightly larger because of headers.

How to use it

  1. Choose Gzip or Deflate, then compress or decompress.
  2. Paste the text, or Base64 for decompression.
  3. Copy the output.

Questions

Is my text uploaded?

No. Everything runs in your browser; nothing you type or generate is sent to a server.

What is the difference between gzip and deflate here?

Gzip adds a header and checksum for files. Deflate is the zlib wrapper used by HTTP and many libraries. Use the same one that the other side expects.

Why does my compressed text look longer?

Base64 adds about 33% overhead, and very short inputs have header bytes that outweigh the savings.

More Data & Converters tools

Home · All Tools · Blog