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
- Open Merge ZIP and add two or more archives.
- Put them in order. The order decides which copy counts as first when names collide.
- Choose how duplicate names are handled (see below), and whether identical duplicates should simply be skipped.
- Optionally put each archive's contents in its own folder, named after the archive, so nothing can collide at all.
- 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
| Policy | What happens | Use 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 first | The copy from the earliest archive in the list wins; later copies are left out. | The first archive is the authoritative version. |
| Keep last | The 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
| Item | Result |
|---|---|
| File contents | Copied unchanged, without recompression |
| Folder structure | Kept; folders with the same path are combined |
| File names and timestamps | Kept as stored in each source archive, except for renamed duplicates |
| The ZIP container | Rebuilt: 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.zipfrom 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.
- Open each archive in ZIP Viewer and note its entry count and largest files.
- 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.
- Strip junk with Clean ZIP before merging, so every
__MACOSXor.DS_Storeentry does not have to be renamed. - Put the archives in the order you want. That order decides which copy counts as first when a name clashes.
- 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
- The first archive contributes its entries in stored order, creating folders as needed.
- For each later entry, Merge ZIP checks whether that path is already in use. Comparison is case-insensitive, so
Report.pdfandreport.pdfcount as the same name. - An exact match is handled by the chosen policy: rename, keep first or keep last.
- With skip identical duplicates on, a path whose size and CRC-32 also match is dropped instead of renamed.
- Folder entries from different archives are combined rather than duplicated.
- 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
| Check | What a problem looks like | Fix |
|---|---|---|
| Entry count | Fewer files than expected | Keep first or keep last removed copies; redo with Rename. |
| Duplicate names | Many (1) suffixes | Turn on Skip identical duplicates, or clean the inputs first. |
| File order | The wrong version ended up on top | Reorder the inputs; order decides which copy is first. |
| Integrity | A CRC failure on one file | That file was already damaged; get a fresh source and merge again. |
| Encryption | The result still asks for a password | Encrypted 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.