File format · .s

RAR File Format Reference & Repair Guide (RAR4 / RAR5)

Comprehensive technical reference on the RAR archive format: structure, RAR4 vs RAR5 differences, common causes of corruption, and how damaged .rar files a


A RAR file is a proprietary compressed archive format developed by Russian software engineer Eugene Roshal — the name stands for Roshal Archive — and first released publicly in 1993. The format is licensed by win.rar GmbH and is most commonly associated with WinRAR, the trialware archiver for Windows that Roshal has developed since 1995. Over more than three decades, RAR has become one of the most widely used archive formats on Windows, valued for its strong compression ratio, support for multi-volume archives, error-recovery records, and authenticated encryption.

This page covers what RAR files are, how they are structured internally, why they fail, and what can realistically be recovered when one becomes unreadable.

What RAR files are and what software uses them

A .rar file is a compressed archive that can contain one or many files or folders, typically reduced in size through a combination of dictionary-based compression algorithms. The format is proprietary: while WinRAR can create RAR archives, third-party tools can generally only extract them, using the licensed UNRAR library. WinRAR itself can also create standard ZIP archives and extract from a wide range of other formats (7z, TAR, CAB, ISO, and others).

Software in the RAR ecosystem includes:

  • WinRAR — the primary GUI archiver for Windows, developed by win.rar GmbH.
  • RAR and UNRAR — command-line utilities for macOS, Linux, FreeBSD, and historically MS-DOS, Windows CE, and OS/2.
  • RAR for Android — a freeware mobile client.

The format has gone through several major revisions. The current generation, originally introduced as RAR5 in WinRAR 5.0 and referred to simply as "RAR" from version 7 onward, is not backward-compatible with older software. WinRAR versions prior to 5.0 cannot open RAR5 archives at all.

Structure and key technical facts

