Gzip Compress / Decompress

Compress text to a gzip Base64 string and back - entirely in your browser

Input
0 B
Output
0 B
Saved
-
0 chars ยท 0 lines
0 chars

How it works

Compression uses the browser's native CompressionStream API and produces a gzip stream encoded as Base64, which is safe to paste anywhere. Decompression reverses the process exactly, so round trips are lossless.

The Saved stat compares input and output byte sizes. Small inputs may grow slightly - gzip has header overhead, so it shines on larger, repetitive text.