Converters

Compression Converter

Compress and decompress text or Base64 data with gzip, deflate, deflate-raw, and Brotli where supported by your browser, with Base64 output and downloads.

Tool

Compression Converter

Compress and decompress text or Base64 data with gzip, deflate, deflate-raw, and Brotli where supported by your browser, with Base64 output and downloads.

This tool runs in your browser. Your input is processed locally and is not uploaded.

About this Tool

Use this free online compression converter to compress text into gzip, deflate, deflate-raw, or Brotli output, or decompress supported Base64 compressed data back into readable text. It is useful for debugging payloads, testing browser compression, and preparing downloadable compressed blobs. The tool runs in your browser and enables formats based on available browser support. Compressed data is usually binary, so the result can be copied as Base64, previewed as text after decompression, or downloaded when a file-style output is more useful.

Examples

  • Compress JSON text to gzip
  • Decompress a Base64 gzip payload back to text
  • Compress repeated text and compare size
  • Download compressed output as .gz
  • Use deflate for compatible compressed data
  • Use deflate-raw when raw deflate streams are needed
  • Use Brotli only when the browser supports it
  • Small text such as Hi may become larger after compression

Frequently Asked Questions

What is gzip used for?

Gzip is widely used for HTTP responses, logs, archives, API payloads, and command-line workflows. It wraps deflate-compressed data with headers and checksums that help tools identify and validate the stream.

What is the difference between gzip and deflate?

Gzip uses the deflate compression algorithm inside a gzip container. Deflate output is a different stream format and may be required by APIs, protocols, or libraries that do not expect gzip headers.

What is deflate-raw?

Deflate-raw is the raw compressed deflate stream without the usual zlib or gzip wrapper. It is useful only when another system explicitly expects raw deflate data.

What is Brotli?

Brotli is a modern compression format often used on the web for text assets such as HTML, CSS, JavaScript, and JSON. It can compress very well, especially for larger text content.

Why is Brotli not always available?

Browser support for Brotli through compression APIs varies. The tool detects available formats in the current browser and only enables options that can be processed locally.

Why is compressed output not readable text?

Compression produces binary data. This tool can show binary output as Base64 for copying or provide it as a downloadable file so the bytes are not corrupted by text handling.

Why can small text become larger?

Compressed formats add headers, metadata, and structure. Very short inputs such as Hi may become larger because there is not enough repetition for compression to offset that overhead.

Can this tool decompress Base64 compressed data?

Yes. Choose decompress mode, select gzip, and provide a supported input format such as a file or Base64-encoded compressed data.

Does compression encrypt my data?

No. Compression reduces size; it does not hide or protect content. Anyone who can decompress the data can read the original text.

Does the tool upload files or text?

No. Compression and decompression are designed to run in your browser with the available CompressionStream and DecompressionStream support.

Related Tools