Gzip Tool Online - Compress or Decompress Files and Text
Compress and decompress text and files with Gzip online in your browser. Fast, secure, client-side, with .gz download and Base64 output, no upload.
Input
Output
String & File Support
Compress both text strings and files of any type.
Client-Side Processing
All compression happens in your browser for maximum privacy.
Base64 Output
Get Base64 encoded strings for easy usage in web applications.
Compress any text or file into Gzip format directly in your browser, then download the result as a .gz file or copy it as a Base64 string. The same tool decompresses existing Gzip data back to its original content. Everything runs client-side using the browser's native compression APIs, so your input never leaves your device.
How to Use the Gzip Tool
- 1
Choose String or File mode
Switch to String mode to compress typed text, or File mode to upload a file of any type from your device.
- 2
Enter your input
Type or paste text into the input box, or drag and drop a file into the upload area to load it.
- 3
Click Compress or Decompress
Compress turns your input into Gzip data; Decompress restores Gzip input back to the original text or file.
- 4
Copy or download the output
Copy the Base64 string for use in web apps, or download the .gz file to save the compressed result locally.
References
- RFC 1952 — GZIP File Format Specification
The IETF specification defining the GZIP file format, including the header, CRC, and member structure.
- RFC 1951 — DEFLATE Compressed Data Format
The DEFLATE algorithm specification that GZIP uses to compress the underlying data stream.
- MDN — CompressionStream API
The browser Web API for gzip and deflate compression that enables client-side processing in this tool.
Related Tools
Gunzip Decompress
Decompress .gz files and Gzip Base64 strings back to their original content.
Base64 Encode / Decode
Encode or decode Base64 strings, including the Base64 output from this tool.
Compress PDF
Reduce the file size of PDF documents directly in your browser.
JSON Formatter
Beautify and validate JSON before or after compressing it with Gzip.
Frequently Asked Questions
- What does this Gzip tool do?
- This Gzip tool compresses text and files into Gzip format and can also decompress existing Gzip data in your browser.
- Are my files uploaded to a server?
- No. Compression and decompression run locally in your browser, so your files and text stay on your device.
- Can I gzip both files and plain text?
- Yes. You can work with plain text input or upload a file, then download the resulting .gz file or copy the Base64 output.
- What is the difference between Gzip and DEFLATE?
- DEFLATE (RFC 1951) is the core compression algorithm, while Gzip (RFC 1952) wraps DEFLATE-compressed data with a header, optional metadata, and a CRC-32 checksum for integrity.
- Why is the compressed output shown as Base64?
- Gzip output is binary, which is not safe to display or paste as plain text. Base64 encodes that binary into an ASCII string so you can copy it into JSON, configs, or web apps. Use File mode to download the raw .gz file instead.