Archives

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.

A server bay with a row of drive caddies under blue light — a symbol of data storage and compression
An archiver is a way to fit more data into less space. The only question is which algorithm does it. Photo: Pexels

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.

A server tower under blue light — a metaphor for reliable data storage
The tighter data is packed, the less space and bandwidth it takes to store and move. Photo: Pexels

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.

Server blades with rows of green indicators — an image of densely packed information
LZMA2 in 7z hunts for matches over long distances — that's how the format wrings the most out of data. Photo: Pexels

The comparison in one table

Let's put the key differences side by side to keep them in view:

PropertyZIPRAR7z
Compression ratioMediumHighBest
AlgorithmDEFLATEProprietaryLZMA2
Opens without softwareYes, everywhereNoNo
Free to createYesNo (WinRAR is paid)Yes (7-Zip)
EncryptionZipCrypto / AES-256AES-256AES-256
Hides file namesNoYesYes
Repair after damageNoYes (recovery record)No
Split into volumesLimitedYesYes

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:

~15 MBZIP (DEFLATE)
~12 MBRAR
~8 MB7z (LZMA2)

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.

Don't waste your time

Wrapping a folder of photos or finished videos into 7z "for compression" is pointless: the gain is within a percent, and not everyone can open the archive. For media, it's better to shrink the files themselves — compress your JPG or PNG — than to bundle them into an archive.

How to choose: a simple rule

So you don't have to guess every time, keep this three-step logic:

1

Sending it to another person?

Use ZIP. It opens for anyone on any device. Compatibility beats a couple of saved megabytes.

2

Need the smallest size for yourself?

Use 7z at a high compression level. Perfect for text, code, documents and sets of similar files.

3

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.

The strongest algorithm loses if the recipient can't open the archive. Compatibility is part of efficiency too.

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 converters
On most data 7z compresses tightest thanks to its LZMA2 algorithm: it makes the archive roughly 20–40% smaller than ZIP and 5–15% smaller than RAR. RAR is a steady second, ZIP is third because its DEFLATE algorithm is the oldest. But on already-compressed files (JPG, MP4, MP3) the difference almost vanishes: there is nothing left to squeeze.
Compatibility. Every system opens ZIP with no extra software: Windows, macOS, Android, iPhone, any archiver. RAR and 7z almost always need a separate app to unpack. So when you send an archive to someone you do not know, ZIP is the safest bet: it will open.
Yes. Both 7z and RAR use AES-256, the modern strong standard. On top of that, 7z and RAR encrypt not just the contents but the file names inside the archive. ZIP has two modes: the old ZipCrypto (weak, crackable) and AES-256 (strong) — it matters that you pick AES.
It is redundant data that WinRAR can add to an archive on request (usually 3–5% of its size). If part of the file gets damaged — say from a bad disk sector or a broken download — that record lets WinRAR repair the archive. ZIP and 7z have no built-in protection like this, which is why RAR is favoured for long-term storage and transfer over unreliable channels.
Sending it to someone or unsure what they will open it with — ZIP. Need the smallest size with a free, open tool — 7z. Storing something important for a long time, or splitting into volumes with damage protection — RAR with a recovery record. For already-compressed photos and video the format barely matters — use ZIP for compatibility.