Encoding & Decoding

Deflate / Gzip Text Compressor (Base64)

Compress or decompress text in the browser with CompressionStream using Deflate or Gzip, and represent binary output as Base64. Useful for testing URL payloads, state serialization size, and transport formats. Requires browser support for compression streams.

CompressionDeflateGzip

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Pack larger JSON state into Base64 for transport experiments
  • Verify a front-end decompression path restores the original text
  • Compare payload sizes across compression formats

How to use

  1. Enter source text
  2. Choose Deflate or Gzip and compress
  3. Paste Base64 when you need to decompress

Example input and output

Source

{"a":1,"a":1,"a":1}

Output

Base64 string of Gzip/Deflate bytes

FAQ

Why does it say CompressionStream is unsupported?

Compression and decompression need native CompressionStream / DecompressionStream. Older browsers may lack them—try a newer browser.

Why is the output Base64?

Compressed output is binary. Base64 makes it easy to copy into URLs, configs, or API fields.

Tools

Related tools

Continue with another translated tool for a nearby task.

Base64 Encode/Decode

Base64 Encoder and Decoder

Available

Encode and decode Base64 in the browser, with standard and URL-safe variants, automatic direction detection, and optional file-to-Base64 conversion. Useful for API debugging and local data prep.

Base64 Encoding Developer

JSON Formatter

JSON Formatter and Validator Online

Available

Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.

JSON Formatter Developer

URL Encode/Decode

URL Encoder and Decoder

Available

Percent-encode or decode text with encodeURIComponent or encodeURI. Useful for query values, non-ASCII paths, and API debugging. All processing stays in the browser.

URL Encoding Decoding