Cookies for analytics and advertising
We use cookies for analytics and advertising, both sent to Google. Refusing changes nothing you can see.Read the privacy page
7z compresses harder, ZIP opens anywhere.
Choose ZIP when
Anything you send to somebody else. Every operating system opens a ZIP without installing anything.
Choose 7Z when
Your own archives, where a noticeably smaller file is worth needing a specific tool to open it.
The difference is largest on text and source code and smallest on media, which is already compressed. Re-archiving a folder of photographs saves almost nothing either way.
Nothing is discarded. ZIP and 7Z both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.
7-Zip reads both ZIP and 7Z, so there is a way to check the result against the original without a second tool.
7Z works over 16 MB at a time against ZIP's 32 KB — that is the span a repetition has to fall inside before it can be compressed away. It is where the difference in ratio comes from, and where the extra time goes.
The two are aimed at different work: ZIP at moving data between programs and handing a finished file over, 7Z at archiving. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.
ZIP is PKWARE's format, published in 1989. The specification is APPNOTE.TXT, and it is worth reading if the file has to outlive the tool that wrote it.
7Z dates from 1999. 7-Zip, Keka and PeaZip all read it.
Nothing is discarded. 7Z and ZIP both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.
7-Zip reads both 7Z and ZIP, so there is a way to check the result against the original without a second tool.
ZIP works over 32 KB at a time against 7Z's 16 MB — that is the span a repetition has to fall inside before it can be compressed away. It is where the difference in ratio comes from, and why it is the faster of the two.
The two are aimed at different work: 7Z at archiving, ZIP at moving data between programs and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.
ZIP comes from PKWARE and dates from 1989, specified as APPNOTE.TXT. Windows Explorer, Finder and 7-Zip all read it.
| ZIP | 7Z | |
|---|---|---|
| Full name | ZIP Archive | 7-Zip Archive |
| Extension | .zip | .7z |
| Media type | application/zip | application/x-7z-compressed |
| Compression | Lossless — nothing is discarded | Lossless — nothing is discarded |
| This site can write it | Yes | Yes |
Which to choose
Windows, macOS, Linux, Android and iOS all create and open ZIP archives with nothing installed. Every email client, every upload form, every browser and every programming language handles them. That is more than three decades of ubiquity and it is not a small thing to give up.
7z needs software. 7-Zip on Windows, Keka or The Unarchiver on a Mac, p7zip elsewhere — all free, all a two-minute install, and all a step the recipient has to take before they can see what you sent. Every other difference in this comparison is measured against that one.
Substantially, on the right material. The LZMA2 algorithm looks much further back through the data than ZIP’s Deflate does, so on text, source code, logs, databases and uncompressed images it routinely produces archives thirty to fifty per cent smaller.
On the wrong material it produces almost nothing. Photographs, music, video, PDFs and Office documents have already had their redundancy removed, so three different JPEGs totalling 31 kilobytes came to 25,576 bytes as a solid 7z and 26,173 as a ZIP — a difference of two per cent. Since that is what most people are actually zipping up to send, the practical difference in everyday use is often zero.
The exception is repetition. Three copies of the same 8,924-byte JPEG make a 26,383-byte ZIP, because Deflate begins again at every file, and an 8,876-byte solid 7z, because LZMA2 recognises the second and third copies as data it has already read. There is nothing left inside a compressed file for either algorithm to find, but a repeated file is a different kind of redundancy, and it is the one case where a folder of JPEGs does shrink.
Part of 7z’s advantage comes from treating the whole archive as one continuous stream rather than compressing each file separately. Redundancy between files is then available to the compressor, which is why a thousand similar log files shrink so dramatically.
The cost is extraction. Pulling one file out of a solid archive means decompressing everything up to it, so opening a single document from a large solid 7z is slow in a way that ZIP never is. For an archive somebody will browse, this is a genuine drawback; for a backup that is only ever extracted whole, it is free.
Both formats can encrypt. ZIP’s original scheme is broken and has been for decades — a dozen known bytes of any one file in the archive recover the keys to all of it, and the predictable header of a JPEG or a DOCX supplies them. Modern tools can write AES-256 into a ZIP, but support for reading it is inconsistent, and Windows Explorer will not.
7z uses AES-256 by default and can additionally encrypt the file names, so an observer cannot even see what the archive contains. If files are being protected rather than merely bundled, 7z is the better answer — and the password remains the weak point in either format, because a weak password defeats any encryption at all.
Both are single points of failure. A corrupted byte in the middle of an archive can cost you everything after it, and in a solid 7z it can cost you the lot. Neither format carries error correction, so cloud sync, a bad cable or a failing drive is not recoverable from within the file.
ZIP degrades slightly better, since each file is compressed independently and a damaged archive often gives up most of its contents to a repair tool. If archives are being kept rather than sent, the answer is not choosing between these two but keeping a second copy, and ideally a checksum recorded separately.
Sending something to another person: ZIP. Always. The saving from 7z is rarely worth an email that begins with "you need to install something first", and on the photographs and documents most people send there is no saving at all.
Storing or moving a large amount of compressible data — logs, source, database dumps, disk images, a corpus of text — 7z, and the difference is worth real money in transfer and storage. Same for anything encrypted, where ZIP’s legacy scheme is not a serious option.
And on macOS, one practical note: the built-in archiver adds hidden metadata files that Windows users then see as clutter inside the archive. It is cosmetic, it looks like a fault, and a third-party archiver avoids it.
RAR is the third name in every conversation of this kind and it is the one to avoid for anything you create. The format is proprietary: creating an archive requires licensed software, and free tools can only extract. That is precisely the position 7z occupies without the licence.
It does have genuine recovery records, which is a real feature neither ZIP nor 7z offers. But receiving RAR files and creating them are different decisions, and there is no good reason to produce one today.
The ZIP format predates Unicode, and its original design stored filenames in whatever code page the machine happened to use. A flag was added later to declare UTF-8, but not every tool sets it and not every tool reads it.
This is why an archive made on a German or Japanese machine can unpack elsewhere with mangled filenames — the accents and characters replaced by symbols — while the file contents are perfectly intact. 7z has stored names as UTF-16 from the start, with no flag and no code page to guess at, and does not have the problem. If you are packing filenames with anything beyond plain ASCII in them and the recipient is on another system, that is a genuine reason to choose the newer format.
The compression advantage comes largely from a much larger dictionary — the window of already-seen data the algorithm can refer back to. ZIP's is 32 kilobytes. 7z's default runs to 16 or 64 megabytes, and its highest settings go considerably beyond that.
That memory has to be available when unpacking, not only when packing, and roughly in proportion. An archive made at the maximum setting can need well over a gigabyte to open, which is fine on a desktop and is not fine on a small server or an older machine. Packing at the highest level a machine can manage is not automatically the right choice when somebody else has to open it.
On compressible material — text, code, logs, databases, uncompressed images — yes, typically 30 to 50 per cent smaller. On photographs, music, video, PDFs and Office files, which are already compressed, the difference is close to nothing.
Recent Windows 11 builds added native support, but anything older needs 7-Zip or a similar tool installed. macOS needs Keka or The Unarchiver. ZIP works everywhere with nothing installed, which is the main argument for it.
ZIP, essentially always. The compression saving is small on the kind of files people send, and it is not worth a message that starts by asking the recipient to install something.
Not in its legacy form, which has been broken for decades. Modern tools can write AES-256 into a ZIP, but support for opening it is inconsistent. 7z uses AES-256 by default and can encrypt the file names too, which makes it the better choice for anything genuinely confidential.
Solid compression. The archive is treated as one continuous stream, so reaching a file in the middle means decompressing everything before it. That is where much of the size advantage comes from, and it is why ZIP is better for archives people browse.
Avoid creating them. The format is proprietary — making an archive needs licensed software, while free tools can only extract — and 7z occupies the same ground without the licence. Its one real advantage is built-in recovery records.
The claims this page makes about ZIP and 7Z are checkable, and these are the documents that settle them.