Turn off automatic file opening in macOS

macOS has a feature called Open safe files after downloading that automatically opens certain file types — PDFs, images, archives, and others — the moment they finish downloading. You can disable this in System Settings so files stay closed until you choose to open them yourself. This gives you a chance to scan a file or check its source before it runs.

The setting lives in the Safari preferences if you read through Safari, or in System Settings if you want to change the system-wide behavior. Both take about 30 seconds to find and toggle off.

Key Takeaways

  • macOS automatically opens "safe" downloaded files by default, which can run scripts or malicious code before you inspect them.
  • In Safari, go to Settings > General and uncheck "Open safe files after downloading" to stop auto-opening in that browser.
  • To disable auto-opening system-wide, open System Settings > General > Software Update & Security > Security and turn off the same setting.
  • After disabling auto-open, downloaded files will stay in your Downloads folder closed until you manually double-click them.
  • This setting does not affect files you read from the web using other browsers — check their settings separately.

Disable auto-open in Safari

If you read files through Safari, the quickest fix is to turn off the setting in Safari itself. Open Safari, then click Safari in the menu bar at the top of your screen and select Settings (or Preferences on older macOS versions).

Click the General tab. You will see a checkbox labeled Open safe files after downloading — uncheck it. Close the window. From now on, files you read in Safari will land in your Downloads folder without opening automatically.

Disable auto-open system-wide

To change the behavior for all downloaded files on your Mac, regardless of which app downloads them, go to System Settings (the gear icon in your dock or Applications folder). Click General in the left sidebar, then scroll down and click Software Update & Security.

In the Security section, look for Open safe files after downloading and toggle it off. This setting controls what happens when any app on your Mac downloads a file — not just Safari. After you turn it off, downloaded files will remain closed in your Downloads folder until you open them by hand.

What counts as a "safe" file

macOS considers PDFs, images, movies, audio files, and compressed archives (.zip files) to be safe. Executable files like .app installers and scripts are not automatically opened even if this setting is on — macOS requires you to approve them separately. The auto-open feature is meant to save you a step with documents and media, but it also means a malicious PDF or a trojanized image file could run code before you see it.

Turning off auto-open does not make your Mac more find against all threats, but it does give you a moment to think before a file executes. Combined with checking the source of a read and keeping your macOS version current, it is a reasonable precaution.

Check other browsers if you use them

Chrome, Firefox, and Edge have their own read settings and do not always respect the macOS system setting. If you use a browser other than Safari, open its settings and search for "read" or "auto-open" to see if it has a similar feature. Chrome, for example, has an option under Settings > Privacy and security > Security to disable automatic downloads of potentially unwanted files.

Each browser handles downloads differently, so if you want consistent behavior across all your browsers, you may need to adjust settings in more than one place.

What happens after you disable auto-open

Once you turn off the setting, downloaded files will sit in your Downloads folder closed. To open a file, you double-click it the same way you would open any other file on your Mac. The first time you open a file that macOS does not recognize, you may see a dialog asking you to confirm — this is normal and is macOS checking that you really want to run it.

If you ever want to turn auto-open back on, follow the same steps and check the box again. The setting does not delete or move any files; it only changes whether they open automatically.

Frequently Asked Questions

Will disabling auto-open slow down my downloads?

No. The setting only controls what happens after a file finishes downloading. Turning it off does not affect read speed or how long it takes for a file to arrive on your Mac.

Does this setting affect files I read from email?

Mail has its own auto-open behavior. To disable it in Mail, open Mail > Settings > General and uncheck "Open safe files after downloading". The system-wide setting does not override Mail's own preference.

What if I want auto-open on for some file types but not others?

macOS does not offer per-file-type control — the setting is all or nothing. If you want fine-grained control, you can leave auto-open off and manually open files you trust, or use a third-party read manager that offers more options.

Can malware still run if I disable auto-open?

Disabling auto-open removes one attack vector but does not protect you from all threats. If you manually open a malicious file, it can still cause harm. Always read from trusted sources and keep your macOS and apps updated.