Encoding

Gzip Compress & Decompress

Compress text to Base64-encoded Gzip data or restore Base64 Gzip content as UTF-8 text. Supports Chinese, emoji, examples, copy and .gz downloads entirely in your browser.

About this tool

Compress text to Gzip and display the result as Base64, or paste Base64 Gzip data to restore UTF-8 text. It is useful for reducing repetitive JSON, logs, configuration and long text samples before copying or transferring them.

The tool uses native CompressionStream and DecompressionStream APIs without a backend. Nothing is uploaded or stored, and Base64, Gzip and UTF-8 validation helps identify damaged or incompatible input.

Best use cases

  • Reduce the size of repetitive JSON, logs or configuration text for easier copying and transfer.
  • Restore Base64 Gzip text from API documentation, network captures or other tools.
  • Verify compressed content locally, then download a standard .gz file or the decompressed TXT file.

How to use it

  1. Choose Text → Gzip or Gzip → Text, enter the matching content, or load the example.
  2. Compress or decompress to view Base64 or the restored text.
  3. Review original size, compressed size and ratio, then copy the result or download a file.

Scope and limits

  • Up to 2 MB of source text, 4 MB of compressed data represented by Base64, and 10 MB of decompressed output.
  • Standard Base64 Gzip data is supported; whitespace is ignored and omitted trailing padding is accepted.
  • Decompressed content must be valid UTF-8 text. Gzip reduces size but does not encrypt or protect confidentiality.

Data processing

Compression, decompression, copying and downloading run entirely in your browser. Nothing is uploaded or stored.

FAQ

Why is the compressed result shown as Base64?

Gzip output is binary and cannot be pasted safely into text fields or JSON strings. Base64 makes the bytes portable for copying and transfer, while the .gz download preserves the original binary data.

Can Gzip encrypt sensitive content?

No. Gzip only reduces data size; anyone can decompress it. It provides neither confidentiality nor integrity protection. Use a dedicated encryption solution for sensitive content and avoid untrusted online services.

Are Chinese and emoji supported?

Yes. Text is encoded as UTF-8 before compression and decoded as UTF-8 after decompression, so Chinese, emoji and line breaks round trip without loss.

Related tools

More in this category