A RAR archive is a structured sequence of blocks — header blocks describing the archive and its contents, data blocks holding compressed file payloads, and optional recovery records. Some of the format's documented characteristics include:

  • Minimum file size: 20 bytes for a valid (empty) RAR archive.
  • Maximum file size: 9,223,372,036,854,775,807 bytes (2⁶³−1, one byte less than 8 EiB).
  • Extensions: .rar for the primary archive and first volume of a multi-volume set; .r00, .r01, .r02, etc. for subsequent volumes in older (RAR4) sets; .rev for recovery volumes.
  • Checksums: CRC-32 by default for each stored file, with optional BLAKE2 (256-bit) hashing in RAR5.
  • Encryption: AES in CBC mode — 128-bit in RAR4, raised to 256-bit in RAR5.
  • Compression algorithms: RAR version 3 (RAR4) combines LZSS (Lempel-Ziv–Storer–Szymanski) with PPMd (an implementation of Dmitry Shkarin's PPMII). RAR5 retains these options and adds improved dictionary compression.

RAR4 vs RAR5

The introduction of the RAR5 format in WinRAR 5.0 brought substantial changes while keeping the same .rar extension. Key differences include:

  • Dictionary size: RAR5 raised the maximum dictionary to 64 GB (hardware permitting), up from earlier limits. The default grew from 4 MB to 32 MB, typically improving compression ratios. From WinRAR 7 onward, dictionaries larger than 4 GB can use non-power-of-two sizes (for example, 5 GB or 22 GB).
  • Path length: Maximum stored path length increased from 2,047 characters to 65,535.
  • Features added: 256-bit BLAKE2 file hashing, duplicate-file detection, NTFS hard and symbolic links, and a Quick Open record that lets large archives open faster.
  • Features removed: Per-file comments (archive-level comments remain), and the older authenticity-verification mechanism.

Because the extension is identical, the only reliable way to distinguish RAR4 from RAR5 is by the internal signature and header structure — which is also why older software simply reports that an archive is corrupt or unsupported rather than explaining the version mismatch.

Why RAR archives become corrupt or unreadable

RAR files are robust, but they are still single containers holding potentially gigabytes of compressed data. A single damaged byte in the wrong place can render an entire archive — or a large portion of it — unextractable. Common causes include:

  • Incomplete downloads or transfers. Multi-volume sets are especially vulnerable: if one volume is truncated or missing, files spanning that boundary cannot be extracted.
  • Storage media failure. Bad sectors on a hard drive, failing flash memory, or a corrupted filesystem can damage the archive's header or compressed data blocks.
  • Version mismatch. Attempting to open a RAR5 archive with WinRAR 4.x or an outdated third-party extractor produces a misleading "corrupt archive" error.
  • Encryption damage. If the header is encrypted and the password is lost, or if header bytes are damaged, recovery is effectively impossible without the original key.
  • Improper shutdown or interruption during archive creation, splitting, or extraction.
  • Malware or file-system corruption affecting the directory entries or the file itself.

What data can be recovered

Recovery prospects depend on where and how the archive is damaged:

  • Damaged data blocks, intact headers: WinRAR can usually extract all files stored before the damaged region. Files that span or follow the corruption may fail CRC checks.
  • Damaged archive header: The archive may refuse to open at all, but the compressed file payloads are often still present and can sometimes be recovered by reconstructing the header or extracting raw data streams.
  • Missing or damaged volume in a multi-volume set: If the archive was created with recovery volumes (.rev) or a recovery record, the missing data can often be reconstructed. Without recovery data, files that spanned the missing volume are typically unrecoverable, but files fully contained in surviving volumes can usually be extracted.
  • Password-protected archives: If the password is known and only the data region is damaged, partial recovery is possible. If the password is lost, legitimate recovery is generally not feasible for properly encrypted RAR5 archives.

How recovery works

The first step is always diagnosis: determining whether the file is genuinely corrupt, simply an unsupported RAR5 archive opened in an old extractor, or a multi-volume set with a missing piece. We begin by inspecting the archive with current WinRAR or the latest UNRAR build and reviewing the error reported.

From there, recovery typically follows one of several paths:

  1. Built-in repair. WinRAR includes a repair function (accessible from the Commands menu or toolbar) that attempts to rebuild a damaged archive header. If the archive contains a recovery record — optional redundant data embedded at creation time — WinRAR uses it to reconstruct damaged portions and verify integrity.
  2. Recovery volumes. For multi-volume sets created with .rev files, WinRAR can use the recovery volumes to rebuild a missing or damaged .r00/.r01/.rar volume, provided enough recovery data exists.
  3. Partial extraction. When full repair is impossible, WinRAR's "Keep broken files" option (or the equivalent UNRAR switch) instructs the extractor to write out as much of each file as possible before the damaged region, rather than discarding the entire file on a CRC failure.
  4. Header reconstruction. In cases where the archive's header is damaged but compressed payloads are intact, manual or automated reconstruction of the header structures can restore access — this is specialized work and depends heavily on the format version and encryption state.
  5. Raw/carver recovery. When the archive container itself is severely damaged, forensic techniques can sometimes locate and extract individual compressed streams or recognizable file types from within the raw bytes, though success depends on whether files were stored (rather than compressed) and whether they were fragmented.

Properly encrypted RAR5 archives with lost passwords fall outside the scope of practical recovery; AES-256 in CBC mode with a strong passphrase is not susceptible to brute force within realistic timeframes.

Frequently asked questions

Why does WinRAR say my RAR file is corrupt when I just downloaded it?

The most common reasons are an interrupted download (the file is incomplete), a version mismatch (a RAR5 archive opened in WinRAR 4.x or an outdated extractor), or — for multi-volume sets — a missing or renamed volume. Re-download with a fresh copy and verify against the publisher's checksum if one was provided.

Can a damaged RAR file be repaired without the original recovery record?

Often, yes — partially. If the headers are intact, files before the damaged region can usually be extracted. WinRAR's repair function can sometimes rebuild a damaged header even without a recovery record, but it cannot reconstruct missing compressed data. For full reconstruction of damaged payloads, a recovery record or recovery volumes are required.

What is a .rev file?

A .rev file is a recovery volume. When an archive creator enables recovery volumes, WinRAR generates .rev files alongside the normal numbered volumes. If any regular volume in the set is lost or damaged, WinRAR can use the .rev files to reconstruct it, up to the number of missing volumes covered.

Can I recover a password-protected RAR file if I forgot the password?

For RAR5 archives using AES-256 encryption, practical recovery is not possible if the password is truly lost. Dictionary or brute-force attacks may succeed against weak, guessable passwords, but a strong random passphrase effectively prevents access. If you have the password and the archive is merely damaged, partial recovery is still possible.

How can I tell whether a file is RAR4 or RAR5?

The .rar extension is the same for both. The most reliable way is to open the archive in a current version of WinRAR and inspect its properties; the format version is reported there. Attempting to open a RAR5 archive in WinRAR 4.x will typically produce a generic corruption error because the older software does not recognize the newer internal structure.

Does WinRAR verify file integrity automatically?

Yes. RAR archives store a CRC-32 (or, in RAR5 with the option enabled, a 256-bit BLAKE2) checksum for each stored file. During extraction, WinRAR recomputes each file's hash and compares it to the stored value; a mismatch indicates that the extracted data does not match what was originally compressed, which usually signals corruption.


If you have a damaged, incomplete, or unreadable RAR archive — whether a single file or a large multi-volume set — send it to us for a free evaluation. We will diagnose the cause of the failure, tell you honestly what can be recovered, and explain the options before any paid work begins.

Send us your .s file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation