ZIP vs RAR vs 7z: Which Archive Format to Choose
Someone sent you an archive and it won't open. Or the opposite — you're zipping a folder and staring at three buttons: ZIP, RAR, 7z. Let's cut through the myths and see how they actually differ: which compresses harder, whose password is safer, and why the "weakest" format turned out to be the most convenient.
Short version: which format for which job
No time to read it all? Here's the gist. Reach for ZIP when the archive has to go to someone else: it opens everywhere with no software to install. Reach for 7z when size matters most: it compresses tighter than anything. Reach for RAR when a file needs to be stored safely or sent over an unreliable channel: it has built-in protection against corruption. Everything else is detail — but the detail is exactly what explains why.
The core idea
There is no "best archiver overall." ZIP wins on compatibility, 7z on size, RAR on resistance to damage. The right choice depends on what matters to you right now.
ZIP — the universal soldier
ZIP appeared back in 1989 and has been the unofficial standard ever since. Its trump card is compatibility. Windows creates and opens ZIP out of the box, going back to Windows XP. macOS does too. Android, iPhone, any browser, any file manager — they all understand ZIP with not a single extra program. Send a ZIP and you'll almost never hear "what do I open this with?"
Inside, ZIP runs the DEFLATE algorithm — a mix of pattern matching and Huffman coding. It's fast and light, but modest by today's standards: DEFLATE is the oldest of the three and compresses less than its rivals. ZIP also has a quirk: each file in the archive is compressed separately. That's handy (you can pull one file without unpacking everything), but it hurts density — the format doesn't exploit similarity between files.
Encryption is its own story. ZIP has two modes. The old one is ZipCrypto: built into everything, but cryptographically weak and crackable with a known attack. The new one is AES-256, genuinely strong. If you put a password on a ZIP, always pick AES — there's more on that in the article on password-protecting archives.
RAR — the master of compression and safety
RAR is a proprietary format created by developer Eugene Roshal (hence the name: Roshal ARchive). Only the paid WinRAR can create RAR, though nearly every archiver has learned to unpack it. RAR compresses noticeably better than ZIP, thanks to a smarter algorithm and "solid" mode.
A solid archive glues many small, similar files into a single data stream and compresses them as one whole. Less redundancy between files is wasted, so density goes up. The flip side: to pull one file from the middle, you have to unpack everything before it, which makes solid mode slower for selective extraction.
But RAR's real superpower is the recovery record. This is redundant data you can add to an archive (usually 3–5% of its size). If part of the file gets damaged — a bad disk sector, a broken download — WinRAR uses that record to repair the archive. RAR can also split an archive into volumes of a set size and create recovery volumes. Encryption is AES-256, and RAR hides the file names too, so the archive doesn't reveal what's inside.
When RAR is irreplaceable
Copying a big archive to a flash drive, a disc, or the cloud and worried it might get corrupted? Add 3–5% of recovery record. The archive grows a little, but it survives damage that would make ZIP and 7z simply refuse to unpack.
7z — the compression champion
7z is the format of the free, open-source archiver 7-Zip. It isn't tied to one company, its code is open to everyone, and it's arguably the best choice when size is what counts. Inside runs the LZMA2 algorithm — it finds matches across long distances and consistently produces the most compact archives of any mainstream format.
On encryption, 7z is right at the top too: AES-256 by default, and like RAR it encrypts file names. So an outsider who opens an encrypted 7z won't even see the list of contents. It also has a solid mode, like RAR — that's what delivers record density on sets of similar files.
The honest downsides: at maximum settings 7z compresses noticeably slower and needs more RAM, and above all it won't open without installing a program. Windows and macOS don't understand 7z natively. So 7z is great "for yourself" and for people who definitely have 7-Zip, but risky as a format to send to a random recipient.
The comparison in one table
Let's put the key differences side by side to keep them in view:
| Property | ZIP | RAR | 7z |
|---|---|---|---|
| Compression ratio | Medium | High | Best |
| Algorithm | DEFLATE | Proprietary | LZMA2 |
| Opens without software | Yes, everywhere | No | No |
| Free to create | Yes | No (WinRAR is paid) | Yes (7-Zip) |
| Encryption | ZipCrypto / AES-256 | AES-256 | AES-256 |
| Hides file names | No | Yes | Yes |
| Repair after damage | No | Yes (recovery record) | No |
| Split into volumes | Limited | Yes | Yes |
How much the size really differs
The numbers sound dramatic — "7z is 40% smaller!" — but it matters what data. The gap is huge on text and similar files, and nearly vanishes on already-compressed ones. Take a 100 MB archive of logs and documents as an example:
On text like that 7z genuinely pulls ahead. Now the key point that saves people a lot of frustration: if the contents are already compressed — JPG photos, MP4 video, MP3 music — all three formats give almost the same result, close to the original size. That data is already packed to the brim; there are no repeats left to cut out. The mechanics are unpacked in detail in the piece on lossless compression.
How to choose: a simple rule
So you don't have to guess every time, keep this three-step logic:
Sending it to another person?
Use ZIP. It opens for anyone on any device. Compatibility beats a couple of saved megabytes.
Need the smallest size for yourself?
Use 7z at a high compression level. Perfect for text, code, documents and sets of similar files.
Storing something important, or splitting into volumes?
Use RAR and add a recovery record. It's insurance for the archive against damage during storage and transfer.
And remember: an archive is packaging, not magic. It's excellent at tightening what isn't compressed yet, and almost powerless against what already is. If your real task isn't "to package" but to actually shrink a photo, a document or a video for sending, start not with an archiver but with proper compression of the source.
Need to shrink the files, not the archive?
FormatZ converts and compresses images, documents and other formats right in your browser — no install, no sign-up. Often that does more than any archiver.
Open all convertersFrequently asked questions about ZIP, RAR and 7z
Read next
ArchivesHow to Password-Protect an Archive (and Is It Safe)
Why ZipCrypto is riskier than AES-256, and how not to protect an archive in vain.
ArchivesLossless Compression: Why JPG Won't Shrink in ZIP
What entropy is and why finished media doesn't compress.
ArchivesHow to Shrink Files for Email
Mail limits, volumes and the cloud — what to pick for the job.