Back to blog

Auto Unzip Files in a Folder, or Extract Many ZIPs at Once

Auto unzip files on Windows and Mac: why only Safari does it, how to extract many ZIPs at once with 7-Zip, tar or Terminal, and how to unzip new ZIPs as they arrive.

November 19, 2026
File Arbor Team

Safari is the only built-in tool on Windows or macOS that will automatically unzip files, and it only unzips the archives it downloads itself. Windows unzips nothing on its own. To extract a folder full of ZIPs at once you need 7-Zip, a one-line command or Finder; to unzip new ZIPs as they arrive you need a tool that watches the folder.

This guide covers both jobs on Windows and Mac. The commands use tar, which ships with Windows and macOS, so there is nothing to install for the one-off route. For the automatic route we compare four folder-watching tools, including File Arbor, the rule-based organizer we make, which runs that same tar on every new ZIP.

Does Windows or Mac Unzip Files Automatically?

Only Safari does. Apple's own Safari guide says it "decompresses files such as .zip files after it downloads them", through a setting called Open "safe" files after downloading in Safari → Settings → General. It is on by default, which is why ZIP files from Safari turn into folders before you touch them. Untick it if you'd rather keep the ZIP.

Everything else leaves archives alone:

  • Chrome, Edge and Firefox save the ZIP and stop there, on both systems.
  • Windows has no setting that unzips downloads or files added to a folder. File Explorer extracts one archive at a time: right-click it, choose Extract All…, then Extract.
  • On a Mac, double-clicking a ZIP in Finder expands it, and the unzipped item appears in the same folder as the archive. Nothing happens until you do.

So "automatic" means one of two things. Either you extract a backlog of archives in one go, or a program watches a folder and unzips each new ZIP when it lands. The next two sections do the first; the rest of the guide does the second.

Unzip Multiple Files at Once on Windows 11

File Explorer won't extract a batch of archives in one step. These three ways do, and each gives every ZIP its own folder.

7-Zip (free, no typing). Install 7-Zip, select all the ZIP files in File Explorer, right-click, open the 7-Zip menu (on Windows 11 it may sit under Show more options) and choose Extract to "*\". The asterisk stands for each archive's name, so invoices.zip lands in invoices\. If an archive already holds a single folder with its own name, 7-Zip doesn't nest a second one. 7-Zip also reads RAR and 7z.

Command Prompt with tar. Windows includes tar, a command-line tool Microsoft documents as able to extract .zip and .7z archives. List the archives first, then run the loop:

cd /d "%USERPROFILE%\Downloads"
dir /b *.zip
for %f in (*.zip) do (mkdir "%~nf" & tar -xf "%f" -C "%~nf")

%~nf is the file name without .zip, so each archive gets a folder with its name. Typed straight into Command Prompt, the variable takes one percent sign. In a .bat file it needs two: %%f and %%~nf.

PowerShell with Expand-Archive. This one reads ZIP only, and it stops with an error rather than overwrite files that are already there:

Get-ChildItem -Path "$HOME\Downloads" -Filter *.zip | ForEach-Object {
  Expand-Archive -LiteralPath $_.FullName -DestinationPath (Join-Path $_.DirectoryName $_.BaseName)
}

Run Get-ChildItem -Path "$HOME\Downloads" -Filter *.zip on its own first to see which files the loop will touch. All three leave the ZIP files in place, so you can check the results before you delete anything.

Unzip Multiple Files at Once on a Mac

Finder. Select all the ZIP files and press Command-O, or right-click and choose Open. Each archive expands next to itself, one after another. With a few dozen archives that is all you need.

Terminal. For hundreds of archives, or to give each one a folder named after the ZIP, use ditto, which is built into macOS:

cd ~/Downloads
ls *.zip
for f in *.zip; do ditto -x -k "$f" "${f%.zip}"; done

ls shows the archives the loop will touch. ditto -x -k extracts a ZIP and creates the destination folder if it doesn't exist, and ${f%.zip} is the file name without .zip. The original ZIP files stay where they are.

Unzip New ZIP Files Automatically as They Arrive

A one-off loop clears today's backlog. Tomorrow's downloads need a program that watches the folder. These four do it, each in its own way:

File ArborHazelFile JugglerDropIt
SystemsWindows, MacMacWindowsWindows
How it unzipsRun command action with the system's tarBuilt-in Unarchive actionBuilt-in extract actionBuilt-in Extract action
FormatsZIP; 7z too on WindowsNot listedZIP and RAR, multipart RAR included38 formats, including ZIP, 7Z and RAR
When it reactsAs each file finishes arriving (Auto Mode)As files arriveWhen the download is completeScans watched folders at a set interval
The archive afterwardsMoved by the same commandMoved to the TrashSent to the Recycle Bin by a second action—
Price$24.99 one-time (Pro)$42One-time licenseFree

A few notes from each vendor's own pages, checked in November 2026:

  • Hazel's Unarchive action decompresses the file and moves the original archive to the Trash, and later actions in the same rule work on what came out. On a Mac it is the shortest route.
  • File Juggler has a ready-made guide for this exact job: extract archives in the download folder, then send the archive to the Recycle Bin. If extraction fails, the next action doesn't run, and it waits until a multipart archive is complete.
  • DropIt is free and handles the most formats. It checks monitored folders on a timer rather than the moment a file lands, and its latest version, 8.5.1, dates from 2018.
  • File Arbor has no extract action of its own. Its Run command action hands each new ZIP to the tar that is already on your computer, and it runs the same rule on Windows and Mac. The shell command guide covers that action in general.

