When downloading an e-book or digital publication formatted as an EPUB file in Safari on macOS, the browser often triggers an automatic action: it immediately opens the Apple Books application, imports the publication into your library, and steals keyboard focus away from what you were doing. If you are downloading multiple digital textbooks, organising research archives, or using third-party e-readers such as Calibre, this automated behaviour clutters your Books library and interrupts your workflow. Here is how to stop Safari from automatically opening downloaded EPUB files on your Mac.
Why Does Safari Open EPUB Files Automatically?
Safari features a long-standing legacy preference called “Open safe files after downloading”. Apple considers certain file extensions—including pictures, movies, text files, PDF documents, disk images (DMG), and e-books (EPUB)—to be inherently safe from executable code. When this option is active, Safari automatically hands downloaded files over to their default system applications the moment the download transfer completes.
Step-by-Step: Turn Off Automatic File Opening in Safari
The definitive way to stop Safari from launching Apple Books (or any other application) upon downloading a file is to deactivate the “safe files” trigger:
- Launch the Safari browser on your Mac.
- Click on Safari in the top menu bar (next to the Apple icon).
- Select Settings… from the drop-down menu (or press Command + ,).
- In the settings window, ensure you are on the General tab (represented by a light switch icon).
- Look at the very bottom of the General settings page.
- Locate the checkbox labelled Open “safe” files after downloading.
- Click the checkbox to untick it.
- Close the Settings window.
From now on, whenever you download an EPUB book, PDF file, zip archive, or DMG installer, Safari will save the file quietly into your Downloads folder without launching any external application.
How to Change the Default Application for EPUB Files
If you prefer opening EPUB files in dedicated reader applications like Calibre, Kindle Previewer, or Thorium Reader instead of Apple Books, change the system file association in macOS Finder:
- Open Finder and navigate to your Downloads folder.
- Locate any downloaded
.epubfile. - Right-click (or Control-click) the EPUB file and choose Get Info (or press Command + I).
- In the Info inspector window that opens, locate the Open with: section.
- Click the drop-down menu and choose your preferred e-reader software (e.g. Calibre).
- Directly below the drop-down menu, click the Change All… button.
- A confirmation dialogue will ask: “Are you sure you want to change all similar documents to open with the application?” Click Continue.
Double-clicking any EPUB file in Finder will now open it in your chosen e-reader rather than launching Apple Books.
Files Affected by Safari’s “Safe Files” Setting
| File Category | Common File Extensions | Auto-Launch Behaviour When Enabled |
|---|---|---|
| E-Books | .epub |
Launches Apple Books and imports document |
| Archives | .zip |
Unzips archive into a folder via Archive Utility |
| Documents | .pdf, .txt |
Launches Preview or TextEdit immediately |
| Media | .mp3, .mp4, .mov |
Opens in QuickTime Player or Apple Music |
| Disk Images | .dmg |
Mounts disk volume onto your desktop |
Frequently Asked Questions
Will disabling “safe files” prevent me from opening downloads manually?
Not at all. Disabling this setting only prevents Safari from opening files automatically upon completion. You can open any downloaded file at any time by clicking the Downloads button (downward arrow icon) in Safari’s toolbar or navigating to your Downloads folder in Finder.
Is unticking “Open safe files after downloading” better for security?
Yes. Cybersecurity professionals broadly recommend unticking this setting. In the past, malicious actors attempted to bundle malware inside seemingly harmless files that automated triggers could inadvertently unpack. Disabling auto-launch ensures you have full manual control over every file saved to your Mac.
Can I disable auto-opening for EPUB files while keeping it active for ZIP files?
No. Apple designed “Open ‘safe’ files after downloading” as a universal binary toggle covering all designated media, document, and archive types. Unticking it provides clean, predictable download behaviour across all file formats.