Skip to content
Aback ZIP

How-to · 5 min read · Updated

How to create a ZIP file

Create a ZIP archive from files and folders on Windows, macOS, Linux or in your browser, with the right compression setting, folder structure intact 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.

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