Zlib Decompress Online

Paste base64 or hexadecimal zlib data and decompress it into readable text.

Compression tool

Decompress zlib data

Input
Result
Enter a value to see the result automatically.

About this zlib decompress tool

Decompress Base64 or Hex zlib data online, compare compressed and output sizes, and automatically pretty-print decoded JSON with browser-native processing.

What it does

Zlib and deflate payloads appear in APIs, caches, logs, and encoded debugging samples. They are similar to gzip in that they compress bytes, but the wrapper format is different. A gzip decoder will often fail when the input is actually zlib data, which is why a separate focused page is useful.

When to use it

This tool accepts base64 or even-length hexadecimal input and attempts to decompress it using the browser DecompressionStream API. When the decompressed result is text, it is shown directly in the output area. The page is designed for short pasted values rather than large archives.

How it works

A common use case is debugging an encoded field from an API response or a stored diagnostic value. You can paste the compressed text, run the decompressor, and quickly see whether the payload contains JSON, plain text, HTML, or another readable format.

Practical note

If the output is unreadable, the original payload may be binary, encrypted, not actually zlib, or encoded in another wrapper. Try the gzip decompressor when you know the payload starts as gzip, and use this page for zlib or deflate-style data.

Decompress zlib data

Input

eJzzSM3JyVcozy/KSQEAGKsEPQ==

Output

Input encoding: Base64 / Compression wrapper: Zlib / deflate / Compressed size: 19 bytes / Decompressed size: 11 bytes / Output: Hello world

How to use

  1. Paste or enter the value you want to process.
  2. The tool updates the output automatically.
  3. Copy the clean result you need.

Best for

  • API debugging
  • Log inspection
  • Compressed text checks
  • Small payload review

Compression format notes

Wrapper matters

Gzip, zlib, and raw deflate are related but not interchangeable. A payload can fail simply because it is using a different wrapper.

Encoded input

The page is designed for pasted base64 or hexadecimal strings, not large binary archives or files.

Browser support

Decompression uses browser-native APIs when available. Older browsers may not expose the required stream support.

Zlib and deflate decoding details

Zlib, raw deflate, and gzip use related compression technology but different containers. Checking the expected wrapper and text encoding is the fastest way to diagnose a failed decode.

Zlib wrapper

A zlib stream normally includes a short header and an Adler-32 checksum around deflate data. This differs from the larger gzip container.

Deflate naming

Libraries sometimes use deflate to mean zlib-wrapped data and sometimes mean raw deflate blocks. Confirm the producer's documentation when decoding fails.

Base64 and Hex

Both are text representations of the compressed bytes. This page detects either input form before applying browser-native decompression.

Inspect sizes

Compressed and decompressed byte counts help verify that a payload expanded as expected and make unexpectedly large output easier to notice.

Zlib Decompress Online common mistakes

FAQ

Is zlib the same as gzip?

No. They are related compression formats, but their wrappers differ and they should be decoded with the right tool.

Can I paste hex input?

Yes. Even-length hexadecimal input is accepted.

Why is the result blank or unreadable?

The decompressed bytes may not be text, or the input may not be valid zlib data.

Is zlib the same as gzip?

No. Both commonly contain deflate-compressed data, but their headers, checksums, and container formats differ.

Why does raw deflate data fail here?

Browser DecompressionStream deflate mode expects a compatible wrapped stream. Truly raw deflate data may require a library or producer-specific handling.

Does Base64 decoding decompress zlib data?

No. Base64 decoding only restores bytes. Zlib decompression is a separate step applied afterward.