Skip to content
Tools

Gzip & Deflate Compressor

Compress and decompress text with gzip or deflate, as Base64.

Local
Output

What this tool does

This tool compresses text with gzip or deflate and shows the result as Base64, and decompresses Base64 data back to text. It uses your browser's built-in compression, so nothing is uploaded.

gzip, deflate and raw deflate

The three formats differ only in their framing. gzip adds a gzip header and checksum, deflate (zlib) adds a zlib header, and raw deflate has no wrapper. To decompress correctly, pick the same format the data was compressed with.

Why testers reach for it

APIs often send compressed responses, and a captured payload or a fixture may be gzip-encoded. This lets you read that content, or produce a compressed body to send, and see how much a response shrinks, all without a command line.

Common use cases

  • Reading a gzip-encoded API response body.
  • Preparing a compressed request body for a test.
  • Checking the compression ratio of a payload.

Frequently asked questions

Which format should I pick to decompress?
The same one the data was compressed with. gzip, zlib deflate and raw deflate differ only in their framing.
Is my data uploaded?
No. Compression uses your browser's built-in CompressionStream and never contacts a server.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.