Skip to Content
Sindre Sorhus
Back to Default Browser

Updated

How to Change the Default Browser Automatically on Mac

By Sindre Sorhus, who makes the Default Browser app

With Default Browser

On macOS 26 and later, the Shortcuts app can run a shortcut when something happens on your Mac, like when it joins a Wi-Fi network, or at a time of day. Apple

  1. Install Default Browser, and open it one time.
  2. In the Shortcuts app, make a shortcut with the “Set Default Browser” action of Default Browser, and choose the browser for work, like Chrome.
  3. Make a second shortcut that sets the other browser, like Safari.
  4. Add an automation with the “Wi-Fi” trigger for the network of your office. Choose the first shortcut.
  5. Add one more automation, like at 17:00 on weekdays (“Time of Day”), and choose the second shortcut.

Default Browser changes the browser without the confirmation of macOS, so the automation runs without you. You can also switch the browser from the menu bar of Default Browser, or with a keyboard shortcut.

Tips

  • The “App” trigger can set a browser when an app opens, like your work chat app.
  • Default Browser also has a Focus Filter, but Focus Filters do not work on macOS 26.5 and later, because of a bug in macOS.
  • To choose the browser for each link, not for all links, use Velja. How to open links in a specific browser.

Get Default Browser

Switch default browser from your menu bar

$6, one-time purchase, plus tax where applicable

Requires
macOS 26 or later
Updated
September 2026
Gumroad rating
5.0/5 (12 ratings)

More about Default Browser

Without an app

macOS has no setting that changes the default browser by itself, and Shortcuts has no action for it. Change it by hand:

  1. Open “System Settings › Desktop & Dock”.
  2. Choose the browser in “Default web browser”.

This is enough if you change the browser now and then. More ways to change the default browser.