---
title: "Gzip/Deflate 編解碼 - 免費線上工具 - AllTools - 全能工具箱"
description: "Gzip/Deflate/Zlib 壓縮解壓工具，支援對文字與二進位資料壓縮還原並比對前後檔案大小，適合 HTTP 內容編碼除錯與前端檔案大小最佳化。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"
canonical_url: "https://tool.warmday.wang/zh-Hant/crypto/compression"
meta:
  author: AllTools
  keywords: "線上工具箱, AllTools, 實用工具, 生活常用, 數學計算, 文字處理, 圖片處理, 開發者工具, PDF 工具, 單位換算, 免費工具, 免登入工具"
  "og:description": "Gzip/Deflate/Zlib 壓縮解壓工具，支援對文字與二進位資料壓縮還原並比對前後檔案大小，適合 HTTP 內容編碼除錯與前端檔案大小最佳化。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"
  "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 編解碼 - 免費線上工具"
  "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 編解碼**

線上 Gzip、Deflate、Zlib 壓縮與解壓縮工具，支援 Base64 和 Hex 格式。

## **壓縮工具**

**演算法 (Algorithm)**

**模式 (Mode)**

**資料格式 (Data Format)**

**輸入**

**壓縮結果 (Base64)**

## **使用說明**

#### **演算法介紹**

Gzip：GNU zip，HTTP 協定中最常用的壓縮演算法，附帶檔案名稱、時間戳記等中繼資訊；Deflate：RFC 1951 原始壓縮串流演算法，無額外標頭，體積最小；Zlib：RFC 1950，在 Deflate 基礎上增加標頭和 Adler-32 檢查碼，常用於資料串流傳輸和 PNG 檔案。

#### **使用步驟**

1\. 選擇演算法（Gzip/Deflate/Zlib）；2. 選擇模式（壓縮或解壓縮）；3. 選擇資料格式（Base64 或 Hex），壓縮時輸出為此格式，解壓縮時輸入為此格式；4. 在輸入框輸入內容；5. 點選「執行壓縮」或「執行解壓縮」按鈕；6. 結果區顯示處理後的資料，可點選「複製結果」複製。

#### **注意事項**

壓縮文字越短，壓縮效果越不明顯，甚至可能變大（因標頭開銷）；解壓縮時需選擇與壓縮時相同的演算法和格式，否則會失敗；Hex 輸入需為偶數長度且只含 0-9、a-f、A-F；本工具基於 pako 函式庫實作，文字依 UTF-8 編碼處理。

## **同類工具**

同一個分類下還有這些 · 加密解密

[**MD5 雜湊計算**計算文字與任意檔案的 MD5 32 位摘要，一鍵比對內容差異與校驗檔案完整性，運算在瀏覽器本機完成。](https://tool.warmday.wang/zh-Hant/crypto/md5) [**雜湊計算**雜湊計算工具，支援 MD5、SHA-1、SHA-256、SHA-512 等多種演算法對文字與檔案產生摘要，可一次比對多演算法結果用於校驗。](https://tool.warmday.wang/zh-Hant/crypto/hash) [**Base64 轉換**Base64 編碼解碼工具，支援文字字串與圖片檔案的雙向轉換，正確處理 UTF-8 中文與二進位資料，可產生 Data URL 用於內嵌圖片與 API 傳輸。](https://tool.warmday.wang/zh-Hant/crypto/base64) [**對稱式加密工具箱**整合 AES、DES、3DES、RC4、SM4 等對稱演算法，可自訂金鑰、初始向量與分組模式，適用於 API 資料加密與敏感資訊保護。](https://tool.warmday.wang/zh-Hant/crypto/symmetric) [**RSA 工具**產生 1024/2048/4096 位 RSA 金鑰對，支援公鑰加密、私鑰解密與簽章驗證，便於 API 加密除錯。](https://tool.warmday.wang/zh-Hant/crypto/rsa) [**PGP 工具**產生 OpenPGP/GnuPG 金鑰對，對文字與檔案加密、解密與簽章，相容 ASCII Armor 輸出。](https://tool.warmday.wang/zh-Hant/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/zh-Hant#website","url":"https://tool.warmday.wang/zh-Hant","name":"AllTools - 全能工具箱","inLanguage":"zh-Hant","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/zh-Hant?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/zh-Hant/crypto/compression#webpage","url":"https://tool.warmday.wang/zh-Hant/crypto/compression","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant#website"},"inLanguage":"zh-Hant","name":"Gzip/Deflate 編解碼 - 免費線上工具","description":"Gzip/Deflate/Zlib 壓縮解壓工具，支援對文字與二進位資料壓縮還原並比對前後檔案大小，適合 HTTP 內容編碼除錯與前端檔案大小最佳化。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/zh-Hant/crypto/compression#app","name":"Gzip/Deflate 編解碼 - 免費線上工具","description":"Gzip/Deflate/Zlib 壓縮解壓工具，支援對文字與二進位資料壓縮還原並比對前後檔案大小，適合 HTTP 內容編碼除錯與前端檔案大小最佳化。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。","url":"https://tool.warmday.wang/zh-Hant/crypto/compression","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"zh-Hant","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant/crypto/compression#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/zh-Hant/crypto/compression#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"首頁","item":"https://tool.warmday.wang/zh-Hant"},{"@type":"ListItem","position":2,"name":"加密解密","item":"https://tool.warmday.wang/zh-Hant/crypto"},{"@type":"ListItem","position":3,"name":"Gzip/Deflate 編解碼","item":"https://tool.warmday.wang/zh-Hant/crypto/compression"}]}]}
```

## Sitemap

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