.cab File Extension
.cab file is, how to open a Microsoft Cabinet archive, how Poly supports it, and when ZIP is a better choice. File extension details for .cab
Storage Only| File type | Microsoft Cabinet archive |
|---|---|
| MIME type | |
| Encoding | Binary archive, optionally compressed with MSZIP or LZX |
| Operating systems | Windows, macOS, Linux |
| Opens with | Windows expand, 7-Zip, cabextract |
| Poly support | Yes. Poly stores, syncs, shares, versions, and downloads CAB archives. |
| Indexed by Poly | Partial. Poly indexes the filename and ordinary file properties, not archived members. |
| Preview in Poly | No. Download the CAB file to browse or extract it with a compatible utility. |
| Poly agent | No. The Poly agent cannot read files packed inside the CAB archive. |
What kind of file is a .cab?
A CAB file is a Microsoft Cabinet archive. It bundles one or more files into a binary container and may compress their data. The registered media type is application/vnd.ms-cab-compressed. Microsoft commonly uses cabinets to distribute software, drivers, and installation payloads.12
A standard cabinet starts with the ASCII characters MSCF, or the bytes 4D 53 43 46. The header also records the cabinet size, file-table location, and counts of folders and files.2 Check the signature when a filename seems suspicious, but remember that four matching bytes alone do not prove that the whole archive is valid or safe.
archive.zip to archive.cab does not convert it. Extract the source archive and create a new cabinet with a compatible tool if CAB is actually required.How do I open a .cab on my computer?
Windows includes tools for Cabinet files. File Explorer can browse many cabinets, while the expand command can list or extract their contents. For example, expand -d package.cab lists members without extracting them. Microsoft also documents expand package.cab -f:* output for extracting all members into an existing destination directory.3
On Windows, macOS, or Linux, use an archive utility that explicitly supports CAB, such as 7-Zip or cabextract. 7-Zip lists CAB as an unpack-only format, so it can extract a cabinet but does not create one.4
MSCF header identifies the container, not whether its contents are trustworthy.Poly support for .cab
Poly stores, syncs, shares, versions, and downloads CAB archives. It also makes the archive searchable by filename and ordinary file properties.
Poly does not extract the cabinet, index member names or contents, generate a thumbnail, or provide an in-app archive browser. The Poly agent cannot inspect files that remain packed inside it. To use those files with format-aware Poly features, extract the cabinet locally and add the individual files separately.
History of .cab
Microsoft developed Cabinet for Windows software distribution and installation. The format groups file data into compression units called folders. These are not necessarily source directories. Compression can continue across file boundaries, which can improve compression for related files.25
Cabinets can also form linked sets, a design suited to distribution media with size limits. Windows Installer may reference a separate cabinet or embed one as a stream inside an MSI package.26 CAB predates its registered media type: IANA registered application/vnd.ms-cab-compressed in December 2005.1
Working with .cab and alternatives
Choose the container for the workflow:
| Need | Better fit |
|---|---|
| Preserve a Windows installer, driver, or update payload | Keep the original CAB |
| Share an ordinary archive broadly | ZIP |
| Package files for Unix-oriented tooling | TAR, often with separate compression |
Converting CAB to ZIP means extracting the members and creating a new ZIP archive. Keep the original when it belongs to an installer or linked cabinet set. Repacking does not update an MSI that expects a particular cabinet name, layout, or checksums.
Footnotes
- Internet Assigned Numbers Authority. application/vnd.ms-cab-compressed Media Type Registration. ↩ ↩2
- Microsoft Corporation. MS-CAB: Cabinet File Format. ↩ ↩2 ↩3 ↩4
- Microsoft Learn. expand. ↩
- 7-Zip. 7-Zip. The official format list includes CAB among unpack-only formats. ↩
- Microsoft Learn. Cabinet Files. ↩
- Microsoft Learn. Cabinet. ↩