Zip Command Not Found on Windows? Here's the Fix
In this article
The zip command is not built into Windows, so the fix is to either use the built-in Compress-Archive PowerShell cmdlet, install a real zip utility, or add one to your PATH. The fastest working option is PowerShell's Compress-Archive, which needs no installation. If you specifically need the Unix-style zip command (for scripts, Makefiles, or cross-platform tooling), install a Windows build of Info-ZIP or use Git Bash, then make sure its folder is on your PATH.
What You'll Need
- A Windows 10 or Windows 11 PC (the steps also work on Windows 8.1 with minor menu differences).
- PowerShell 5.1 or later, which ships with Windows 10/11. You can check by opening PowerShell and running
$PSVersionTable.PSVersion. - Administrator rights only if you plan to install software system-wide or edit the system PATH. Editing your user PATH does not require admin rights.
- Optional: an archive tool such as 7-Zip, or a Unix-like environment such as Git Bash or WSL, if you need the literal
zipcommand.
Step-by-Step
- Confirm the error and your shell. Open Command Prompt or PowerShell and type
zip -v. If you see "'zip' is not recognized as an internal or external command" or "zip: The term 'zip' is not recognized", the command is missing. Note which shell you are in: Command Prompt and PowerShell behave differently for some commands, and PowerShell has its own archive cmdlets. - Use the built-in PowerShell method (no install). Open PowerShell (press Win, type PowerShell, press Enter). To compress a folder, run:
Compress-Archive -Path "C:\Users\YourName\Documents\Project" -DestinationPath "C:\Users\YourName\Documents\Project.zip"
To compress specific files, list them with commas:-Path "file1.txt","file2.txt". To update an existing archive, add-Update. To force overwrite, add-Force. This creates a standard .zip file that Windows Explorer and most tools can open. - Test the archive. In File Explorer, double-click the new .zip file. It should open like a folder and show your files. If it does, you have a working zip workflow without the
zipcommand. - Install a real zip utility if you need the exact command. The
zipcommand comes from Info-ZIP. Download a trusted Windows build from the official Info-ZIP project site or install 7-Zip from 7-zip.org and use its7zcommand instead. Avoid random "zip for Windows" downloads from unofficial sites. If you install 7-Zip, the executable is typically atC:\Program Files\7-Zip\7z.exe, and you can call it as7z a archive.zip folder. - Add the tool's folder to PATH. If you installed Info-ZIP or 7-Zip and want to type
zipor7zfrom any folder, add its directory to PATH. Open Start, search for "environment variables", and choose "Edit the system environment variables". In the System Properties window, click Environment Variables. Under User variables, select Path and click Edit, then New, and paste the folder path (for exampleC:\Program Files\7-Zip). Click OK on all windows. Close and reopen your terminal so the new PATH is loaded. - Verify the command. Open a new Command Prompt or PowerShell window and run
zip -v(for Info-ZIP) or7z(for 7-Zip). You should see version information instead of an error. If you still get "not found", the PATH entry is wrong or the terminal was not restarted. - Use Git Bash or WSL as an alternative. If you already have Git for Windows, open Git Bash and try
zip; some Git installations include it, but many do not, so do not rely on it. WSL (Windows Subsystem for Linux) provides a real Linux environment wherezipcan be installed withsudo apt install zip. This is the closest to a native Unix experience, but files are accessed through the Linux filesystem view. - Adjust scripts that call zip. If a script or build tool calls
zip, either install a zip utility and update PATH, or replace the call with PowerShell'sCompress-Archive. For example, replacezip -r out.zip folderwithCompress-Archive -Path folder -DestinationPath out.zip -Force. Test the script afterward, because argument order and overwrite behavior differ.
Common Mistakes
- Assuming zip is built into Windows. It is not. Windows has ZIP support in File Explorer (right-click > Send to > Compressed (zipped) folder), but that is a GUI feature, not a command-line tool.
- Editing PATH but not reopening the terminal. Existing Command Prompt and PowerShell windows keep the old PATH. Always open a fresh window after changing environment variables.
- Adding the wrong folder to PATH. Point PATH at the folder containing
zip.exe, not at the .exe file itself. A common error is addingC:\Program Files\7-Zip\7z.exeinstead ofC:\Program Files\7-Zip. - Mixing up PowerShell and Command Prompt syntax.
Compress-Archiveonly works in PowerShell. In Command Prompt, usepowershell -command "Compress-Archive ..."or install a zip utility. - Downloading from untrusted sites. Unofficial "zip command" downloads can bundle unwanted software. Use the official Info-ZIP project, 7-Zip's official site, or your package manager (winget, Chocolatey) if you use one.
- Expecting identical flags. Info-ZIP's
zip, 7-Zip's7z, and PowerShell'sCompress-Archiveuse different flags. A script written for one will not work unchanged with another.
Tips
- For quick one-off zips, the File Explorer right-click method (Send to > Compressed (zipped) folder) is the least effort and needs no setup.
- Use
Compress-Archive -Updateto add or replace files in an existing archive without rebuilding it from scratch. - If you work in both Windows and Linux, standardize on a tool that exists on both, such as 7-Zip's command line, or call PowerShell from your scripts.
- Keep archive paths simple. Very long paths or special characters can cause failures; quote paths that contain spaces.
- Check the archive after creating it, especially if you plan to send it to someone else. A quick double-click in File Explorer confirms it opens.
Troubleshooting
If zip still is not found after installation, first confirm the executable exists by browsing to the install folder. Then run where zip in Command Prompt or Get-Command zip in PowerShell to see whether Windows can locate it. If those return nothing, the PATH entry is missing or incorrect. If they return a path but the command fails, the file may be blocked or corrupted; reinstall from the official source.
If Compress-Archive fails with an access or path error, check that the destination folder exists and that you have write permission. Close any program that has the destination .zip open. If the source path contains wildcards, quote it properly. For very large folders, the cmdlet can be slow or hit memory limits; in that case use 7-Zip or another dedicated archiver.
If a script still reports "zip not found" after you fixed PATH, the script may be running under a different user account or a scheduled task with its own environment. Set the PATH inside the script or use the full path to the executable. Also check whether the script calls zip from a working directory that no longer exists.
If you installed Git Bash expecting zip and it is missing, that is normal: Git for Windows does not always bundle it. Use WSL or install Info-ZIP separately instead of assuming Git Bash includes it.
Frequently Asked Questions
Is there a built-in zip command in Windows?
No. Windows includes ZIP support in File Explorer and the Compress-Archive PowerShell cmdlet, but there is no native zip executable in Command Prompt.
Can I use Compress-Archive instead of zip in scripts?
Yes, for most zipping tasks. Replace zip calls with Compress-Archive and adjust flags. Note that it runs in PowerShell, so Command Prompt scripts need to invoke PowerShell explicitly.
Why does zip work in Git Bash but not Command Prompt?
Git Bash uses a Unix-like environment with its own PATH. If zip is present there, it is because that environment includes it; Command Prompt uses the Windows PATH, which does not include Git Bash's tools by default.
Do I need administrator rights to add zip to PATH?
Only if you edit the system-wide PATH. Editing your user PATH does not require admin rights and is usually enough for your own account.
What is the safest place to download the zip command for Windows?
Use the official Info-ZIP project site or a well-known archiver such as 7-Zip from its official site. Avoid third-party download portals that bundle extras.
Can I create zip files without installing anything?
Yes. Use File Explorer's Send to > Compressed (zipped) folder, or run Compress-Archive in PowerShell. Both are included with Windows.