NoUpload

RAR vs ZIP vs 7z: which archive format should you use?

ZIP for sharing, 7z for maximum compression and archiving, RAR only when someone else sends you one. Never use RAR as your own output format.

NoUpload engineering teamLast updated

Key facts

  • ZIP is implemented on every platform; 7z compresses text and source code 20–60% smaller, and RAR5 is close behind, but both need software on most systems.
  • No archive format meaningfully shrinks already-compressed media such as JPEG, MP4 or ZIP; 7z spends CPU proving it.
  • On 1 GB of source code, ZIP finishes in seconds while 7z takes tens of seconds at default settings.
  • RAR is proprietary: creating it requires a licensed tool, while 7z and ZIP have free implementations.

All three formats bundle files into one. They differ in compression, features, licensing and — most importantly — in whether the person receiving the file can open it without downloading something.

The short answer

  • Sharing with anyone, anywhere: ZIP.
  • Archiving for yourself, where size matters: 7z.
  • Someone sent you a .rar: extract it and move on; do not adopt it.
  • Encrypted, long-term backup: 7z with AES-256, or ZIP with AES-256 if you need compatibility.

Compression ratio

Rough typical results on mixed data, comparing default settings:

Content ZIP (Deflate) 7z (LZMA2) RAR5
Source code Baseline 20–40% smaller 15–35% smaller
Text documents Baseline 30–50% smaller 25–40% smaller
Logs, CSV Baseline 40–60% smaller 35–50% smaller
Executables Baseline 15–30% smaller 10–25% smaller
Already-compressed media Baseline ~0% ~0%
Photos Baseline ~0–5% ~0–5%

The important line is the last two. JPEG, PNG, MP4 and MP3 are already compressed. No archive format can meaningfully shrink them, and 7z will spend a lot of CPU proving it. If the archive is mostly photos, use ZIP with store — it will be roughly the same size and finish in a fraction of the time.

ZIP’s Deflate is from 1993 and it shows. Its advantage is not ratio; it is that it is implemented in every operating system, language and framework on earth.

Speed

7z and RAR trade CPU for bytes. On a modern laptop, compressing 1 GB of source code:

  • ZIP at default: seconds.
  • 7z at default: tens of seconds.
  • 7z at ultra: minutes, for single-digit percentage gains.

Decompression is much faster than compression for all three, but 7z still costs more CPU than ZIP. On a phone or a low-power laptop, a large 7z archive can take noticeably longer to open.

Encryption

ZIP 7z RAR5
Legacy weak encryption ZipCrypto — —
Modern encryption AES-256 AES-256 AES-256
Encrypts file names No (vendor extension only) Optional (header encryption) Optional (header encryption)
Widely supported Yes Needs 7-Zip Needs WinRAR or unrar

Everything modern uses AES-256. 7z and RAR5 can also encrypt the header, which hides file names; standard ZIP encryption does not, so an encrypted ZIP still reveals its directory listing.

Two practical warnings:

  1. ZipCrypto is not encryption you should rely on. It is trivially broken. If a tool offers only “password protect” without saying AES, assume ZipCrypto.
  2. A lost password is permanent. There is no recovery. Choose long passphrases, not clever substitutions of a short word.

This site’s ZIP creator uses AES-256 when you set a password, and the unzip tool reads both schemes.

Features that actually differ

Recovery record (RAR). RAR can embed redundancy so a corrupted archive can be repaired. Genuinely useful for archiving to unreliable media. 7z has no equivalent; ZIP has none at all.

Solid compression (7z, RAR). Treating many files as one stream improves ratio dramatically for lots of small files, at the cost of slower random access — extracting one file may require decompressing everything before it.

Split volumes. All three support splitting across files. None of them can be reassembled in a browser, because a web page receives one file at a time.

Unicode file names. ZIP stores a UTF-8 flag, but older Windows tools ignored it, which is why Japanese and Chinese archives from that era produce mojibake. 7z and RAR5 handle Unicode correctly by design.

Licensing, which is why RAR loses

ZIP is an open format with many independent implementations. 7z is open, documented, and has an open-source reference implementation (LZMA SDK is public domain; the 7-Zip program itself is LGPL).

RAR is proprietary. RARLAB publishes an unpacking library that is free to use but explicitly cannot be used to create a RAR compressor. In practice:

  • Anyone can extract RAR.
  • Only RARLAB’s software can create it.
  • Your recipients need a paid app, or a free one with nag screens, to open what you send.

This is the whole argument in one sentence: use RAR for output and you have chosen to inconvenience everyone you send it to.

Support in the real world

Platform ZIP 7z RAR
Windows 10 Native Needs 7-Zip Needs WinRAR
Windows 11 (recent) Native Native Native
macOS Native Needs app Needs app
Linux unzip 7z unrar
Android Native Needs app Needs app
iOS Native Needs app Needs app
Browsers, no install Yes Yes, local WASM Yes, local WASM

That last row is new-ish and changes the calculus for one-off cases. A page that decompresses locally — like the 7z, RAR and TAR tools here — closes the “I just need to look inside this one file” gap without installing anything or uploading the archive.

What to pick, by scenario

Sending a document bundle to a client. ZIP. They will open it by double-clicking, on any device, with no explanation needed.

Archiving a project you will restore in five years. 7z with AES-256 if it is sensitive, plain 7z otherwise. Smaller, and the format is documented and open source, so it will still be readable.

Backing up photos. ZIP with store, or better, no archive at all — a folder sync plus a checksum manifest is more useful than a 40 GB blob you have to extract to search.

Sending source code to a colleague. ZIP. The compression difference on a few megabytes is irrelevant next to the friction of “you will need 7-Zip”.

Receiving a cracked game or a scene release. It will be RAR, split, and passworded. There is nothing to choose; extract with 7-Zip or an unrar-compatible tool.

Long-term encrypted archive. 7z. AES-256 plus header encryption, and a well-documented format. Store the password somewhere that is not the same disk.

One more thing: verify the archive

Whatever format you choose, test it before deleting the originals. 7z t archive.7z, unzip -t archive.zip and rar t archive.rar all read the archive back and verify checksums. A backup you have never restored is a hypothesis, not a backup.

Questions this guide answers

Is RAR better than ZIP?

RAR usually compresses a little better than ZIP and supports recovery records, but it is proprietary and needs software on the recipient's machine. ZIP is the better default for sharing; 7z is better for archiving for yourself.

Which archive format gives the smallest file?

7z with LZMA2 is typically the smallest of the three on text, code and logs — 20–60% under ZIP. On photos, video and other already-compressed data, all three land within a few percent and ZIP is far faster.

Can 7-Zip create or open RAR files?

7-Zip can extract RAR archives using its own independent reader, but it cannot create RAR files because the format is proprietary. Creating RAR requires WinRAR or another licensed tool.

Sources