DevTools Logo

ZIP Archive Builder

ZIP Archive Builder

Drop files, edit their paths and compression, and download a real ZIP built entirely in your browser — no upload.

Runs in your browser
Try an example

Archive contents

0 file(s) · 0 B raw
Drop files or folders here, or use Add files / Add folder. Folder structure is preserved.
PathSizeCompressionLevelExclude

No files yet.

Preview & manifest

0 included · 0 B estimated

No archive yet

Add files to preview the tree and estimated size.

Details

Build a ZIP archive with a precise internal structure without uploading anything. Drop files or folders, edit each entry's path, wrap everything in a root folder, exclude dotfiles and node_modules with glob-lite patterns, and choose store or deflate with a compression level per entry. The preview shows the resulting tree, raw size and an estimated ZIP size. A built-in ZIP writer computes CRC32 and emits standard local headers, a central directory and an EOCD record; the resulting archive works with ordinary unzip tools. Save and reapply a manifest of paths and options to rebuild the same bundle with updated files.

More examples

Static site bundle

root: dist/ · entries: index.html, assets/main.js

A root folder prefix wraps the whole bundle in one top-level directory.

Store already-compressed media

video.mp4 → store; notes.txt → deflate level 9

Store avoids wasting CPU on media that will not compress further; text benefits from deflate.

Exclude OS junk

.DS_Store
*.log
node_modules/**

Patterns are applied when files are added, with a notice listing how many were skipped.

Examples

Rename an entry

Input
dist/assets/main.js → app.js
Output
A single top-level app.js entry

Path edits are independent of the file's original location.

Store media

Input
clip.mp4 (store) + notes.txt (deflate 9)
Output
~clip.mp4 size + heavily reduced notes.txt

Already-compressed formats rarely benefit from another deflate pass.

Traversal rejected

Input
docs/../secret.txt
Output
Inline error; build blocked

Path validation prevents malformed or unsafe archive entries.

About this tool

ZIP Archive Builder creates real ZIP files in the browser. Add files, rename or repath entries, wrap the bundle in a root folder, and choose STORE or DEFLATE compression per file before downloading the archive. No file is uploaded and no server participates in the build.

The entry table is the heart of the tool: each row has an editable forward-slash path, a size, a compression method, a level from 1 to 9 and an exclude checkbox. Paths are validated against traversal, absolute paths, drive letters, reserved Windows device names and duplicates, so a bad edit blocks the build with a specific message instead of producing a broken archive.

Exclusion patterns use a small glob dialect: *.log matches basenames, node_modules/** matches a subtree, and .DS_Store matches an exact file. Patterns apply when files are added, and a notice reports what was skipped. The preview tree and statistics show included entries, raw size and a clearly labelled size estimate before you build.

The writer is implemented locally: CRC32, fixed-Huffman DEFLATE with a bounded LZ77 search, local file headers with the UTF-8 filename flag, a central directory and the end-of-central-directory record. Empty files are valid entries, and pre-1980 timestamps are clamped to the DOS epoch. A manifest of paths and options can be saved and reapplied to rebuild the same structure with updated files.

What this tool does not do

  • Archives are built in memory as one Blob; very large bundles can exhaust browser memory.
  • Empty directories are not emitted as explicit directory records; paths of included files carry the structure.
  • There is no encryption and no ZIP64 guarantee; archives over 4 GB show a split recommendation.
  • The size estimate is a heuristic, not a measured compression of each full file.
  • Folders are read through the browser's webkitRelativePath; symlinks are resolved or unavailable, not preserved.

How to use this tool

  1. Add files

    Drop files onto the drop zone or use Add files. A folder picker preserves its relative paths when the browser supplies webkitRelativePath.

  2. Set the structure

    Enter a root folder prefix if the whole bundle should live under one directory, then edit individual paths in the entry table.

  3. Exclude and compress

    List exclusion patterns before adding files. Choose store for already-compressed media and deflate with a level for text and code.

  4. Review the preview

    Check the tree, entry count, raw size and estimated ZIP size. Fix any path errors or duplicate names highlighted in the table.

  5. Build and save a manifest

    Click Build & download ZIP. Download the manifest JSON to keep the structure and options; reapply it after re-dropping updated files.

Use cases

Deployment bundles

Assemble a static site with a consistent top-level folder and predictable internal paths.

Upload packages

Include only the required files, with dotfiles and noise excluded before the ZIP is built.

Course material

Rename a folder of submissions into a tidy structure and compress text while storing images.

Repeatable rebuilds

Keep a manifest so updated files can be dropped into the same structure without re-editing every row.

Exclusion pattern dialect

PatternMatches
*.logAny .log file by basename, at any depth
.DS_StoreThat exact basename anywhere in the tree
node_modules/**Everything under a top-level node_modules folder
dist/*.jsJavaScript files directly inside dist
image?.pngSingle-character wildcard in a filename

Patterns are applied at add time, not retroactively; clear and re-add files after changing them.

Common mistakes

Mistake:Using backslashes in entry paths.

Fix:ZIP paths always use forward slashes; the validator flags backslashes.

Mistake:Expecting exclusions to affect files already added.

Fix:Patterns are applied at add time — change them first, then clear and re-add files.

Mistake:Deflating already-compressed media.

Fix:Set those rows to store; deflate text and code instead.

Mistake:Trusting the size estimate as exact.

Fix:The preview probes a fixed heuristic and is labelled an estimate; the real size is reported after the build.

Mistake:Assuming password protection is supported.

Fix:The writer has no encryption; ZipCrypto is weak and AES ZIP is not universally supported.

Frequently asked questions

How big can the ZIP be?

The archive is assembled in browser memory and downloaded as a single Blob, so available RAM is the practical limit rather than a fixed quota. Bundles of a few hundred megabytes are usually fine; over 4 GB the tool warns that ZIP64 support is not guaranteed and recommends splitting the data. Very large archives may fail with a memory error.

Are my files uploaded anywhere?

No. Files are read locally, compressed and assembled in the tab, then handed to your browser's download mechanism. There is no upload, no server-side processing and no telemetry on file contents. Object URLs used for downloads are revoked after use.

Can I exclude patterns?

Yes. Enter one glob-lite pattern per line: *.log matches a basename at any depth, node_modules/** matches a subtree, .DS_Store matches that filename, and ? matches a single non-slash character. Patterns apply when files are added, so set them first if you want them to affect a drop.

Does it keep folder structure?

Yes. When the browser provides webkitRelativePath from a folder picker or drop, the relative path becomes the entry path. You can also wrap everything in a root folder with one option, or edit any path individually. Empty folders are not represented as separate entries because the ZIP writer stores files rather than explicit directory records.

Is the ZIP compatible with all unzippers?

The writer emits standard local headers, a central directory and an EOCD record; entries use STORE or fixed-Huffman DEFLATE, CRC32 and the UTF-8 filename flag. That is compatible with macOS Archive Utility, unzip and Windows Explorer for ordinary archives. Password protection and guaranteed ZIP64 support are out of scope, so check those requirements before relying on the output.

What is the manifest for?

The manifest stores paths, compression choices, levels and exclude flags — not file bytes. Download it to keep a repeatable structure, then paste it into the manifest field and click Apply after re-dropping updated files. Entries are matched by full path first and by unique basename second.

References & standards