The RAR (.rar) Format, Explained
iLoveConverter Team 3 min read
On this page
RAR — Roshal Archive — is the archive format created by Eugene Roshal and popularized by WinRAR. For over two decades it was the go-to format for high-compression archives on Windows, thanks to its excellent solid compression, built-in recovery records, and near-universal file sharing adoption. Today it competes with 7Z (open-source, better on some data) and ZIP (universal compatibility), but RAR5’s compression engine remains highly competitive.
History and versions
- RAR2 — original format, used LZSS variant compression.
- RAR3 — improved compression, larger dictionary, stronger encryption. This is what most people still encounter.
- RAR5 (2013) — new format with larger dictionaries, AES-256 with KDF, larger maximum archive size (exabytes), better deduplication, and BLAKE2 hashes for integrity. Files use
.rarextension for both versions; the version is detected from the header.
Key features of RAR5
- Dictionary size up to 1 GB — RAR5 supports a maximum dictionary of 1 GB, larger than 7Z’s default but similar at maximum.
- Solid compression — concatenates files before compression, boosting ratios for repeated data.
- Recovery records — optional data redundancy added to the archive so damaged or partially downloaded files can often be repaired. Recovery volume is user-configurable (percentage or fixed blocks).
- AES-256 encryption with optional header encryption — same as 7Z, but RAR’s implementation is closed.
- Multi-volume (split) archives — spans large archives across fixed-size chunks (e.g.,
.part01.rar,.part02.rar).
How compression works
RAR uses LZSS-style back-references combined with Huffman coding, plus specialized preprocessors for audio and true-color images. The default compression levels -m0 through -m5 trade speed for ratio. At maximum settings (-m5 -md1g) RAR5 approaches or sometimes edges out 7Z on certain data types, especially binary files with many repeated patterns.
Recovery records: RAR’s unique advantage
The -rr flag adds recovery information. Even if a .rar file is partially corrupted (e.g., a bad sector on a CD or a truncated download), WinRAR can often rebuild the original archive using the intact recovery data. RAR is almost unique in this; ZIP and 7Z have much weaker recovery mechanisms. For archives you intend to move across unreliable media, recovery records are worth the size penalty.
Open versus closed
RAR’s specification is not fully open. The decompression algorithm is documented enough that open-source tools (7-Zip, unrar-free, bsdtar) can read most RAR files. However, creating RAR files requires a license — the RAR compression code is proprietary and only WinRAR/WinRAR command-line and RAR for Linux can produce RAR5 archives. This is the main reason 7Z became popular: it is fully open.
Common problems
- “This archive is either in unknown format or damaged” — often means you have a RAR5 archive but an older unrar tool that only handles RAR3. Update your tool.
- Multi-volume extraction fails — ensure all parts are in the same directory with correct filenames; parts must be extracted together, not individually.
- Encrypted archive but forgot password — there is no back door; brute force is the only option, and RAR’s KDF makes it slow.
- 7-Zip creates ZIP, not RAR — 7-Zip can open RAR but cannot create it; use WinRAR.
FAQ
Is RAR better than ZIP?
Better compression, smaller size, recovery records, solid compression. But proprietary, not universally supported. ZIP wins on compatibility; RAR wins on features.
Can 7-Zip open RAR5?
Yes, since version 9.20. But newer RAR5 features (like very large dictionaries) may not decompress correctly on 7-Zip versions before 23.00.
RAR5 vs 7Z LZMA2 — which is smaller?
Usually within a few percent. RAR5 often wins on binary data; 7Z LZMA2 often wins on text. Use both and compare for your specific data.
What are .r00, .r01, .rar files?
An old multi-volume naming scheme. .r00 through .rNN are the volumes, and .rar is the first volume with the main header. Extract by opening the .rar file.
Try it yourself — free, right in your browser
Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.
Format deep-dives: RAR (.rar) , ZIP (.zip) , 7Z (.7z) , TAR (.tar)