Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Gzip Compress Decompress

Browser gzip tool

  • Free
  • Runs in your browser
  • No account needed

This tool compresses or decompresses text and files using gzip, zlib or raw deflate in your browser with no upload; outputs are Base64 for text and .gz files for downloads, and gzip adds about 18 bytes overhead.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About Gzip Compress Decompress

This FreeToolr page runs a browser-side gzip tool for developers and anyone who needs quick compression or decompression. You can paste text or upload a file. The tool supports gzip, zlib and raw deflate. Text output comes back as Base64. File output is offered as a .gz download. Everything runs in your browser using the CompressionStream and DecompressionStream APIs, so no data leaves your device. That makes the tool useful for quick checks, API payload work, log testing and small file prep. The page notes format choice and browser support. For format specs see RFC 1952 and RFC 1951. If your browser lacks CompressionStream, the tool may not work and you will need a different client or server tool.

How to use it

  1. 1Select Compress or Decompress and pick gzip, zlib or raw deflate.
  2. 2Paste text or drop a file into the input area.
  3. 3Click Run to process with the browser CompressionStream API.
  4. 4Copy the Base64 output or download the resulting .gz file.
Advertisement

Worked example

Example: upload a 10-byte file named data.bin. The tool produces data.bin.gz. The compressed file will be at least 28 bytes total (10 bytes data plus 18 bytes gzip header and trailer).

How it works

Compresses or decompresses text and files with gzip, deflate or raw deflate using the browser's CompressionStreamText comes back as Base64; files download as .gzWorks in the browser with nothing to install

Source: GZIP file format specification (RFC 1952)DEFLATE compressed data format (RFC 1951)MDN Web Docs: CompressionStream. Last checked 5 November 2026.

What it is good for

  • Runs entirely in your browser; no upload required.
  • Supports gzip, zlib and raw deflate formats.
  • Text output as Base64; files download as a .gz file.
  • Depends on browser support for CompressionStream and DecompressionStream.
  • Gzip compresses one byte stream only; archive multiple files first with tar.
Advertisement

Questions people ask

How do I decompress a .gz file?

Upload the .gz file into the tool or use a local tool like gunzip on Unix or 7-Zip on Windows. The tool will return the original bytes or a downloadable file.

Can I gzip multiple files into a single .gz?

No. Gzip wraps a single byte stream. To compress multiple files first create a tar archive, then gzip the tar to make a .tar.gz file.

What is the difference between gzip, zlib and raw deflate?

DEFLATE is the compression algorithm. gzip and zlib are different wrappers around DEFLATE with different headers and checksums. See RFC 1951 and RFC 1952 for details.

Why is my gzip output bigger than the original?

Very small inputs can grow because gzip adds at least 18 bytes for header and trailer. Also already-compressed data rarely shrinks further.

Does this tool upload my data to a server?

No. The processing runs in your browser via the CompressionStream API so your data does not leave your device when the API is available.

Will compression level settings always work in the browser?

Browser implementations vary and may not expose all compression levels. Expect defaults and behavior to differ across browsers.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement