Developer Toolbox

Gzip 与 Brotli 压缩

逐字节查看 gzip 和 Brotli 如何压缩你的文本或文件

输入
结果

大小、统计数据和结论会显示在这里。

示例

示例 输入应用
API 响应(JSON) { "page": 1, "perPage": 14, "total": 213, "data": [ { "id": 1040, "name": "Alice Smith", "email": "[email protected]", "role": "editor", "active": true,
样式表(CSS) /* Card component */ .card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; background-color: #ffffff; b
脚本(JavaScript) // Debounced search box that fetches suggestions from the API. import { escapeHtml } from './utils.js'; const DEFAULT_DELAY = 250; const MAX_RESULTS = 8; export function debounce(callback, delay = D
精简后的脚本 import{escapeHtml as t}from"./utils.js";export function debounce(t,e=250){let n=null;return function(...r){null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null,t.apply(this,r)},e)}}export class SearchBo
服务器访问日志 83.20.144.23 - - [10/Oct/2026:14:12:06 +0200] "GET / HTTP/2.0" 500 41928 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/53
网页(HTML) <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Pricing</title> <link rel="stylesheet" href="/assets/
随机字节的 Base64 Y3qgfuHq8j3HOW0NpngWgAUSOqdO3p94nHBjAAvmyCUhPa0ivHCzhdohI2M2F3vDef1ibPlmQ/Ef vWFjvXyZkGfz0ZjwjIjTkDQ/FNGq/3JIJzX53jROsEoQ2NWDfhCkV03XMTk8Jp9WaUg7DTI0pwx5 PRokN7/Ci9IWIM+EfL7Gurv0dz8yicm7ru0LfRSnHuDtPA
很短的文本 Hello!