About CPIO Files
CPIO Archive
CPIO (Copy In/Copy Out) is a Unix file archiving format and utility that packages files into a single archive. It is used internally by RPM packages and the Linux kernel initramfs, providing a simple streaming archive format.
Family
Archives & Compressed
Extension
.cpio
MIME Type
application/x-cpio
Can Use As
HOW CPIO
CAME TO BE.
cpio — "copy in, copy out" — was written by Dick Haight at Bell Labs around 1977 as a Unix archive utility, two years before Tar. cpio reads a list of filenames from stdin and produces an archive stream on stdout, or vice versa. The format stores file metadata followed by file contents for each entry, with a clever design choice: cpio streams work over pipes, letting users compose them with `find` for selective archiving (`find /etc | cpio -o > etc.cpio`).
cpio was the original Unix archive format, but Tar beat it to mainstream adoption by the 1980s. cpio persisted in two corners: initial ramdisk (initramfs) on Linux kernels is distributed as a gzipped cpio archive, and RPM packages internally wrap their file payload in cpio format. If you ever ran `rpm2cpio | cpio -idv`, you were using cpio to inspect a Red Hat package the hard way.
CURIOSITIES &
TRIVIA.
Every Linux kernel loads its initramfs as a gzipped cpio archive — cpio is literally how Linux boots.
RPM packages store their file payload as a cpio stream inside the package — rpm2cpio extracts the raw archive.
cpio predates tar by about 2 years — yet tar won the mindshare war almost entirely.
cpio's "newc" (new ASCII) format is what Linux kernel initramfs uses — stable since 2000.
cpio filenames longer than 255 bytes require the "crc" format variant — a footgun for backup scripts.
STRENGTHS &
LIMITATIONS.
Strengths
- Pipeline-friendly — works with find for selective archiving.
- Preserves Unix permissions, ownership, symlinks.
- Core of Linux initramfs boot process.
- Core of RPM package payload format.
- 45+ years of Unix stability.
Limitations
- Multiple incompatible header formats (old, new, crc, odc, HP-UX) over the years.
- Less user-friendly tooling than tar.
- Superseded by tar for general archiving.
- Inconvenient error messages and edge cases.
Typical Sizes & Weights
Simple text archive
100 KB - 10 MB
Linux initramfs image (gzipped)
30-150 MB
RPM package payload
1 MB - 2 GB
Technical Specifications
- MIME type
- application/x-cpio
- Extension
- .cpio
- Variants
- bin (legacy), odc (POSIX), newc (Linux initramfs)
- Typical uses
- Linux initramfs, RPM payloads, Unix backups
- Creator
- Dick Haight, Bell Labs (1977)
CONVERT FROM
CPIO
Common Use Cases
Linux initramfs, RPM package internals, Unix backup systems
Related Formats
Popular comparisons
CPIO vs ZIP
Differences, file size, and when to choose each format.
CPIO vs 7Z
Differences, file size, and when to choose each format.
CPIO vs TAR
Differences, file size, and when to choose each format.
CPIO vs GZ
Differences, file size, and when to choose each format.
CPIO vs BZ2
Differences, file size, and when to choose each format.
CPIO vs XZ
Differences, file size, and when to choose each format.
Popular CPIO conversions
The most-requested destinations when starting from CPIO.
Frequently Asked Questions about CPIO
Frequently Asked Questions
CPIO (CPIO Archive) is an archive format used to bundle multiple files and folders into a single compressed file. The archive preserves the directory structure and typically reduces total size via compression. CPIO sits in the archives & compressed family and has specific strengths around compression ratio, speed, or platform support.
7-Zip, WinRAR, The Unarchiver (macOS), and the built-in archive utilities on Windows and macOS open most CPIO files. For command-line extraction, 7z, unar, or the format-specific tool handles CPIO cleanly. If your extractor does not recognise CPIO, convert to ZIP first — ZIP opens on every operating system without extra software.
Upload the CPIO to KaijuConverter and pick ZIP, 7Z, TAR.GZ, or RAR as the target. Our pipeline extracts the original archive and re-compresses the contents into the target format. File permissions, timestamps, and directory structure are preserved where both formats support them.
Depends on the goal. ZIP is the universal baseline — every OS extracts it out of the box. Formats like 7Z or TAR.GZ compress better but require specific tools. CPIO may win on compression ratio, password support, or OS integration for specific workflows; ZIP wins on raw compatibility.