Download ArticleDownload Article

Want to save space on your computer or make it easy to send a bunch of files at once? Creating a ZIP file compresses one or more files or folders into a single file, which not only keeps you organized, but can also free up space on your hard drive. You can even lock your ZIP files with passwords for fast and easy encryption. This How.com.vn guide will walk you through creating ZIP files and folders on Windows, macOS, and Linux.

Method 1
Method 1 of 4:

Windows

Download Article
  1. How.com.vn English: Step 1 Create a folder...
    Create a folder. The quickest way to create a zip file is to place all of the files that you want to archive into one folder. You can place multiple files and folders into the folder that you are creating the ZIP file from.
    • Rename the folder to whatever you want the ZIP file to be named.
  2. How.com.vn English: Step 2 Right-click on the folder.
    Hover your cursor over the “Send to” option. This will open a new submenu. Select “Compressed (zipped) folder”.[1]
    • You can also select multiple files in your file explorer, right-click on one of them, and then follow the above steps. The resulting ZIP file will contain all of the selected files and will be named after the file that you right-clicked on.
    Advertisement
  3. How.com.vn English: Step 3 Wait for the folder to be created.
    If you are adding a lot of files to the new ZIP file, it may take a few moments to create it. A progress bar will appear as files are added. Once the process is complete, the ZIP file will appear in the same location as the original folder.[2]
  4. Advertisement
Method 2
Method 2 of 4:

Mac OS X

Download Article
  1. How.com.vn English: Step 1 Create a folder.
    The quickest way to create a zip file is to place all of the files that you want to archive into one folder. You can place multiple files and folders into the folder that you are creating the ZIP file from.
    • Rename the folder to whatever you want the ZIP file to be named.
  2. How.com.vn English: Step 2 Right-click on the...
    Right-click on the folder. Click the “Compress” option. The folder will be compressed into a ZIP file. The new ZIP file will be located in the same location as the folder that you compressed.[3]
    • You can also select multiple files in your file explorer, right-click on one of them, and then follow the above steps. The resulting ZIP file will contain all of the selected files and will be named “Archive.zip”.
  3. Advertisement
Method 3
Method 3 of 4:

Linux

Download Article
  1. How.com.vn English: Step 1 Open the terminal...
    Open the terminal. Its symbol looks like a black rectangle with some bright characters on it. On some platforms, it is called Konsole, xTerm, or something similar.
  2. How.com.vn English: Linux terminal make directory.png
    2
    Create a directory. This is done with the mkdir command, which takes the name of the directory as argument. If, for example, you want to create a directory "zipArchive", write mkdir zipArchive.
  3. How.com.vn English: Linux copy files to directory.png
    3
    Move or copy all files that should be in the ZIP file into the directory.
    • Files are moved with the mv command. Moving a file means that it is no longer in its original place, and instead in the place you specified.
    • Copying a file is done with the cp command. It makes a copy of the file in the place you specified, but the same file is still on its original position. Note that you need to use cp -r to copy a directory.
    • Both commands take the original position as first argument, and where to copy or move as second. For example, to move a file called "textToArchive.txt" to the directory "zipArchive", write: mv textToArchive.txt zipArchive
  4. How.com.vn English: Linux zip directory.png
    4
    Zip the directory. This is done with the zip -r command. It takes the name of the zip file as first argument and the name of the folder to archive as second. If you, for example, want to archive the directory "zipArchive" to a zip file called "zipArchive.zip", write: zip -r zipArchive.zip zipArchive. It will print out the names of all files it adds to the archive, so you can check whether everything you want to be included in the archive actually is there.[4]
  5. Advertisement
Method 4
Method 4 of 4:

Password-Protected ZIP File

Download Article
  1. How.com.vn English: Step 1 Download a compression program.
    Newer versions of Windows cannot create password-protected ZIP files without installing additional software. Compression software is available both for free and for purchase, though you don’t need anything fancy to create a protected ZIP. The most popular programs include:
    • 7-Zip[5]
    • IZArc
    • PeaZip
  2. How.com.vn English: Step 2 Create a new archive.
    Use your compression software to create a new ZIP file. Add the files that you want to compress. When you create the ZIP file, you will be given the option to enter a password. You will need to use this password to access this ZIP file in the future.
  3. How.com.vn English: Step 3 Create a password-protected ZIP file in OS X.
    To create a password-protected Zip file in OS X, you can use the Terminal and you don’t need to download any other programs. First, place all of the files that you want to compress into a single folder, and then rename that folder to the name that you want your ZIP file to have.[6]
    • Open the Terminal. This can be found in the Utilities folder in your Applications folder.
      How.com.vn English: Step 3 Create a password-protected ZIP file in OS X.
    • Navigate to where the folder that you want to compress is located.
      How.com.vn English: Step 3 Create a password-protected ZIP file in OS X.
    • Enter the command:
      zip –er <foldername>.zip <foldername>/*
      How.com.vn English: Step 3 Create a password-protected ZIP file in OS X.
    • Create a password. You will be asked to enter your password twice to verify it. Once you have entered the password, the ZIP file will be created.
      How.com.vn English: Step 3 Create a password-protected ZIP file in OS X.
  4. Advertisement


Expert Q&A

Search
Add New Question
  • Question
    What are zip files helpful for?
    How.com.vn English: Luigi Oppido
    Luigi Oppido
    Computer & Tech Specialist
    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
    How.com.vn English: Luigi Oppido
    Computer & Tech Specialist
    Expert Answer
    Think of zip files as a satchel that you can store smaller individual files in for convenience. For example, if you wanted to send someone 30 photo files, you could just compile them in a zip file and then send the one zip file instead of 30 individual files.
  • Question
    Files are not compressed, why?
    How.com.vn English: Community Answer
    Community Answer
    Some files types, such as .JPG, are already compressed so won't compress any further when put in a Zip file.
  • Question
    I'd like to know more about zip files. Is it necessary to create that kind of file?
    How.com.vn English: Johnny Gaming
    Johnny Gaming
    Community Answer
    All it does is compress many files into one smaller folder.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Luigi Oppido
      Co-authored by:
      Computer & Tech Specialist
      This article was co-authored by Luigi Oppido. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 2,407,318 times.
      How helpful is this?
      Co-authors: 16
      Updated: November 21, 2023
      Views: 2,407,318
      Article SummaryX

      1. Create a folder.
      2. Move files to the folder.
      3. Right-click the folder.
      4. Click Compressed (zipped) folder or Compress.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 2,407,318 times.

      Reader Success Stories

      • How.com.vn English: Teokotai T.

        Teokotai T.

        Apr 6, 2017

        "Exactly what I'd asked for. Just straight help, fast and easy, no downloading necessary. "
        Rated this article:
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement