Creating archives

How to Create a ZIP or 7z Archive (and Which One to Choose)

Most archive problems start with the sender. A ZIP made with the wrong options, an AES password the recipient cannot open, or a 7z sent to someone without 7-Zip all create work at the other end. This guide shows how to create ZIP and 7z archives on each platform, which settings actually matter, and how to check the result before you send it.

Updated 2026-10-13 · Written and tested by the UnpackNest editorial team (TECCONET)

Choose the format first

If the recipient…SendReason
uses any device and is not technicalZIPOpens without extra software on Windows, macOS, iOS, Android and ChromeOS
needs the smallest possible download7zLZMA2 usually beats ZIP, especially on text and code
needs strong encryption with hidden file names7z (AES-256)Standard ZIP cannot hide names; AES ZIP needs extra tools anyway
works on Linux servers or with source code.tar.gzKeeps Unix permissions and is the norm there

When in doubt, send a ZIP. A slightly larger file that opens everywhere beats a smaller one that needs a support call.

UnpackNest is a reader: its tools open and extract archives but do not create them. The steps below use your operating system or free desktop software.

Windows: create a ZIP

  1. Select the files or folder in File Explorer.
  2. Right-click and choose Compress to ZIP file (Windows 11) or Send to > Compressed (zipped) folder (Windows 10).
  3. Type a name for the new ZIP and press Enter.

Recent Windows 11 versions also offer Compress to… > Additional options, where you can choose 7z or TAR and a compression level. If you do not see it, update Windows or use 7-Zip.

Windows and Linux: create a ZIP or 7z with 7-Zip

  1. Right-click the files, choose 7-Zip > Add to archive… (on Windows 11, first Show more options).
  2. Set Archive format to zip or 7z.
  3. Leave Compression level at Normal unless size matters a lot; Ultra is slower and gains little on photos and videos.
  4. For a password, type it under Encryption and choose AES-256. For 7z, tick Encrypt file names.
  5. To split a big archive, choose a size in Split to volumes, bytes, for example 2G for files that must fit on a FAT32 drive or under an upload limit.
  6. Press OK.

On Linux the same command-line tool is available: 7zz a -tzip project.zip project/ for ZIP, or 7zz a -t7z -mhe=on -p project.7z project/ for an encrypted 7z with hidden names (it prompts for the password).

macOS

  1. Select the files in Finder.
  2. Right-click and choose Compress. macOS creates Archive.zip, or name.zip for a single item.

The built-in option cannot add passwords or create 7z. For those, use Keka: drag files onto the Keka window, choose 7z or ZIP, set a password if needed. In Terminal, zip -er secret.zip folder/ creates a password-protected ZIP, but it uses the weak ZipCrypto method; prefer Keka with AES-256 for anything sensitive.

macOS adds hidden __MACOSX folders and .DS_Store files to ZIPs. Windows users see them as clutter. Keka can exclude them; from Terminal, zip -r project.zip project -x "*.DS_Store" -x "__MACOSX/*".

Linux terminal

Android and iPhone

Settings that actually matter

Do not compress what is already compressed

JPEG photos, MP4 videos, MP3 audio, PDF files and Office documents (.docx, .xlsx) are already compressed. Zipping them saves little, sometimes nothing. Archive them for convenience (one file instead of fifty), not for size. Text, CSV, logs, source code and uncompressed images (BMP, TIFF) compress very well.

Check the archive before you send it

  1. Test it: in 7-Zip choose Test; in a terminal 7zz t archive.7z or unzip -t archive.zip.
  2. Open it in the tool your recipient will use. For a quick, private check of a ZIP or 7z, open it in the UnpackNest ZIP tool or 7z tool and confirm the file list and sizes.
  3. Make sure you did not include private files by accident: a whole Desktop folder, a .git folder, or a configuration file with passwords.
Checking a freshly created ZIP in the UnpackNest ZIP tool before sending: three entries, the expected sizes, and one file test-extracted.
Checking a freshly created ZIP in the UnpackNest ZIP tool before sending: three entries, the expected sizes, and one file test-extracted.

Naming and sending

Frequently asked questions

Is 7z always smaller than ZIP?

Usually, for text and code. For photos and videos the difference is tiny because they are already compressed.

Can I create a RAR file?

Only with WinRAR or the rar command-line tool, both commercial. For most purposes, ZIP or 7z is a better choice for the recipient.

Why can't my recipient open the ZIP I made on a Mac?

Usually an AES password (not supported by Windows Explorer) or non-ASCII names created by an old tool. Re-create it with Keka or 7-Zip.

Related guides