How to fix a corrupt or damaged RAR file
Most “corrupt” RAR files are incomplete downloads or split sets with a missing or bad part, so re-download first. With encrypted archives, a CRC error can also mean a wrong password. True repair only works if the archive has a recovery record; otherwise you can at best extract the files that are still intact.
A RAR file that reports “CRC failed”, “checksum error” or “unexpected end of archive” is damaged or incomplete. In most cases the archive itself was fine when it was made, and what went wrong is the copy you have: a download that stopped early, or a split set with a missing or bad part. So the first fix is the simplest: get a fresh copy. If that’s not possible, real repair only works when the archive was created with a recovery record; without one, you can usually still save the files that weren’t hit by the damage.
What the error messages mean
Different tools word their errors differently, but they fall into a few groups.
| What you see | What it means | First thing to try |
|---|---|---|
| “CRC failed”, “checksum error”, “data error” | A file’s extracted data doesn’t match the checksum stored in the archive | Re-download; for encrypted archives, check the password |
| “Unexpected end of archive”, “truncated” | The file ends before the archive does | Re-download and compare the file size |
| “Unknown format or damaged”, “not a RAR archive”, “cannot open as archive” | The start of the file isn’t a readable RAR header | Check the file is really a RAR and fully downloaded |
| A request for the next volume, or “missing volume” | A part of a split set can’t be found | Find or re-download the missing part |
Every file in a RAR archive carries a checksum, a short fingerprint of its contents. When a tool extracts the file, it computes the fingerprint again and compares. A mismatch means at least one byte came out different from the original, and the tool refuses to call the result good.
Step 1: check the download
An incomplete download is by far the most common cause.
- Compare sizes. If the website, forum post or sender gives a size, compare it with your file’s size (Get Info on a Mac, Properties on Windows). Even a small difference means the file is incomplete or different.
- Look for leftover download files. Browsers save unfinished downloads under temporary names:
.crdownloadin Chrome,.partin Firefox,.downloadin Safari. If you see one, the download never finished. - Check a tiny file. A “RAR” of a few kilobytes is often an error page or a login page that was saved under the archive’s name. On a Mac,
file archive.rarin Terminal tells you what the file really is; an HTML document is not an archive. - Compare checksums, if the source publishes one (MD5, SHA-1 or SHA-256). On a Mac or Linux:
shasum -a 256 archive.rar. On Windows:certutil -hashfile archive.rar SHA256. If the result differs from the published value, the file is damaged.
Then download the file again, ideally with a different browser or network. If it lives in a cloud folder, wait until syncing has finished before opening it.
Step 2: check every part of a split set
With a split archive (.part1.rar, .part2.rar… or .rar, .r00, .r01…), one bad or missing part breaks extraction at that point, and the error can look like damage to the whole archive.
- Make sure every part is there, in the same folder, with its original name. Browsers sometimes add “(1)” to a name when a file is downloaded twice.
- Parts of one set are normally the same size, except the last. A part that’s noticeably smaller than the others was probably cut short.
- Make sure all parts come from the same upload. Parts from two different versions of a set don’t fit together.
Some sets come with recovery volumes, files ending in .rev. They can rebuild a missing or damaged part: WinRAR does this, as does the rar rc command. How to open split RAR files covers the naming and the “missing volume” error in detail.
Step 3: rule out a wrong password
For encrypted archives, a checksum error doesn’t always mean damage. With the older RAR4 format, a tool can’t always tell a wrong password from corrupt data: decryption with the wrong key produces garbage, and the garbage fails the checksum. WinRAR’s message says as much when it mentions a corrupt file or a wrong password. RAR5 archives usually include a password check, so tools can report a wrong password directly.
If the archive is encrypted, retype the password carefully, watching for capital letters, a different keyboard layout and spaces copied by accident. More in How to open a password-protected RAR file.
Step 4: repair with a recovery record
A recovery record is extra error-correction data that WinRAR can add to an archive when it creates it. It makes the archive a little larger, and in exchange, damage up to a certain size can be undone. If the archive has one, WinRAR’s Repair command (or rar r archive.rar on the command line) uses it to rebuild the damaged data, and the result opens normally. RAR5 recovery records are more robust than RAR4 ones; What is RAR5? explains the difference.
Without a recovery record, Repair can only try to rebuild the archive’s structure, so that the undamaged files become reachable again. It can’t restore data that is gone. Repair is a RARLAB feature: it’s in WinRAR on Windows and in the rar command line, which RARLAB also makes for macOS and Linux. Other extractors, such as 7-Zip, The Unarchiver and Keka, open RAR files but don’t repair them.
Step 5: extract what’s still readable
If there’s no second copy and no recovery record, you can often still save part of the contents.
- WinRAR has a Keep broken files option in its extraction dialog, which keeps files even when their checksum fails, instead of deleting them. A damaged photo or video may still be partly usable.
- With the command line,
unrar x -kb archive.rardoes the same. - 7-Zip extracts the files it can read and lists the ones that failed.
How much you save depends on how the archive was made. In a normal archive, each file is compressed on its own, so damage usually costs you only the files it touches. In a solid archive, files are compressed as one continuous stream for a better ratio, so damage in one place can make every file after it unreadable. Files before the damaged point are usually fine either way.
What OpenRAR can and can’t do
OpenRAR doesn’t repair archives, in the browser or in the Mac app. It reads an archive as it is, so it can’t rebuild damaged data; in the browser, it still lets you save the files it can read. Once you have a good copy, openrar.app opens it in the browser, RAR4 and RAR5 alike, password-protected and split archives included, without uploading it anywhere.
Avoiding it next time
- If you make RAR archives, add a recovery record, especially for anything you’ll store for a long time or split into parts.
- If you share large files, publish their size or a checksum so people can check their download.
- Let downloads and syncs finish before you open, move or delete anything.