Skip to content

Gzip Online

Compress files or pasted text to .gz, and decompress gzip archives — all inside your browser.

Last updated

One file up to 25 MB — or paste text below instead.

How to use gzip online

  1. Choose a mode: Compress to .gz or Decompress a .gz file.
  2. To gzip compress: pick a file, or paste text into the box, then tap Compress. The sizes before and after appear with the percentage saved; tap Download .gz to save it.
  3. To gunzip online: switch to Decompress, choose the .gz file and the tool unpacks it immediately — tap Download decompressed file to save it. Text results under 100 KB also show a preview.

Examples

Compress pasted text to .gz

Paste any text — log lines, JSON, markup — into the box and tap Compress. The size readout shows how well gzip squeezed it.

Shrink a CSV export before archiving

Pick the CSV in Compress mode. Row-heavy text data is gzip’s favourite meal — savings of 80% or more are common.

Open a .gz log archive

Switch to Decompress and choose the file. If it is plain text, the preview shows the contents before you even download.

What is Gzip Online?

Gzip is the quiet workhorse of file compression: a single-file format built on the DEFLATE algorithm, used everywhere from web servers shrinking their responses to log archives and software source bundles ending in .tar.gz. When a .gz file lands on your machine and you have nothing installed that opens it, or when you need to gzip compress a payload before sending it somewhere, this page handles both directions without a command line.

Compress mode takes two kinds of input. Drop in any file — a CSV export, a JSON dump, a log, a SQL backup — and it comes back as a .gz with the same name plus the extra extension. Or paste text straight into the box and gzip that, which is handy for checking how well an API response or a chunk of markup squeezes down. The before-and-after sizes and the percentage saved are shown every time, and the tool is honest when gzip has nothing to gain: already-compressed data sometimes comes out slightly bigger, and the page says so.

Gunzip online works just as simply: pick the .gz file and the decompressed original is ready to download with its proper name restored. If what comes out is readable text under about 100 KB, a preview appears so you can check the contents before saving anything. As with every tool on this site, gzip decompress online runs entirely in your browser — nothing is uploaded, and the page works offline once loaded.

Frequently asked questions

How can I open a gzip file online?

Switch the tool to Decompress, choose your .gz file and the unpacked original is ready to download in seconds — the original file name is restored automatically. When the contents are readable text under about 100 KB, a preview appears so you can confirm what you got before saving.

How can I compress text online?

Stay in Compress mode, paste the text into the box and tap Compress — no file needed. You get a .gz download plus the exact before-and-after sizes, which makes this a quick way to measure how compressible a JSON response or document really is.

Is gzip free to use?

Yes, completely. The gzip format was released as a free, patent-unencumbered replacement for the older compress utility, and it has been open ever since. This tool is free as well, with no accounts and no limits beyond the 25 MB file size cap.

What is a .tgz file?

A .tgz is a TAR archive that was then gzipped — a bundle of files with a compression layer on top. This tool removes the gzip layer and hands you the .tar; you then need a TAR-aware tool to unpack the files inside. For single gzipped files, Decompress gives you the finished result directly.

What is the difference between gzip and ZIP?

Gzip compresses exactly one stream of data — one file, or text — with no folder structure. ZIP bundles many files into one archive and compresses them along the way. To package several files, use the Create ZIP Online tool on this site; to squeeze a single file or text payload, gzip is the right choice.

Why did my gzipped file come out bigger?

Gzip adds a small header and checksum, and data that is already compressed — JPEG photos, MP4 video, existing archives — has no patterns left to exploit, so the overhead can outweigh the savings. The size readout shows this honestly rather than hiding it.

Browse all compression.