Productivity

How to Create and Extract ZIP Files

Updated November 20266 min read
How to Create and Extract ZIP Files: featured image

An email bounces because the attachments are too big. A website asks for “all your documents as one file”. A download arrives as a mysterious file ending in .zip and you are not sure what to do with it. All three problems have the same answer: a ZIP file, which bundles many files into one and usually makes them smaller.

Windows and macOS can both create and open ZIP files without extra software. This guide shows the steps, explains how much space you can expect to save, and covers passwords and safety.

Key takeaways

  • A ZIP file is a container: It holds one or many files and folders in a single package, and it normally compresses the contents so the package is smaller than the originals.
  • Both major systems have it built in: Right-click a file or folder and choose the compress or ZIP option to create an archive, and use Extract All or a double-click to open one.
  • Savings depend on the content: Text and documents shrink a lot, while photos, videos and PDFs are usually compressed already and barely change.
  • Extract before you edit, and be careful with unknown archives: Work with the extracted copy, and open ZIP files only from sources you trust.

What a ZIP file does

A ZIP file has two jobs. First, it bundles items, so a folder of 40 files becomes one attachment that is easy to email, upload or move. Second, it compresses them, replacing repeated patterns with shorter descriptions so the same information takes less space. When you extract the archive, the original files come back exactly as they were.

In a quick test we ran with about 99 KB of article text, the ZIP file came out at roughly 35 percent of the original size. Two JPG photos, on the other hand, stayed at 95 to 99 percent of their size, because the JPG format is already compressed. Your own results will vary with the type of files.

File type Typical effect of zipping Why
Text, CSV, code, logs Large saving Plenty of repeated patterns
Word and Excel documents Small to moderate saving The newer formats are already compressed inside
JPG, PNG, MP3, MP4 Little or no saving Already compressed formats
PDF files Small saving, depends on content Many contain compressed images
Folders with many small files Same size, one convenient package Bundling is the benefit
Computer screen showing how to create a ZIP file with source files on the left and an extracted folder on the right

How to create a ZIP file on Windows

  1. Select the files or the folder: Click one item, or hold Ctrl while clicking to select several.
  2. Right-click and compress: In Windows 11 choose Compress to ZIP file, and in Windows 10 choose Send to, then Compressed (zipped) folder. In Windows 11, you may need to select Show more options first on some versions.
  3. Name the archive: The new .zip file appears next to your selection with a highlighted name, so type a clear name such as 2027-03-Invoices and press Enter.
  4. Check the result: Open the archive and confirm it contains everything you intended before you send it.
Related toolOnline Typing Speed TestTry it

How to extract a ZIP file on Windows

Right-click the .zip file and choose Extract All. Windows suggests a folder with the same name next to the archive, and you can click Browse to choose another place. Leave Show extracted files when complete ticked, then press Extract.

Do not just double-click and work inside the zipped view. Windows lets you open files from inside the archive, but edits may be saved to a temporary place, and some programs fail. Extracting first gives you a normal folder to work with.

How to create and extract a ZIP file on a Mac

To create one, select files or a folder in Finder, right-click, and choose Compress followed by the item name, or the number of items if you selected several. A file called Archive.zip or FolderName.zip appears beside the originals. To extract, double-click the .zip file and macOS places the contents in a folder next to it, using the Archive Utility app.

Monitor showing a compress step on the left and an extract step on the right for ZIP files beside a keyboard

Add a password to a ZIP file

The ZIP creation tools built into Windows do not set a password. If you need one, use a trusted archive program that supports strong encryption, such as the free open-source 7-Zip on Windows, and choose AES-256 encryption when it offers a choice. Older ZIP password methods are weak, so avoid them for sensitive data.

Whatever method you pick, send the password by a different route from the file, for example by text message or phone call and not in the same email. Generate a long random password with our free Password Generator and check it with the Password Strength Checker.

Other archive formats you will meet

You may receive files ending in .7z, .rar, .tar or .gz. They work on the same idea as ZIP, but they need compatible software to open. Windows 11 and recent macOS versions can open some of them, and free tools such as 7-Zip open most. If you have a choice, ZIP is the format everyone can open without installing anything, so use it when sharing with others.

Related toolPomodoro TimerTry it

Open ZIP files safely

  • Check the source: Open archives only from people and websites you trust, because ZIP files are a common way of delivering harmful programs.
  • Look at the file types inside: Be wary of programs and scripts, such as files ending in .exe, .bat or .js, especially if the file name claims to be a document.
  • Do not trust a double extension: A name like invoice.pdf.exe is a program that pretends to be a PDF, so turn on file name extensions in your file manager.
  • Keep security software up to date: Scan archives from unknown sources before opening anything inside them.
  • Be careful with passwords in emails: Messages that ask you to open a protected archive urgently are a classic phishing pattern.

When ZIP helps in daily life

Zip a folder of scanned documents before emailing them to a school or employer, so that nothing gets lost in transit. Bundle a project’s files before you upload them to a website, which reduces the number of uploads to one. Archive finished work into a dated ZIP file to save space and keep your folders tidy. If the result is still too large for email, shrink the pictures first with our free Image Compressor, or combine PDFs into one document with the PDF Merger, which usually works better than zipping them.

If you are learning to manage files in general, see how folders and file names fit together in our beginner computer skills guides, and use the Keyboard Shortcuts Finder for faster copying and selecting.

Troubleshooting

If a ZIP file will not open, the download may be incomplete, so download it again and compare the file size with the one listed by the source. If Windows says that the archive is invalid, try a different tool such as 7-Zip. If extraction fails with a path error, move the archive to a shorter location such as the Desktop and try again, because very long folder names can break extraction on Windows. If a password prompt appears and you do not have one, ask the sender.

Pin for How to Create and Extract ZIP Files

Questions

How do I zip a folder?

On Windows, right-click the folder and choose Compress to ZIP file, or Send to and Compressed (zipped) folder on older versions. On a Mac, right-click the folder and choose Compress. A new .zip file appears next to the folder, ready to email or upload.

How do I unzip a file for free?

Windows and macOS can both do it without extra software. On Windows right-click the file and choose Extract All, and on a Mac double-click the file. For other formats such as 7z or RAR, a free program like 7-Zip can open them.

Does zipping reduce file size?

It depends on what is inside. Text files, spreadsheets with lots of repeated data and logs shrink noticeably, while photos, music, video and many PDFs are already compressed and change very little. Even when the size stays the same, a ZIP file still helps by combining many files into one.

Is it safe to open ZIP files from email?

It is safe only when the sender and the context are trustworthy. Unexpected archives, especially ones that urge you to open them quickly or that contain program files, are a common way to spread harmful software. If you are not sure, contact the sender through another channel before you extract anything.

Found this useful?Share it with someone who will benefit.

Keep Reading