Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows CAB Files: What They Are & How to Open Them

· 5 min read · Home Tech

In this article
  1. Background: Why CAB Files Exist
  2. How CAB Files Work
  3. How to Open and Extract a CAB File
  4. How to Create a CAB File
  5. Common Problems and Solutions
  6. Comparison: CAB vs. ZIP vs. 7z
  7. Safety and Security Considerations
  8. Alternatives to CAB Files
  9. Frequently Asked Questions

Windows CAB files are compressed archive files used by Microsoft for installing software, drivers, and system updates. This guide explains what they are, how to open or extract them, and how to create your own, with clear steps for current Windows versions.

Background: Why CAB Files Exist

The Cabinet (CAB) format was introduced with Windows 95 as a way to bundle many files into a single, compressed package. Microsoft chose it for distribution because it reduces download size and simplifies installation—instead of copying hundreds of loose files, an installer can read one archive. CAB files are still used today for Windows Update packages, printer driver installers, and Visual C++ redistributables. Unlike ZIP or RAR, CAB is a native Windows format, so the operating system has built-in support for it without third-party software.

How CAB Files Work

A CAB file is a container that stores one or more files, optionally compressed. The compression algorithms used are Microsoft's own: MSZIP (a variant of DEFLATE), LZX, and Quantum. The format also supports spanning across multiple disks, which is why you may see files named data1.cab, data2.cab, etc. The internal structure includes a header, file entries, and a checksum for integrity. When you double-click a CAB file in File Explorer, Windows treats it like a folder—you can browse its contents and copy files out, just like a ZIP archive.

How to Open and Extract a CAB File

Windows has two built-in ways to extract CAB files: File Explorer and the command line. Both work on Windows 10 and Windows 11.

Method 1: Using File Explorer

  1. Locate the CAB file in File Explorer.
  2. Double-click it. You'll see the contents as if it were a folder.
  3. Select the files you need, then copy them (Ctrl+C) and paste them (Ctrl+V) to a destination folder.
  4. Alternatively, right-click the CAB file and choose Extract All to unpack everything into a new folder.

Method 2: Using Command Prompt

For more control, use the expand command:

  1. Open Command Prompt as Administrator (search for "cmd", right-click, and choose "Run as administrator").
  2. Type the following and press Enter:
    expand -F:* "C:\path\to\file.cab" "C:\destination\folder"
  3. Replace the source and destination paths with your own. The -F:* flag extracts all files.

How to Create a CAB File

You can create your own CAB files using the makecab command-line tool, which is included with Windows. This is useful for packaging multiple files for distribution or for creating custom installers.

  1. Place all files you want to compress in one folder.
  2. Open Command Prompt and navigate to that folder: cd C:\myfiles
  3. Run: makecab *.* myarchive.cab
  4. This creates a CAB file named myarchive.cab containing all files in the current folder.

For more complex packaging (with subfolders), you need a directive file, but the basic command above works for flat file sets.

Common Problems and Solutions

  • "The cabinet file is corrupt" error: This usually means the download was incomplete. Re-download the file or check the source. It can also occur if the file was damaged during transfer.
  • Cannot open CAB file in Windows: If double-clicking doesn't work, try the expand command. If that fails, the file may be a self-extracting CAB (an .exe) or a different format with a .cab extension.
  • Driver installation fails with a CAB file: When Windows asks for a driver and you point it to a CAB, it may not find the .inf file. Extract the CAB to a folder first, then browse to that folder during driver installation.
  • Large CAB files: Some CAB files are multi-part (e.g., disk1.cab, disk2.cab). You must have all parts in the same folder to extract them properly.

Comparison: CAB vs. ZIP vs. 7z

CAB files are often confused with ZIP files because both are archives. Here's how they differ:

  • Compression ratio: ZIP uses DEFLATE, CAB can use LZX which often compresses better, but 7z (with LZMA) usually beats both.
  • Native support: Windows can open ZIP and CAB natively; 7z requires third-party software like 7-Zip.
  • Use case: CAB is used by Microsoft for system components; ZIP is universal for everyday sharing; 7z is preferred for maximum compression.
  • Metadata: ZIP preserves Unix permissions; CAB does not. CAB supports file attributes like read-only and hidden, but not as richly as ZIP.

Safety and Security Considerations

CAB files are generally safe to open, but like any executable archive, they can contain malicious content. Only extract CAB files from trusted sources, especially if they come from email attachments or unofficial websites. Windows Defender scans CAB files automatically when you open them, but you can also right-click and choose "Scan with Microsoft Defender" to be sure. Never run an executable file extracted from a CAB without knowing its origin. Also, be aware that some CAB files are digitally signed by Microsoft—right-click the file, go to Properties, and check the Digital Signatures tab to verify the signer.

Alternatives to CAB Files

If you need to share files and CAB is not ideal, consider these alternatives:

  • ZIP: The most universal archive format, supported everywhere. Right-click a folder and choose "Compress to ZIP file" in Windows.
  • 7z: Best compression ratio, but requires 7-Zip or similar software.
  • RAR: Popular for multi-part archives, but requires WinRAR or a compatible tool.
  • Tar: Common on Linux/macOS, but not natively supported in Windows File Explorer (though Windows 10+ has tar command).

Frequently Asked Questions

How do I open a CAB file on Windows 11?

Double-click it in File Explorer to browse its contents, or right-click and choose "Extract All" to unpack it. You can also use the expand command in Command Prompt or PowerShell for more control.

Can I convert a CAB file to ZIP?

Yes, extract the CAB file to a folder, then right-click that folder and choose "Compress to ZIP file." This creates a ZIP archive with the same contents, though the compression may differ.

Why can't I open a CAB file with 7-Zip?

7-Zip supports CAB files, but if it fails, the file may be corrupt or a different format. Try the built-in Windows tools first, or rename the file to .zip and attempt to open it—sometimes the extension is wrong.

Are CAB files safe to delete?

Yes, if you no longer need the files inside. CAB files are not system-critical by themselves; they are just containers. Deleting them does not harm Windows unless they are part of an active installation (like a pending update), in which case the installer may re-download them.

How do I install a driver from a CAB file?

Extract the CAB to a folder, then go to Device Manager, right-click the device, choose "Update driver," select "Browse my computer for drivers," and point to that folder. Windows will find the .inf file and install the driver.