---
title: "Gzip/Deflate Codec, Compress & Decompress - AllTools"
description: "Compress and decompress with Gzip, Deflate and Zlib, showing a before/after size comparison for HTTP encoding debugging and optimization — all in-browser."
canonical_url: "https://tool.warmday.wang/en/crypto/compression"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Compress and decompress with Gzip, Deflate and Zlib, showing a before/after size comparison for HTTP encoding debugging and optimization — all in-browser."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "Gzip/Deflate Codec, Compress & Decompress"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **Gzip/Deflate/Zlib Codec**

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

## **Compression Tool**

**Algorithm**

**Mode**

**Data Format**

**Input**

**Compression Result (Base64)**

## **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.

## **Related tools**

More from the same category · Encryption

[**MD5 Hash**Generate 32-char MD5 digests for text and files to verify integrity and detect content changes locally.](https://tool.warmday.wang/en/crypto/md5) [**Hash Calculator**MD5, SHA-1, SHA-256, SHA-512 digests for text and files in one pass for checksums.](https://tool.warmday.wang/en/crypto/hash) [**Base64 Converter**Base64 encode/decode for text, UTF-8 and images, with Data URL output for inline embedding.](https://tool.warmday.wang/en/crypto/base64) [**Symmetric Encryption**Encrypt/decrypt with AES, DES, 3DES, RC4 and SM4, configurable mode, padding, key and IV, fully client-side.](https://tool.warmday.wang/en/crypto/symmetric) [**RSA Tools**Generate RSA key pairs (1024-4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS, browser-side.](https://tool.warmday.wang/en/crypto/rsa) [**PGP Tools**Generate OpenPGP keys, encrypt, decrypt and sign text or files with GnuPG-compatible ASCII-armored output.](https://tool.warmday.wang/en/crypto/pgp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/crypto/compression#webpage","url":"https://tool.warmday.wang/en/crypto/compression","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"Gzip/Deflate Codec, Compress & Decompress","description":"Compress and decompress with Gzip, Deflate and Zlib, showing a before/after size comparison for HTTP encoding debugging and optimization — all in-browser."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/crypto/compression#app","name":"Gzip/Deflate Codec, Compress & Decompress","description":"Compress and decompress with Gzip, Deflate and Zlib, showing a before/after size comparison for HTTP encoding debugging and optimization — all in-browser.","url":"https://tool.warmday.wang/en/crypto/compression","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/crypto/compression#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/crypto/compression#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Crypto & Security","item":"https://tool.warmday.wang/en/crypto"},{"@type":"ListItem","position":3,"name":"Gzip/Deflate Codec","item":"https://tool.warmday.wang/en/crypto/compression"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
