Skip to content
Aback ZIP

How-to · 3 min read · Updated

How to merge ZIP files into one

Combine several ZIP archives into a single ZIP without re-zipping, with clear rules for files that have the same name.

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.

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