Back to Blog
general

ZIP to 7z: How to Get a Noticeably Smaller Archive

7z usually beats ZIP on documents, code and text-heavy folders — and barely moves the needle on photos. Here's what to expect, plus both routes to convert ZIP to 7z: online in your browser, or with the 7-Zip command line.

Rumen AtanasovNovember 17, 20267 min read
A bulky box of individually bubble-wrapped documents next to a slim vacuum-sealed crate holding the same contents

You have client-backup.zip sitting at 612 MB, the upload limit on the other end is 500 MB, and someone told you 7z compresses harder. They're right — but only for some kinds of content, and the payoff depends on settings most people never touch.

This guide shows what converting ZIP to 7z actually saves on documents versus photos, how to do it in your browser without installing anything, and the exact 7-Zip command line if you'd rather do it locally.

How much smaller is 7z than ZIP?

The honest answer: it depends almost entirely on whether your files are already compressed. Repack the same folder as ZIP (Deflate) and as 7z (LZMA2, maximum) and you'll see roughly this pattern:

  • Documents, spreadsheets, text, logs, CSV, source code — typically 15–40% smaller than the ZIP. Log files and CSV exports can do far better; they're hugely repetitive.
  • Mixed office folders (DOCX, XLSX, PDF, a few images) — usually 5–15%. DOCX and XLSX are already ZIP containers internally, so there's less left to squeeze.
  • Photos and video (JPEG, PNG, MP4, HEIC) — 0–3%, sometimes literally a few kilobytes. The pixel data is already compressed; no archiver can meaningfully beat it.
  • Raw formats (BMP, TIFF, WAV, RAW camera files) — big wins, often 40%+, because nothing has compressed them yet.

So a 612 MB ZIP of contracts, spreadsheets and CAD exports might land somewhere near 450–520 MB as a .7z. A 612 MB ZIP of holiday JPEGs will come out at about 605 MB and cost you ten minutes of CPU time. Check what's inside before you bother.

Why 7z squeezes harder than ZIP

Two mechanical differences do most of the work.

Solid compression. A ZIP compresses every file independently. If report-v1.docx and report-v2.docx share 90% of their content, ZIP stores that content twice. A 7z archive in solid mode glues files into one continuous block, so the second copy becomes a short back-reference instead of a second full copy. On folders full of near-duplicate files, this alone is the entire saving.

A much bigger dictionary. Deflate in ZIP looks back at most 32 KB to find repeated byte sequences. LZMA2 at maximum settings looks back 64 MB or more. Repetition that ZIP simply cannot see — the same boilerplate header in 400 invoices — is visible to 7z.

The trade-off: solid archives are slower to extract a single file from, because the decompressor may have to walk through the block to reach it. For storage and transfer that's fine. For an archive you'll be cherry-picking from daily, less so.

Convert ZIP to 7z online, without installing anything

If this is a one-off, installing desktop software for a single file is overkill. Use the browser-based ZIP to 7z converter instead — it unpacks your ZIP and repacks the contents as a .7z archive, with no account and no ads.

  1. Open the converter and drop client-backup.zip onto the page.
  2. Wait for the repack. The original folder structure inside the ZIP is preserved — invoices/2024/, drawings/, and so on, exactly as they were.
  3. Download the resulting client-backup.7z and compare file sizes in your file manager before you send it.
  4. If the saving is under a percent or two, keep the ZIP. You'll have learned your content is already compressed, which is useful on its own.

Working with other formats — RAR, TAR, GZ — is covered on the same site's archive converter hub, which handles conversions between the common archive types.

One practical caveat: browser-based conversion means uploading the file. For routine work that's fine; for payroll data, medical records or anything under NDA, use the local route below.

The desktop route: 7-Zip and the command line

If you already have 7-Zip (Windows) or p7zip (macOS/Linux) installed, or you convert archives regularly, do it locally. Right-clicking works, but the GUI defaults leave compression on the table.

First extract the ZIP, then repack. Two commands:

7z x client-backup.zip -oclient-backup
7z a -t7z -m0=lzma2 -mx=9 -md=64m -mfb=273 -ms=on client-backup.7z ./client-backup/*

What each switch is doing:

  • -t7z — write a 7z archive rather than ZIP.
  • -m0=lzma2 — use the LZMA2 compressor. This is the default for 7z, but be explicit.
  • -mx=9 — maximum compression level. -mx=5 is the normal default and is two to four times faster for a few percent more size.
  • -md=64m — 64 MB dictionary. The single most important setting for large, repetitive folders. Note that extraction needs roughly the same amount of RAM, so don't set 1 GB dictionaries for archives other people have to open on old machines.
  • -mfb=273 — maximum word size; a small extra squeeze at some CPU cost.
  • -ms=on — solid mode on, so files share one compression block.

Want the archive encrypted? Add -p for a password prompt and -mhe=on to encrypt the file names too, so no one can see the contents listing without the password:

7z a -t7z -mx=9 -ms=on -mhe=on -p client-backup.7z ./client-backup/*

Always test the result before deleting the original: 7z t client-backup.7z verifies every stream against its CRC.

When ZIP is still the better choice

Smaller isn't automatically better. Stick with ZIP when:

  • The recipient is non-technical. Windows and macOS open ZIP with a double click. .7z needs 7-Zip, Keka, The Unarchiver or similar. A 7% saving isn't worth a support email.
  • A system has to ingest it. Upload portals, LMS platforms and CI pipelines frequently accept ZIP only.
  • The content is photos or video. You'll spend CPU minutes for kilobytes.
  • People extract single files often. Solid blocks make random access slower.

A quick recipe for your next oversized folder

Open the ZIP and look at what's inside. If it's mostly documents, text, code, exports or near-duplicate versions of the same files, converting to 7z is worth the two minutes and will usually buy you 15–40%. If it's a camera roll, the archive format isn't your problem — resizing or re-encoding the media is.

For a single file, the fastest path is the online ZIP to 7z converter: drop the ZIP, download the .7z, compare the two sizes. For repeat work or confidential data, install 7-Zip and keep the -mx=9 -md=64m -ms=on command in a text file somewhere handy. Either way, tell the recipient the file is a .7z and which tool opens it.

FAQ

Does converting ZIP to 7z reduce quality? No. Both are lossless containers. Your JPEGs, PDFs and spreadsheets come out byte-identical after extraction — only the packaging changes.

Can Windows open .7z files without extra software? Recent Windows 11 builds added native .7z extraction in File Explorer. Older Windows versions and most corporate machines still need 7-Zip installed. On macOS, use Keka or The Unarchiver.

Why did my 7z come out the same size as the ZIP? Your files were already compressed — JPEG, PNG, MP4, MP3, PDF with compressed streams, or Office files, which are ZIP archives internally. There's no redundancy left for LZMA2 to find.

Does a password-protected ZIP convert? You'll need the password so the contents can be unpacked first. If you want the output protected too, use the local -p -mhe=on command above.

Is 7z or ZIP better for emailing? 7z for size, ZIP for the recipient's convenience. If you're close to a limit, 7z. If you're comfortably under it, ZIP saves everyone a step.

Can I convert several ZIPs at once? Locally, yes — loop over them in a shell script. Online, convert them one at a time, or combine the contents into a single archive first.

Ready to Convert Your Files?

Try our free online file converter. No registration required.

Start Converting