One stream in, one file out
Drop a file or click to choose one, then pick a direction. Compression pushes the bytes through the browser's CompressionStream with the gzip format; decompression runs DecompressionStream over a .gz. Both happen in the tab, and the download is a temporary object URL that is revoked when you run again.
A worked example
A 100-line Apache access log of 10,355 bytes is shown as 10.1 KB. Compressing it yields 647 bytes, shown as 647 B, and the note reads "Saved 94%" because one minus 647 over 10,355 is 0.938. Shrinking is not guaranteed: "hello world" plus a newline is 12 bytes and becomes a 32-byte .gz, and the same formula reports "Saved -167%".
What the header keeps
The stream holds the compressed bytes and a trailer with the CRC-32 and the original length. It carries no file name and no modification time, so the name survives only in the download: report.csv becomes report.csv.gz. In the other direction a .gz suffix is stripped, a .tgz suffix is stripped to the base name, and a name with neither gets .out appended. A file that is valid gzip still decompresses without the extension, and the note says so.
Failure states
A file that is not gzip raises an error, so the label reads "Not a gzip file" and the browser's message appears underneath; a compression failure says "Compression failed". Expanding a .tar.gz gives back a .tar, not the files inside it, because one gzip stream has only one member.
Where it stops
- No size guard: unlike the ZIP tools there is no 500 MB ceiling, so a huge file is read into memory and can stall the tab.
- No compression level, no multi-file or folder input, and no tar wrapping.
- Integrity is limited to the CRC-32 in the gzip trailer.
Questions people ask
Will the .gz open on Windows or macOS?
Most archive managers read a single gzip stream, and so do the gzip and gunzip commands. For several files in one download, use create ZIP or merge ZIP files.
Can I compress a folder?
Not directly. Compress one file at a time, or build an archive and compress that. To pull files out of an existing archive, use extract ZIP.