If this tool helped you, you can buy us a coffee ☕
Gzip压缩与解压,支持文本Base64编码输出。
Results will appear here after you enter content on the left and click a button.

URL to JSON Parser
Parse URL strings into structured JSON to quickly extract key information like protocols, parameters, and paths.

GZIP Compression Checker
Enter a webpage URL to instantly check if GZIP compression is enabled. Estimate compression ratios and file size savings to optimize website performance.

PYC Decompiler
Restore Python bytecode .pyc files into readable source code for easy code auditing and learning. Supports mainstream versions.
当您需要压缩文本以降低传输体积,或解码经过Gzip处理的数据时,可使用本工具实现Gzip编码与解码。Gzip是一种广泛使用的无损压缩算法,本工具将其应用于文本内容的在线处理,支持将原始文本压缩为Base64格式的Gzip数据,同时可将Base64编码的Gzip字符串还原成原始明文,方便存储、传输和调试。
H4sIAAAAAAAAA/NIzcnJVwjPL8pJAQQAgnNF6wwAAAA= 的Base64结果;将该字符串粘贴并解码,可精准还原为 “Hello World”。所有输入输出均基于UTF-8编码文本;解码时请确保提供的是有效的Base64编码Gzip数据,若格式不正确可能会提示解码失败。本工具完全在浏览器本地运行,您的数据不会被上传至服务器,注意保护个人隐私。对于超大文本,若页面出现无响应,请尝试分割内容后再操作。
Gzip压缩基于DEFLATE算法,对包含大量重复字符串的文本(如JSON、XML、HTML)效果尤为显著。压缩后的Base64字符串长度约为原始二进制Gzip数据的4/3倍。解码时如果Base64字符串含有 data:application/gzip;base64, 等数据URI前缀,请手动去除前缀后再进行解码。典型示例:纯文本 “Hello” 编码后的Base64为 H4sIAAAAAAAAA/NIzcnJVwIAxUa+QAYAAAA=,可帮助您快速验证工具的准确性。