# How to Change the Default Browser Automatically on Mac

Updated: November 24, 2026

- [Default Browser](https://sindresorhus.com/default-browser.md): Switch default browser from your menu bar. Price: $6, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/default-browser?wanted=true). Requires macOS 26 or later. Size: 7 MB. Free older versions for macOS 15: [download](https://sindresorhus.com/default-browser#older-versions). Gumroad rating: 5.0/5 (12 ratings).

URL: https://sindresorhus.com/guides/change-default-browser-automatically-mac

Install [Default Browser](https://sindresorhus.com/default-browser.md), and make a Shortcuts automation that runs its “Set Default Browser” action, like when your Mac joins the Wi-Fi of your office. macOS does not ask you to confirm the change. [Without an app](https://sindresorhus.com/guides/change-default-browser-automatically-mac#without-an-app), you change the browser by hand in System Settings.

## 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’s instructions](https://support.apple.com/125148)

1. Install [Default Browser](https://sindresorhus.com/default-browser.md), and open it one time.
1. In the Shortcuts app, make a shortcut with the “Set Default Browser” action of Default Browser, and choose the browser for work, like Chrome.
1. Make a second shortcut that sets the other browser, like Safari.
1. Add an automation with the “Wi-Fi” trigger for the network of your office. Choose the first shortcut.
1. 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.

- 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](https://sindresorhus.com/velja.md). [How to open links in a specific browser.](https://sindresorhus.com/guides/open-links-in-specific-browser-mac.md)

## 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](x-apple.systempreferences:com.apple.Desktop-Settings.extension)”.
1. 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.](https://sindresorhus.com/guides/change-default-browser-mac.md)
