GZIP Tool — Compress & Decompress .gz Files
Compress any file to .gz, or unpack a .gz back to the original — on your device.
Gzip is the compression format the Unix world — and quietly, most of the web — runs on: log files ship as .gz, backups land as .tar.gz, and every browser negotiates gzip with every server without you ever seeing it. What it is not is a general archive format like ZIP: a .gz holds exactly one file, compressed. This tool does those two honest jobs — make a .gz from a file, and get the original file back out of a .gz.
Compression and decompression happen on this device only — your file is never uploaded. GZIP is a single-file format: one file in, one file out.
Quick answers
How do I open a .gz file?
Switch to “Decompress a .gz file”, choose the archive, and the original file inside it downloads — named by stripping the trailing .gz.
If the file is not genuinely gzip data, the tool reports that plainly instead of saving an empty or corrupt file.
What is the difference between gzip and ZIP?
A .gz compresses exactly one file; a ZIP is an archive that bundles many files, each compressed. For several files at once, use the ZIP tool.
That is also why a .tar.gz is two steps: tar bundles the files, gzip compresses the bundle. This tool handles the gzip step only.
Why did my .gz come out larger than the original?
The input was almost certainly already compressed (a photo, video or existing archive), so gzip adds its small header to data it cannot shrink — the result panel flags this case.
Text, logs, CSV and code files are where gzip earns its keep, often shrinking to a fifth of the original.
How to use
- To compress: stay on “Compress a file”, choose any file, and download its .gz version with the before-and-after sizes shown.
- To decompress: switch to “Decompress a .gz file”, choose the archive, and download the file inside it.
- The decompressed file takes the archive’s name with the trailing .gz removed (or .out added if the name had no .gz to remove).
- If a file is not really gzip, you get a plain error saying so — never a silent empty download.
About this tool
Compression runs on the same DEFLATE algorithm gzip has used since 1992, so the .gz you download here opens with any standard tool (gzip -d, 7-Zip, Archive Utility) and the .gz files those tools make open here. The result panel shows both sizes and the ratio, including the honest case: feed it a JPG, an MP3 or an existing ZIP and the .gz may come out the same size or slightly larger, because already-compressed data has nothing left to squeeze. The tool says so instead of pretending a saving.
Everything happens in your browser. The file is read into this page’s memory, compressed or decompressed, and offered back as a download — it is never uploaded, which is also why very large files are bounded by your device’s free memory rather than by any server limit.
Frequently asked questions
Are my files uploaded?
No. Compression and decompression run in your browser on this device. Nothing is sent anywhere or stored.
Can this open a .tar.gz file?
Half of it: decompressing a .tar.gz here gives you the .tar bundle inside. Extracting the individual files from that .tar is a separate step this tool does not do — a desktop archiver such as 7-Zip handles the pair in one go.
Why does my decompressed file end in .out?
The download name is made by stripping a trailing .gz from the archive’s name. If the file you picked did not end in .gz — but still contained valid gzip data — there was nothing to strip, so .out is added to mark it as the output.
It says my file is not a valid gzip archive — but it ends in .gz?
Then the contents are not gzip, whatever the name claims: the file may be truncated, corrupted, or actually a ZIP or 7z renamed. The error is the tool refusing to hand you garbage dressed as a successful extraction.
How big a file can I compress?
There is no page-set limit; the ceiling is your device’s free memory, since the file and its compressed form are both held in the browser. Desktop machines handle hundreds of megabytes; on a phone, stay modest.
First time embedding? Read the step-by-step guide →
More free tools
ZIP Tool — Create & Extract Archives
Zip files together or open a ZIP archive — no uploads, everything stays on your device.
Base64 Encode / Decode
Encode text to Base64 or decode it back.
Color Converter (HEX ↔ RGB)
Convert HEX to RGB and back, with live preview.
Unit Converter
Convert length, weight and temperature instantly.
Currency Converter
Daily ECB reference rates for 26 currencies — updated once per business day.
World Clock & Time Converter
Current time in major cities, plus converter.