We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Free online Gzip compressor and decompressor. Instantly compress text to Base64 Gzip format or decode Base64 Gzip strings back to plain text.
Results will appear here after you enter content on the left and click a button.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
This tool accepts text and runs it through Gzip compression, then represents the resulting bytes as either Base64 or hexadecimal (Hex). In decode mode, it reverses those steps: interpret the supplied Base64 or Hex as bytes, decompress a Gzip stream, and display the result as UTF-8 text. Gzip is a compressed-data file format; Base64 and Hex are printable representations of bytes, not encryption.
Before compression, the text is encoded as UTF-8. Gzip produces a byte stream using the DEFLATE format; the output selector controls only how those bytes are written in the text box. Base64 uses a compact text alphabet for bytes, while Hex writes each byte as two hexadecimal digits. Changing the representation does not change the underlying decompressed text.
Format references checked September 28, 2026
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Choose Encode to compress ordinary text, or Decode to restore text from an existing Gzip byte sequence represented as text.
Use the same representation that matches the data you have. For decoding, the input must be valid Base64 or an even-length sequence of hexadecimal byte pairs; spaces are ignored and a leading 0x is accepted for Hex.
Paste or type the input, run the operation, and review the output and byte statistics. Copy the result for the next step in your workflow. If decompression fails, check that the bytes are complete Gzip data and that the selected representation is correct.
Use cases
See how the tool fits into real work and everyday tasks.
A developer or analyst can compress UTF-8 text and copy its Base64 or Hex representation into a test fixture or byte-oriented workflow that accepts text input.
When a log or example provides compressed bytes as Base64 or Hex, select Decode, match its representation, and inspect the restored text. Keep the original bytes if exact binary fidelity matters.
Q&A
Find concise answers to common questions and confusing cases.
No. Base64 is a reversible text encoding for bytes. Anyone with the encoded value can decode it; it provides no confidentiality.
The percentage compares the original UTF-8 byte count with the compressed Gzip byte count. It does not include the extra characters used to display those bytes as Base64 or Hex.
Short or high-entropy text may not compress enough to offset Gzip framing and compression overhead. Compression does not guarantee a smaller result for every input.
Confirm that the input is complete, choose the matching Base64 or Hex representation, and make sure the decoded bytes form a Gzip stream. Arbitrary encoded bytes are not necessarily compressed text.
Notes
Review scope, result limitations, and important precautions before use.
The tool handles text, not file uploads or arbitrary binary files, and its decoded result is interpreted as UTF-8. A successful display does not prove that the source was authentic or safe to use. Do not treat compression or Base64/Hex encoding as encryption, signing, or integrity verification. Preserve and validate original bytes when a protocol or application requires exact data.
Related
Discover related tools, collections, and available API capabilities.