Code · Made a little simpler

Binary File Compressor

Package exact binary bytes in one ZIP entry or one GZIP stream. Choose the ZIP level, compare the real saved size and download the output.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Binary File Compressor: how to use it

  1. Choose or drop a local file. Load the worked example to start with a 4,096-byte binary fixture.
  2. Choose ZIP or GZIP. For ZIP, select compression level 1, 3, 6 or 9.
  3. Compress the file, compare the exact byte counts and download the archive for a round-trip check.

Limits and notes

Accepts one file up to 30 MB, including an empty file. ZIP uses one portable root entry. A name that cannot be stored safely uses payload.bin. GZIP writes one stream at a fixed balanced compression level.

How your privacy works →

Binary File Compressor: common questions

Can I use a file that is neither text nor an image?

Yes. The tool reads exact bytes and does not interpret or execute the file.

Why might the output be larger?

Already compressed or very small inputs can grow when the format adds compression or container overhead.

Does GZIP store a ZIP-style directory?

It writes one compressed stream. Use ZIP when a recipient needs a named archive entry.

Which ZIP compression levels are available?

Choose 1, 3, 6 or 9. Compare exact output bytes on your input because raising the level does not guarantee a smaller archive.

Guides