Skip to content
Aback ZIP

How-to · 3 min read · Updated

How to merge ZIP files into one

Combine several ZIP archives into one in your browser, with clear duplicate-name rules, folder-per-archive options and no recompression of file data.

Merging ZIP files helps when a download arrives as several archives, when you want one backup instead of many, or when you want the independent parts of a split archive back in one file. Combining the files is the easy part; the real question is what should happen when two archives contain the same path.

Merge ZIPs in your browser

  1. Open Merge ZIP and add two or more archives.
  2. Put them in order. The order decides which copy counts as first when names collide.
  3. Choose how duplicate names are handled (see below), and whether identical duplicates should simply be skipped.
  4. Optionally put each archive's contents in its own folder, named after the archive, so nothing can collide at all.
  5. Merge and download. Entries are copied without recompression, so even large archives merge quickly and every file's data stays exactly as it was.

How duplicate names are handled

PolicyWhat happensUse it when
Rename (default)Later copies get a number: docs/report.pdf, docs/report (1).pdf, docs/report (2).pdf.You want to keep everything and sort it out later.
Keep firstThe copy from the earliest archive in the list wins; later copies are left out.The first archive is the authoritative version.
Keep lastThe copy from the latest archive wins and replaces earlier ones.Later archives contain updates, such as newer exports.

With skip identical duplicates on, a file with the same path, size and CRC-32 checksum as one already added is left out instead of renamed, so overlapping downloads do not produce piles of (1) copies. Names that differ only in letter case, such as Report.pdf and report.pdf, are treated as the same name, because Windows and macOS cannot store both in one folder.

Folders that appear in several archives are combined rather than duplicated, and the merge report lists every file that was renamed, skipped or replaced.

What merging keeps and what it changes

ItemResult
File contentsCopied unchanged, without recompression
Folder structureKept; folders with the same path are combined
File names and timestampsKept as stored in each source archive, except for renamed duplicates
The ZIP containerRebuilt: the merged file is a new archive, not a byte-identical copy of any source

Other ways to merge

  • Extract and re-zip: extract every archive into one folder, then zip the folder. Windows and macOS ask what to do about each clash, which gets tedious with many duplicates, and everything is compressed again.
  • Command line: zipmerge merged.zip a.zip b.zip from the libzip tools combines archives directly on macOS and Linux. Check its options for how name clashes are handled.
  • Parts made by Split ZIP: no file appears in more than one .partNN.zip, so merging them with the default settings rebuilds the full contents in one archive.

Prepare the inputs before merging

A merge copies data, so whatever is in the inputs ends up in the output. A minute of checking first avoids rebuilding the archive later.

  1. Open each archive in ZIP Viewer and note its entry count and largest files.
  2. Look for encrypted entries. They can be carried over, but you will still need the password to read them afterwards, so unlock them first if the merged archive should be openly readable.
  3. Strip junk with Clean ZIP before merging, so every __MACOSX or .DS_Store entry does not have to be renamed.
  4. Put the archives in the order you want. That order decides which copy counts as first when a name clashes.
  5. If the inputs are actually parts of one byte-split or spanned archive, do not merge them. Use Join ZIP Parts instead.

Merging needs at least two archives and does not repair corrupted inputs. If a source cannot be read, the operation stops with an error naming that file; the originals are not modified.

How a path collision is resolved

  1. The first archive contributes its entries in stored order, creating folders as needed.
  2. For each later entry, Merge ZIP checks whether that path is already in use. Comparison is case-insensitive, so Report.pdf and report.pdf count as the same name.
  3. An exact match is handled by the chosen policy: rename, keep first or keep last.
  4. With skip identical duplicates on, a path whose size and CRC-32 also match is dropped instead of renamed.
  5. Folder entries from different archives are combined rather than duplicated.
  6. The report lists every rename, skip and replacement, so the outcome is easy to explain.

The decision is deterministic: the same archives, in the same order, with the same settings produce the same merged file. That matters when the archive is part of a repeatable build or hand-off.

Verify the merged archive

CheckWhat a problem looks likeFix
Entry countFewer files than expectedKeep first or keep last removed copies; redo with Rename.
Duplicate namesMany (1) suffixesTurn on Skip identical duplicates, or clean the inputs first.
File orderThe wrong version ended up on topReorder the inputs; order decides which copy is first.
IntegrityA CRC failure on one fileThat file was already damaged; get a fresh source and merge again.
EncryptionThe result still asks for a passwordEncrypted entries were copied as-is; unlock them with Remove ZIP Password first.

Open the result in ZIP Viewer to check the tree, then run Test ZIP Integrity. If two archives should be identical after the merge, Compare ZIP shows added, removed and changed entries.

When merging is not the answer

  • To undo a byte-chunk or spanned split, join the parts instead of merging them.
  • If two archives hold different versions of the same files and you need one canonical copy, choose Keep last deliberately rather than letting Rename create numbered duplicates.
  • To change individual names or drop a few files, use ZIP Editor after the merge.
  • TAR inputs have to be converted to ZIP first; see ZIP vs TAR.

Tools for this

Frequently asked questions

Not by default. Rename keeps every file and numbers the duplicates. Only Keep first and Keep last drop copies, and the report shows exactly which files were skipped or replaced.

More guides