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
- Archives
- No ratings yet.
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.
- Put the CPGZ file in a working directory and open Terminal.
- Create and enter a temporary extraction directory:
mkdir -p cpgz-work
cd cpgz-work
- 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
- 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:
- Open the
.cpgzfile and choose Extract. - If extraction produces a
.cpiofile instead of the final contents, open that file and extract it in a second step. - 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.
| 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
Suggested software and links: cpgz to zip converters
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
- apk to zip
- 7zip to zip
- 7z to zip
- img to zip
- exe to zip
- tar.zst to zip
- war to zip
- wab to zip
- torrent to zip
- vcf to zip
- ace to zip
- 001 to zip
- 002 to zip
- 003 to zip
- 004 to zip
- 7-zip to zip
- 7z.001 to zip
- a00 to zip
- ace to zip
- adf to zip
- aia to zip
- alz to zip
- ar to zip
- arc to zip
- arj to zip
- b1 to zip
- bin to zip
- boe to zip
- bz2 to zip
- c00 to zip
- cab to zip
- cbt to zip
- cbz to zip
- cpio to zip
- crypt10 to zip
- crypt12 to zip
- crypt9 to zip
- czip to zip
- db to zip
- deb to zip
- dps to zip
- egg to zip
- enc to zip
- enc4 to zip
- gz to zip
- ha to zip
- hqx to zip
- htmlz to zip
- ipa to zip
- ipz to zip
- iso to zip
- jar to zip
- jpa to zip
- lha to zip
- lhz to zip
- lit to zip
- ll to zip
- lzh to zip
- lzo to zip
- nba to zip
- nbf to zip
- nco to zip
- nfp to zip
- paq8 to zip
- part to zip
- pax to zip
- pea to zip
- pf to zip
- piz to zip
- pkg to zip
- pkgf to zip
- ppz to zip
- pup to zip
- pzip to zip
- rar to zip
- rar5 to zip
- rpm to zip
- rzr to zip
- sb to zip
- sb2 to zip
- sbe to zip
- sfs to zip
- sfx to zip
- sit to zip
- sitx to zip
- tar to zip
- tar.bz2 to zip
- tar.gz to zip
- tar.xz to zip
- tar.z to zip
- taz to zip
- tbz to zip
- tbz2 to zip
- tgz to zip
- tmp to zip
- tpz to zip
- tsk to zip
- txz to zip
- uu to zip
- uue to zip
- vhd to zip
- vsf to zip
- wba to zip
- wia to zip
- wim to zip
- wjf to zip
- wsz to zip
- xap to zip
- xapk to zip
- xar to zip
- xpi to zip
- xsn to zip
- xz to zip
- z to zip
- z01 to zip
- z02 to zip
- zab to zip
- zi to zip
- zip2 to zip
- zipx to zip
- zix to zip
- zoo to zip
- zpaq to zip
- zst to zip