Two built-in routes also exist, with catches. A Mac Folder Action can run a shell script on new files, but it can fire while a browser is still writing the download and miss the final file, as our guide to moving files automatically explains. On Windows, Task Scheduler can run the PowerShell loop above every hour, which unzips on a timer and meets the same ZIP files again on every run unless the script moves them.

Set Up an Auto-Unzip Folder in File Arbor

The setup below watches Downloads, extracts every new ZIP into a subfolder called Unzipped, then moves the ZIP into that subfolder too, so ZIP files stop piling up in Downloads. Run command is part of File Arbor Pro, and the Microsoft Store version can't run commands, so install File Arbor from the download page.

  1. Make the folder for extracted files. Inside Downloads, create a folder named Unzipped. The rule extracts into it and moves each finished ZIP there.
  2. Watch Downloads. In File Arbor, click Add Folder and choose your Downloads folder.
  3. Add the rule. Create a rule with Files with extension set to zip. Under Then, choose Run command and enter the line for your system.

On Windows:

tar -xf {filePath} -C Unzipped && move /y {filePath} Unzipped

On a Mac:

tar -xf {filePath} -C Unzipped && mv {filePath} Unzipped/

File Arbor puts the ZIP's full path in place of {filePath} and quotes it for you, so names with spaces work. The command runs inside the watched folder, which is why Unzipped needs no full path. && moves the archive only if tar finished without an error, so a ZIP that fails stays in Downloads where you will see it.

  1. Test it on one archive. Click Test. File Arbor runs the command for real on one ZIP in Downloads and shows the exit code, the output and how long it took. Exit code 0 means the archive was extracted and moved.
  2. Turn on Auto Mode. Save the rule. On the Rules page, every folder tries the rules from the top of the list, and the first match handles the file. Drag the ZIP rule above any rule that moves archives, such as the built-in Archives rule, then switch on Auto Mode.

From then on, a ZIP is extracted as soon as it has stopped growing. Chrome's .crdownload and Firefox's .part files don't match a zip rule, so nothing touches a half-finished download. Every run, failed ones included, appears in History with the command's output.

This rule pairs well with the rest of a Downloads folder setup: put the unzip rule first, and let your other rules sort what stays at the top of Downloads.

Why Didn't My ZIP File Unzip?

Most failures come from the archive, not from the rule. File Arbor shows them in History as Command failed or Timed out, with tar's own message underneath.

  • It is password-protected. tar has no way to ask for the password, so the command fails and the ZIP stays put. Extract it by hand with 7-Zip or Archive Utility.
  • It took longer than 30 seconds. File Arbor stops a command after 30 seconds, and the run counts as failed. Keep the rule for everyday downloads and extract very large archives by hand.
  • It isn't really a ZIP. A file renamed to .zip, or a download that broke off, makes tar stop with an error about the archive format.
  • Windows found a different tar. If tar --version in Command Prompt doesn't mention bsdtar, another program has put its own tar ahead of the Windows one in your PATH. Write the full path, C:\Windows\System32\tar.exe, in the command instead.
  • Files with the same name were already in Unzipped. tar replaces them without asking. Give the subfolder a fresh name if older extracted files matter.

A failed command is tried again on the next run, so a ZIP that can never be extracted keeps failing until you move it out of the watched folder.

Which Setup Fits Your Folder?

  • "I have 200 ZIPs from an old drive." Run the 7-Zip, Command Prompt or Terminal method once. No watcher needed.
  • "Safari unzips everything and I want the ZIPs." Untick Open "safe" files after downloading. That's the whole fix.
  • "Downloads on my Mac should unzip by themselves, and I already own Hazel." Use Hazel's Unarchive action.
  • "I'm on Windows and want unzipping with no commands." File Juggler and DropIt both have an extract action built in; DropIt is free but works on an interval.
  • "I use Windows and a Mac and want the same rule on both." Use File Arbor with the tar command for each system.

FAQ

Can Windows unzip files automatically?

No. Windows has no setting that unzips downloads or files added to a folder. You extract each archive yourself with Extract All, run a tar or PowerShell command over a whole folder, or use a folder-watching tool such as File Juggler, DropIt or File Arbor that extracts new archives when they arrive.

How do I stop my Mac from unzipping downloads automatically?

Open Safari, go to Settings, then General, and untick Open safe files after downloading. Safari then leaves ZIP files as they are. Chrome and Firefox never unzip downloads on their own, so Safari is the first place to check when ZIP files keep opening.

How do I unzip multiple files at once on Windows 11?

Install 7-Zip, select all the ZIP files in File Explorer, open the 7-Zip menu and choose the Extract to option that shows an asterisk; each archive gets a folder named after it. Without extra software, a one-line loop in Command Prompt runs the tar command built into Windows on every ZIP in the folder.

Can I unzip multiple files at once on a Mac?

Yes. Select all the ZIP files in Finder and press Command-O. Each archive expands into the same folder it is in, one after another. For hundreds of archives, a short Terminal loop with ditto puts each one into a folder named after the ZIP.

Does File Arbor have an unzip action?

No. File Arbor has no built-in extract action. Its Run command action, part of Pro, runs the tar program that ships with Windows and macOS on each new ZIP file, then moves the archive aside. The Microsoft Store version can't run commands, so use the version from filearbor.com.

One Folder, Unzipped for Good

Clear the backlog with one of the loops above, then decide whether new ZIPs deserve a watcher. If they do and you want the same rule on Windows and Mac, download File Arbor, add Downloads, and paste in the tar line for your system.