Gzip Compress / Decompress

About this tool

Compresses text with the gzip algorithm using the browser's native CompressionStream API, then encodes the compressed bytes as Base64 so you can copy and paste them anywhere. Decompression reverses the process with DecompressionStream. After each operation the tool reports the original and resulting sizes so you can see how well the content compressed.

Gzip works best on longer, repetitive text such as JSON, logs or source code; very short strings may actually grow because of the format's fixed header. The whole pipeline runs locally on streams inside your browser — nothing is uploaded, making it safe for private or sensitive data.

Related tools

Base64 Encoder / DecoderCRC32 ChecksumJSON Formatter