Mã hóa

Gzip/Deflate ↔ Base64

Nén văn bản thành Gzip hoặc Deflate rồi mã hóa kết quả bằng Base64 — và ngược lại. Hoạt động qua Compression Streams API ngay trong trình duyệt.

Câu hỏi thường gặp

What's the difference between Gzip and Deflate here?

Gzip wraps the compressed data in a header and a trailing CRC checksum, while Deflate is the raw compression stream without that wrapper. Data compressed with one format can't be decoded by picking the other — make sure the selected format matches how the data was produced.

Why do I need to Base64-encode the compressed data?

Gzip/Deflate output is raw binary, which doesn't survive well in text contexts like URLs, JSON, or config files. Base64-encoding it turns that binary data into safe, copyable ASCII text.

Why does the tool say my browser doesn't support this?

This tool relies on the browser-native Compression Streams API (CompressionStream/DecompressionStream), which isn't available in every browser or older version — no data is sent to a server, so if it's unsupported the tool simply can't run.