Skip to content

Convert CPGZ to ZIP

Convert valid gzip-compressed cpio archives into widely compatible ZIP files.

Make ZIP files online

We can't read CPGZ files yet, so this conversion isn't available. If you can export your work to one of these formats - or others - we'll turn it into ZIP:

Want to convert CPGZ to ZIP?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert cpgz to zip file

A CPGZ archive needs conversion when a macOS or Unix tool produces an archive that Windows, a sharing service, or another application accepts only as ZIP. Repacking its extracted contents into ZIP preserves the files while improving cross-platform compatibility.

What the CPGZ format is

.cpgz is a gzip-compressed cpio archive: gzip supplies the compression layer, while cpio stores the files and directories. It is mainly encountered by macOS users and Unix utilities rather than used as a general-purpose exchange format.

macOS Archive Utility can create a CPGZ file when it handles Unix-style archive data. A common trigger is a failed ZIP download or a malformed ZIP: Finder may extract the file into another ZIP, which then produces another CPGZ in a repeating .zip / .cpgz loop. Renaming the extension does not convert the archive; the internal gzip-and-cpio structure remains unchanged.

What the ZIP format is

ZIP is a widely supported archive format for sharing files, downloads, backups, and attachments. Windows File Explorer, macOS Finder, Linux archive managers, and most cloud services can open it without additional software.

ZIP stores files as separate entries and normally provides better compatibility with desktop file managers than cpio-based archives. It is also more suitable when a recipient or upload service specifically requires ZIP. Conversion does not necessarily reduce the archive size, because both formats can compress file data.

Convert with Terminal on macOS

The reliable method is to decompress the gzip layer, extract the cpio stream, then create a new ZIP from the extracted files.

  1. Put the CPGZ file in a working directory and open Terminal.
  2. Create and enter a temporary extraction directory:
mkdir -p cpgz-work
cd cpgz-work
  1. Extract the CPGZ file, replacing the example filename with the actual name. Quote the path if it contains spaces:
gzip -dc ../input.cpgz | cpio -idmv
  1. Create the ZIP in the parent directory:
zip -r ../output.zip .

The resulting output.zip contains the files extracted from the CPGZ archive. The cpio options create directories, preserve modification times where supported, and list extracted files. If cpio reports an unexpected end of file, checksum failure, or another read error, the source is probably incomplete or damaged; conversion cannot repair missing data.

Convert with 7-Zip or Keka

7-Zip is a suitable desktop option on Windows and Linux and is available for macOS through compatible builds. In 7-Zip File Manager:

  1. Open the .cpgz file and choose Extract.
  2. If extraction produces a .cpio file instead of the final contents, open that file and extract it in a second step.
  3. Select the extracted files, choose Add to archive, set the archive format to zip, specify the output name, and confirm.

Keka can also extract many gzip and cpio combinations on macOS. After extraction, select the resulting files in Finder and choose Compress to create a ZIP. Use Terminal when a graphical utility exposes only the outer gzip layer or fails to recognize the cpio stream.

Online conversion and compatibility limits

General online ZIP converters often do not parse the nested gzip-and-cpio structure of CPGZ files. Use an online service only if its current format list explicitly names CPGZ or cpio; do not assume that a service accepting ZIP can process CPGZ. Uploading an archive to any third-party service also exposes its contents, so local tools are preferable for private or sensitive data.

Repacking is lossless for the contents of ordinary documents, images, and other files, but it is not necessarily metadata-preserving. ZIP may handle Unix ownership, permissions, symbolic links, extended attributes, and macOS resource forks differently from cpio. Inspect the extracted files before creating the ZIP, especially when the CPGZ originated from a failed or interrupted download.

CPGZ vs ZIP: format comparison

How the CPGZ and ZIP formats compare on the properties that matter most for this conversion.

Comparison of the CPGZ and ZIP file formats
Property .CPGZ CPIO Gzip archive .ZIP ZIP archive
Compression Both Both
Compression ratio Medium Medium
Encryption No Yes
Split archives No Yes
Recovery record No No
Operating system support Wide Wide
Typical file size Small Medium
Open standard Partly open Yes
Introduced — 1989
Developer — Phil Katz / PKWARE
MIME type — application/zip

Information about file extensions and file types is provided by File-Extensions.org

Frequently asked questions

Will converting CPGZ to ZIP preserve the files inside?

Yes, the contained files and folders are normally preserved, but the archive is repackaged from gzip-compressed cpio into ZIP. Unix-specific details such as ownership, permissions, device files, or hard-link relationships may not carry over reliably.

Will a CPGZ to ZIP conversion make the archive smaller?

Not necessarily; the result can be larger or smaller depending on the files and the compression settings used for the ZIP archive. Files that are already compressed usually gain little from being compressed again.

Can I edit the files after converting CPGZ to ZIP?

The ZIP archive lets you add, remove, and replace individual files more widely than a CPGZ archive, but the files themselves keep their original editability. Converting the archive does not change the contents into a different document format.

Why does my CPGZ file fail to convert to ZIP?

A CPGZ file must contain valid gzip data wrapped around a cpio archive, so conversion fails if it is truncated, corrupted, or has only been given the wrong extension. A file produced by an interrupted archive operation may look like CPGZ without containing a complete readable archive.

Additional formats for
cpgz file conversion

Convert to zip from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.