Gzip/Deflate/Zlib Codec

Online Gzip, Deflate, Zlib compression and decompression tool, supports Base64 and Hex formats.

Compression Tool

Usage

Algorithm Introduction

Gzip: GNU zip, the most common compression algorithm in HTTP, includes filename, timestamp metadata; Deflate: RFC 1951 raw compression stream, no extra headers, smallest size; Zlib: RFC 1950, adds header and Adler-32 checksum on top of Deflate, commonly used in data streaming and PNG files.

Steps

1. Select algorithm (Gzip/Deflate/Zlib); 2. Select mode (Compress or Decompress); 3. Select data format (Base64 or Hex); 4. Enter content in the input box; 5. Click "Compress" or "Decompress"; 6. Result appears in the output area, click "Copy Result" to copy.

Notes

Shorter text compresses less effectively, may even increase in size (due to header overhead). Decompression requires the same algorithm and format used for compression. Hex input must be of even length and contain only 0-9, a-f, A-F. Based on pako library, text is processed as UTF-8 encoding.