What Is a .ZIP File? (.zip, .zipx)
A .zip file is a compressed archive that bundles one or more files and folders into a single, smaller file. It uses lossless compression, so everything comes back exactly as it was when you extract it. Windows, macOS, iPhone, Android and Chromebooks all open ZIP files without installing anything.
- Extension
- .zip, .zipx
- Full name
- ZIP Compressed Archive
- Type
- Archive file
- MIME type
- application/zip
- Developed by
- Phil Katz (PKWARE)
About ZIP files
ZIP was created by Phil Katz of PKWARE in 1989 and its specification is public, which is why every operating system supports it. Each file inside is compressed separately, usually with the Deflate algorithm, and a central directory at the end lists the contents. That design lets you browse or pull out a single file without unpacking the whole archive.
How much a ZIP saves depends on the contents. Text, spreadsheets and uncompressed images often shrink by half or more, while JPEGs, MP4 videos and other already-compressed files barely change. Many everyday formats are secretly ZIP files: .docx, .xlsx, .pptx, .epub, .jar and .apk are ZIP archives with a particular folder structure inside.
ZIP files can be password-protected. The old ZipCrypto method is weak, while AES-256 encryption (supported by 7-Zip and WinZip) is strong, but the built-in Windows and Mac tools cannot create encrypted ZIPs. Note that file names inside an encrypted ZIP remain visible even when contents are protected.
Is a ZIP file safe to open? Opening the archive itself is generally harmless; the risk is in what is inside. Attackers send ZIPs containing .exe, .js or script files, or Office files with macros. Only extract archives from senders you trust, and be wary of a ZIP that contains a single program when you expected documents.
What ZIP files are used for
- Emailing or uploading many files as one attachment
- Downloading software, fonts, templates and photo sets
- Backing up project folders
- Packaging documents for submission portals that accept one file
- Exports from Google Takeout, Google Drive and other cloud services
How to open a .zip file
Windows
Double-click the ZIP to browse it in File Explorer, or right-click and choose Extract All. 7-Zip is a free alternative for encrypted or damaged archives.
Mac
Double-click to extract it with Archive Utility into the same folder. To create one, right-click files and choose Compress.
iPhone and iPad
In the Files app, tap the ZIP to extract it into a folder next to the archive.
Android
Open Files by Google, tap the ZIP and choose Extract.
Online / any browser
On a Chromebook the Files app opens ZIPs directly; avoid uploading private archives to online unzip sites.
How to convert a .zip file
To convert a ZIP to 7z or TAR, extract it and re-compress: on Windows 11 (version 24H2 or later) right-click the folder and choose Compress to, then pick 7z or TAR, or use 7-Zip on any version.
To make a smaller archive, 7-Zip's 7z format with LZMA2 usually beats ZIP's compression ratio, but recipients may need software to open it.
Renaming a .zip to .rar or .7z does not change its format; the file is still a ZIP.
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming ZIP files
- Give the zip filename the project and date (client-acme-photos-2025-06.zip) instead of Archive.zip or the default name of the first file, so it is recognizable in Downloads folders.
- Avoid spaces and non-English characters in ZIP names and in the names of files inside if the archive will travel between Mac, Windows and Linux; older tools can garble them.
- When splitting a large set into several ZIPs, use zero-padded part numbers (photos-part01.zip, photos-part02.zip) so they sort in order.
- Macs add a hidden __MACOSX folder and .DS_Store files to ZIPs; remove them with a tool like 7-Zip if Windows users are confused by the extra files.
Renaming lots of .zip files? See how to rename a zip file (and the files inside it), use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .rar file is a compressed archive in the proprietary RAR format created by Eugene Roshal and used by WinRAR. Like ZIP, it bundles files into one smaller package, but adds strong AES-256 encryption, recovery records and easy multi-part splitting. Windows 11 can now extract RAR files natively; creating them still needs WinRAR.
A .7z file is a compressed archive created with 7-Zip, the free and open-source archiver by Igor Pavlov. It uses LZMA or LZMA2 compression, which usually produces smaller archives than ZIP, and supports AES-256 encryption including hidden file names. Windows 11 opens and creates 7z natively; Macs need a free app.
A .tar file is a tape archive, a Unix format that bundles many files and folders into one file while preserving names, permissions and timestamps. Plain TAR does not compress; it is usually combined with gzip, bzip2 or xz to make .tar.gz, .tar.bz2 or .tar.xz files. macOS, Linux and Windows 10 and 11 include a tar tool.
A .gz file is a single file compressed with gzip, the GNU compression tool. Most often you will see .tar.gz or .tgz, which is a TAR archive of many files compressed with gzip, the standard way to distribute Linux and open-source software. macOS, Linux and Windows 11 can extract them without extra software.
Frequently Asked Questions
Is a .zip file safe to open?
Opening or browsing a ZIP is generally safe; the danger is in running files from inside it. Do not open .exe, .js, .vbs or macro-enabled Office files from a ZIP you did not expect.
How do I unzip a file on a Mac?
Double-click it. Archive Utility extracts the contents into a folder in the same location.
Why does my ZIP not get smaller?
The files are already compressed, as JPEGs, MP4s and most PDFs are. ZIP cannot shrink them much further.
Can I put a password on a ZIP file?
Not with the built-in Windows or Mac tools. 7-Zip (Windows) and Keka (Mac) can create AES-256 encrypted archives.