Online Gzip Encoder / Decoder
Gzip压缩Base64编码解码文本压缩
Compress text to gzip via the native CompressionStream and output a Base64 string, or restore Base64 gzip data back to text. Supports Chinese and emoji, clear errors on corrupted data, fully local processing.
输入
结果
All processing is done locally in your browser, no upload
How to Use
- Paste any valid JSON, supports nesting, arrays and escapes
- Click Beautify to auto indent and format
- Click Minify to remove whitespace into one line
- All operations run locally for privacy
Related Tools
FAQ
What format is the encoded output?
Text is UTF-8 encoded then compressed with standard gzip, and the binary result is converted to a Base64 string you can paste into code, configs or APIs.
What input does decoding accept?
Standard or URL-safe Base64 gzip data. Missing gzip magic bytes, invalid Base64 or corrupted content produce explicit error messages instead of silent failures.
Is it compatible with node zlib?
Yes. It uses standard RFC 1952 gzip, so output can be decompressed by node:zlib, Python gzip, Go and any standard implementation, and vice versa.