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.

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
Paste your text or Base64-encoded gzip data into the input pane
Choose Compress or Decompress mode
The result appears instantly in the output pane
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

Base64 String Encode/Decode
Encode and decode Base64 strings (unicode-safe)

Hex ⇄ Text
Convert between text and hexadecimal bytes (UTF-8)

Hexdump Viewer
Display text, hex, or base64 data as a classic hexdump with offset, hex bytes, and ASCII

JSON Formatter & Validator
Format, validate, repair, and minify JSON
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 →