Encode / Decode

GZip Compress / Decompress

Compress text into a gzipped Base64 string, or decompress a gzipped Base64 string back to text. Useful when you're working with APIs that return gzipped responses, or when you need to compress a large payload for storage or transmission. The compressed output is Base64-encoded so it's safe to handle as text.

GZip Compress / Decompress — Compress text to gzipped Base64 or decompress gzipped data

What it does

  • Compresses text using gzip/deflate and outputs Base64-encoded result
  • Decompresses Base64-encoded gzip data back to the original text
  • Handles Unicode text correctly during compression and decompression
  • Shows the compression ratio so you can see the size reduction

Use cases

  • Decompressing a gzipped API response that arrived as Base64
  • Compressing a large JSON payload before storing it in a database
  • Inspecting the contents of a gzipped config value
  • Testing compression ratios for different text payloads

How it works

1

Paste your text or Base64-encoded gzip data into the input pane

2

Choose Compress or Decompress mode

3

The result appears instantly in the output pane

4

Check the compression ratio to see how much smaller the output is

Frequently asked questions

1Why is the output Base64-encoded?

Gzip produces binary data that can't be safely displayed as text or pasted into most text fields. Base64-encoding the compressed bytes makes the output safe to handle as a string, store in JSON, or transmit over text-only channels.

2What compression level is used?

The tool uses the default compression level, which provides a good balance between speed and compression ratio. For most text payloads, the ratio is 60-80% depending on the content's redundancy.

3Can it handle binary files?

This tool is designed for text input. For binary files (images, archives), use a dedicated compression tool in your terminal or file manager.

Related tools

Use GZip Compress / Decompress offline in Devinity

All 95 tools run locally on your Mac. No internet required, no data sent to servers.

Download Devinity →