Files
How to create a ZIP file on any device
Every built-in way to make a ZIP on every major platform, plus what to do when you are on a locked-down machine with no archive tool installed.
Published · 8 min read
Every major operating system ships with a ZIP tool already installed, and almost none of them label it clearly. That is the main reason people search for "how to make a zip file" when the answer is two clicks away. This guide covers the built-in route on each platform and what to do when you are on a locked-down laptop where the right-click menu has been trimmed.
A word on what a ZIP is, because it explains most of the behaviour you will see. A ZIP is a container holding your files plus a directory recording each name, size and offset, and the contents are compressed with DEFLATE, which is lossless. That also means the archive is only as interesting as what is inside it, so a ZIP full of JPEGs will barely shrink, because JPEGs are already compressed internally.
Windows: three ways, one of them new
On Windows 11, select your files in File Explorer, right-click, and choose Compress to ZIP file. You get an archive named after the selected item, which you can rename straight away. On Windows 10, and on Windows 11 machines still showing the older menu, the wording differs:
- Select the files or folder you want to zip.
- Right-click and choose Send to, then Compressed (zipped) folder.
- Rename the new archive, since it inherits the name of the first selected item.
The third route works on every version. Right-click empty space inside the folder you are working in, choose New, then Compressed (zipped) folder. An archive appears with its name ready to edit, and you can drag files into it, which is often the quickest way to collect loose files from several locations.
Two limits are worth knowing. Explorer cannot create a password-protected ZIP, so encryption means different software. And the archive Explorer produces is a classic ZIP, which caps the whole thing at 4 GB by the ZIP32 format. For anything larger you need a tool that writes ZIP64, or you need to split the job.
macOS: right-click and Compress
Select one or more items in Finder, right-click, and choose Compress. You get Archive.zip when you selected several things, or name.zip when you selected one. To name the archive up front, use File > Compressinstead, which prompts before it writes anything. Finder also has no option to create a password-protected archive, so encryption on a Mac means the Terminal or a third-party tool.
The command-line route gives you far more control, since macOS is built on a Unix base and includes the zip utility. The command is zip -r archive.zip folder/, where -r means recursive, so subfolders are included. Add -e to be prompted for a password, or -0 to store files without compressing, which is useful when everything inside is already compressed.
Linux: the zip command
Desktop environments vary, but the command line is consistent across distributions. To zip a directory and keep its structure the command is zip -r archive.zip folder/. Common variations worth having to hand: zip -r9 archive.zip folder/ forces maximum compression, zip -j archive.zip folder/*.txt junks the paths and stores every file at the top level, and zip -s 2g -r split.zip folder/ produces a multi-part archive of roughly 2 GB per piece.
iPhone and iPad: long-press, then Compress
Zipping on iOS is possible but the placement is not obvious, because it is not in the Share sheet. Open the Files app, browse to the item, and long-press the file or folder. In the menu that appears, tap Compress, and a new .zip appears in the same folder. To zip several items at once, tap Select in the top corner, tick the files you want, then long-press any one of them and choose Compress.
Two honest limitations. The built-in tool offers no compression level, no password option and no way to name the archive before it is created. And if the menu has no Compress entry, you are most likely looking at a file stored with a third-party provider rather than on the device or in iCloud Drive; copy it to On My iPhone first, where the option is always available.
Android: it depends on your file manager
Most manufacturers ship a file manager with a built-in Compress option. On a Samsung device, open My Files, long-press a file or folder, tap More and then Compress. Other manufacturers use similar wording, usually reachable from a long-press menu or an overflow button.
Google's own Files by Google app is the exception that catches people out. It browses and cleans up storage well, but you cannot create a ZIP with it, so a phone that relies on it alone has no built-in way to compress a folder. The workarounds are to install the manufacturer's file manager if one exists for your device, install a general purpose file manager that handles archives, or zip the folder in a browser instead.
When you have no archive tool at all
Locked-down work machines, managed Chromebooks and borrowed computers often have the right-click menu stripped out by policy, and the files are on the machine you cannot modify, so zipping them elsewhere is not an option.
This is where a browser-based ZIP creator earns its place. It loads like any web page, then reads your files with the browser's file API and compresses them with a library running inside the tab, writing the finished archive back to your disk. Nothing is uploaded, so it works on a machine where installing software is forbidden. There is no upload size limit to hit either, though a single classic ZIP still cannot exceed 4 GB.
Whichever route you take, check the archive before you send it. One folder with twenty files should extract to one folder with twenty files, not to twenty loose files in someone else's Downloads directory.
Tools mentioned in this guide
Each of these runs in your browser. Nothing is uploaded, and none of them asks you to create an account.
- All Files to ZIP — Compress any files or an entire folder into one ZIP - nothing leaves your device.
- Extract ZIP — Open a ZIP archive, inspect its contents and download what you need.
- Compress Image — Shrink photos to a target size without visibly losing quality.
- Compress PDF — Shrink scanned and image-heavy PDFs while keeping them readable.