Skip to content
Aback ZIP

How-to · 5 min read · Updated

How to create a ZIP file

Create a ZIP from files and folders on Windows, macOS, Linux or in your browser, with folder structure intact, sensible compression and an optional password.

A ZIP file packs many files and folders into one archive that is easier to email, upload, back up or hand to someone else. Every major operating system can create a basic ZIP, and Create ZIP does it in your browser with a few extras: folder structure, empty folders, compression control and optional AES-256 encryption. Your files are processed locally in your browser and are not uploaded.

Create a ZIP in your browser

  1. Open Create ZIP and drop files or whole folders onto the page, or use the buttons to choose them. Adding a folder keeps its relative paths, so project/src/app.ts stays inside project/src/ in the archive.
  2. Review the file list. Rename or remove anything you do not want to include, and add more files if you missed some.
  3. Choose a compression level: Store, Fast, Balanced or Maximum. With smart compression on (the default), formats that are already compressed, such as JPEG, MP4 or DOCX, are stored as they are, and no file is ever allowed to grow.
  4. Optionally set a password. AES-256 is the strong choice; ZipCrypto exists only for compatibility with older tools (see AES vs ZipCrypto).
  5. Name the archive and create it. When it is ready, download it. Your original files are only read, never changed.

The archive is built in a background Web Worker, so the page stays responsive and you can cancel at any time. How large an archive you can build depends on your device's memory and browser.

Create a ZIP with built-in tools

SystemHow to zipNotes
Windows 11Select the files, right-click and choose Compress to > ZIP File (some versions show Compress to ZIP file).The classic Send to > Compressed (zipped) folder is still available under Show more options.
Windows 10Select the files, right-click and choose Send to > Compressed (zipped) folder.The ZIP appears next to the originals; type a name and press Enter.
macOSSelect the items in Finder, Control-click and choose Compress.One item becomes name.zip; several become Archive.zip. Finder often adds a __MACOSX folder, see how to remove it.
LinuxRun zip -r archive.zip folder/ in a terminal, or use your file manager's Compress option.Install the zip package if the command is missing.

None of the built-in Windows or macOS options let you set a password or choose a compression level. If you need either, use Create ZIP, 7-Zip or the command line.

Choose the right compression level

ZIP files almost always use Deflate, a lossless method that replaces repeated byte patterns with short references. Higher levels search harder for repeats: they are slower and usually only a little smaller.

SettingSpeedResultGood for
Store (no compression)FastestSame size as the input, plus a few bytes per filePhotos, videos, music, PDFs and other already-compressed files
Fast (level 1)FastGood savings on textVery large folders where time matters
Balanced (level 6, default)ModerateClose to the best Deflate can doMixed content; the sensible default
Maximum (level 9)SlowestTypically only a few percent smaller than balancedText, code, CSV and logs you will send many times

Compression is lossless at every level. An archive made with Store and one made with Maximum extract to exactly the same files; only the archive size and the time to build it differ.

What is kept inside the archive

  • Folder structure: relative paths from the folders you added. Every folder gets its own entry, so empty folders survive.
  • File names: stored as UTF-8 and flagged as such, so names like résumé.pdf, 文件.pdf or emoji 📁.txt come out correctly on modern systems.
  • Modification times: each file's last-modified time is stored. The classic ZIP timestamp has a 2-second resolution, so an extended timestamp field is added to keep the exact second.
  • Duplicates: if two files would end up at the same path, the second is renamed to report (1).pdf instead of being dropped. Names that differ only in letter case count as duplicates, because Windows and macOS cannot store both in one folder.
  • Empty files: zero-byte files stay zero-byte files.

Tips for archives that open everywhere

  • Avoid characters Windows does not allow in names: \ / : * ? " < > |, and names that end in a dot or a space.
  • Keep full paths reasonably short. Some Windows tools still fail on paths longer than 260 characters.
  • Use AES-256 for anything sensitive, and tell the recipient they may need 7-Zip, Keka or another modern app to open it.
  • If the archive is too big to send, split it into parts that each open on their own.
  • Before sending something important, run it through Test ZIP Integrity.

Plan the archive before you build it

The shape of the finished ZIP is decided before compression starts. Paths are stored relative to the items you add, so decide whether the recipient should see a tidy top-level folder or a flat list of files. Changing your mind afterwards means rebuilding the archive.

  1. Add a parent folder when you want its name inside the archive. Dropping project/ produces project/src/app.ts; dropping the files inside it produces src/app.ts at the root.
  2. Remove anything you would not want to hand over. Review the queue rather than deleting files from your disk: removing an item from the list never touches the original.
  3. Turn on the per-item option if you need one ZIP per top-level file or folder, for example when a client expects a separate archive for each deliverable.
  4. Choose the timestamp policy. The default keeps each file's modification time; fixed timestamps make the same inputs produce the same archive, which matters for reproducible builds.

An archive comment can be added in the advanced options. Some tools show it when they open the ZIP, but not all do, and operations that rebuild the archive may drop it.

Check the ZIP before you send it

Creation is fast, so a short verification pass costs little and catches the mistakes that are embarrassing later. None of these checks uploads the archive.

  1. Open the result in ZIP Viewer and confirm the entry count, total uncompressed size and folder tree.
  2. Look for unexpected entries such as __MACOSX, .DS_Store or a dependency folder you forgot to exclude.
  3. Run Test ZIP Integrity to decompress every entry and check its CRC-32.
  4. Extract one large and one small file and open them, especially if the archive crossed 4 GB and was written with ZIP64.
  5. If the recipient uses another operating system, check a Unicode name such as résumé.pdf and a name with a space.
unzip -l archive.zip        # list entries and sizes (macOS, Linux)
zipinfo -t archive.zip      # check the archive structure
tar -tf archive.zip         # list a ZIP in Windows PowerShell or Linux

When creation goes wrong

What you seeLikely reasonFix
A __MACOSX or .DS_Store entry appearsmacOS Finder adds metadata when it zipsBuild the ZIP in the browser instead, or clean an existing one with Clean ZIP.
A name comes out as report (1).pdfTwo inputs had the same path, so the second was renamedRead the rename list in the result panel; rename the files first if you need different names.
The archive is nearly as large as the inputsThe files were already compressedExpected behaviour; see How to compress a ZIP file.
A tool reports a path that is too longFull paths over about 260 charactersShorten folder names or add the files from closer to the archive root.
File Explorer cannot open a password-protected resultAES-256 is not supported by Windows' built-in extractorGive the recipient 7-Zip or Keka, or use ZipCrypto only when compatibility matters more than strength.

Tools for this

Frequently asked questions

No. The archive is built by JavaScript running in your browser, in a Web Worker on your device. File names and contents are not uploaded or sent anywhere.

More guides