Compress Gzip Base64
GZIP-compress any text or JSON and encode the result as Base64 — instantly in your browser. Choose compression level and output format.
The Compress Gzip Base64 tool takes any text or JSON payload, compresses it with the GZIP algorithm, and encodes the binary result as a Base64 string — ready to drop into an API request, HTTP header, or IoT platform attribute.
You can choose a compression level from 1 (fastest) to 9 (best), and toggle URL-safe output for use in query strings or JWT-style tokens that cannot contain +, /, or =.
All processing happens entirely in your browser using the pako library — nothing is ever sent to a server.
- 1Compressing JSON payloads before sending to IoT platforms (FIWARE, AWS IoT, Azure IoT Hub)
- 2Generating compact Base64 tokens for HTTP headers or query strings
- 3Reducing payload size for MQTT or HTTP messaging systems
- 4Creating Gzip Base64 test fixtures for use with the Decode Gzip Base64 tool
Related Tools
JSON Formatter
Format, validate and beautify JSON data instantly online.
Base64 Encoder
Encode plain text to Base64 instantly in your browser. Free and private.
Base64 Decoder
Decode Base64 strings back to plain text, JSON, or XML instantly. Auto-detects and syntax-highlights structured output.
Decode Gzip Base64
Decode and decompress Gzip-compressed Base64 strings instantly in your browser. Supports URL-safe Base64, data URIs, and JSON output.
