📦 GZIP Compressor & Decompressor

Compress or decompress data using GZIP. Runs entirely in your browser.

Last updated: November 8, 2026 · By the BoltQuickTools team

Your browser does not support the CompressionStream API. Please use a modern browser such as Chrome 80+, Edge 80+, Firefox 113+, or Safari 16.4+.

Gzip or unpack data without a command line

You may need to see how much a text payload shrinks under gzip, or read a Base64 gzip blob found in a log, an API response or a config value. This page does both using the browser's built-in CompressionStream and DecompressionStream, and the tool's code sends nothing over the network.

Compressing and decompressing

  1. Choose the Compress or Decompress tab. Switching tabs clears the page.
  2. Choose Text or File. In Decompress mode, Text expects Base64 and File expects real gzip bytes.
  3. Press the Compress or Decompress button. Results appear in Output, with Original Size, the result size, Ratio and Savings below.
  4. Copy Output copies the text shown. Download saves the raw bytes.

Real results on small inputs

Input (Text mode)OriginalCompressedRatioSavings
hello5 B25 B500.0%-400.0%
hello repeated 10 times with spaces59 B29 B49.2%50.8%
1000 letter a1000 B29 B2.9%97.1%

Compressing hello printed:

H4sIAAAAAAAACstIzcnJBwCGphA2BQAAAA==

The first row shows why very short strings get bigger: gzip adds a header and trailer of 18 bytes whatever the input size. The header also records an operating system code, so a few characters near the start of that Base64 can differ between platforms. The decompressed result is the same. To check it in a terminal, run echo 'H4sI...' | base64 -d | gunzip.

What it accepts and what it will not do

Answers to likely questions

Why does the Original Size look wrong after decompressing?

In Decompress mode, that card shows the size of the gzip data you supplied, and the Decompressed Size card shows what came out.

Can I paste the compressed output straight into an HTTP body?

Not as Base64 text, unless the receiver decodes it. For Content-Encoding: gzip send the raw bytes from Download. The API tester is useful for trying such requests.

What can I do with a pasted Base64 string that is not gzip?

Decode it with the Base64 tool and inspect the first bytes in the hex editor. Gzip data begins with the bytes 1F 8B.