Skip to content
Coverton Blog
In this article
Files and archives

Compress individual files with GZIP

Use GZIP when a log or text file must be delivered in that format. Selecting multiple files produces individual compressed outputs, rather than one bundle containing all the files as a ZIP archive would.

Open the toolHow to use this tool ↓
Compress a file with GZIP
This illustration explains the tool's workflow. It is not the processed result of an uploaded file.

How to use this tool

  1. Choose 1 file to compress. Any file type is accepted.
  2. Check the input format and file order, then start processing.
  3. Download the GZIP result and check its content and quality.

Choose the right settings

The tool uses the browser's default GZIP compression without a selectable compression level. Choose the files themselves instead of expecting a selected folder tree to become a single archive.

Supported input
  • Any file type
Output
  • GZIP

Before you start

Distinguish bundling from compression

Keep a list of the source files and decide whether you need one bundle, separate compressed files, extracted contents or an inspection report. These are different outcomes. ZIP entry names and folder paths also differ from the contents of the files themselves; check what this tool will preserve before processing.

Where an output or report choice is offered, choose it for the next step rather than by extension alone. Do not assume that an archive will be smaller: already compressed files may change little, and bundling without compression adds archive structure. Review the supported archive types and restrictions instead of expecting a password or bypass control that is not provided.

Record the selected source files, their names and which measurement matters for delivery. A report can describe entries without proving that each can be extracted, while a successfully extracted file still needs a content check. If a later program cannot open the result, compare its actual format with that program’s supported input before blaming the archive step. Preserve any intermediate archive separately, so the original compressed input and a newly produced package are not confused during another attempt.

Verify names, contents and sizes

Compare the result with the source list. For an archive, inspect entry names and open an extracted sample; for separate outputs, match each file to its input. Read compressed size, expanded size and whole-archive size as different measurements. If paths become safe filenames, verify that similarly named entries can still be distinguished.

If processing stops, check for a damaged stream, unsupported encryption or structure, unsafe paths and the stated expansion limits. Do not bypass a blocked input by assuming it is harmless. Structural inspection does not scan file contents for malware, and decompression may reveal another archive that needs its own extraction step.

Example input and output

report.txt → report.txt.gz

Examples describe the workflow. Results depend on the source file and settings.

Check the saved result before using it

Match each .gz result to its original filename. Decompress a sample to inspect the content and compare the actual output size with the source to assess the reduction.

If the result is different from what you expected

Already compressed pictures or archive files may shrink very little. GZIP is not a container for preserving multiple files and their folder structure, so use a bundling format when that organization is required.

Limits to keep in mind

  • GZIP stores one stream, not a directory of files. Use ZIP to package multiple files together.

Continue with a related tool

Create a ZIP archive

A ZIP bundle lets you deliver photos and documents as one file. This tool stores the contents without data compression, so use it to group files rather than relying on it to reduce their combined size.

Select the files to include without additional archive settings. Keep a source list when files share a name so you can identify the distinct names assigned to those entries in the result.

Open the tool

Extract ZIP files

After extracting documents from ZIP, check that the outputs are the entries you intended to use. Paths are converted to safe filenames, so the download should not be assumed to recreate the original folder tree.

Select one ZIP and let the tool inspect its structure and paths before extraction. There is no password input or option to bypass a blocked archive's safety checks.

Open the tool
CovertonCompress a file with GZIP
Open the tool

This guide explains the public browser tool. Keep a copy of the original and inspect the result before sharing it.