Open URL Links in Specific Web Browsers
In this article
This guide shows you how to make certain website links automatically open in a designated browser—for example, keeping work links in Chrome and personal links in Firefox. You can achieve this per-link, per-site, or system-wide using built-in operating system settings or browser extensions. No advanced technical skills are required; you just need your preferred browsers installed and a few minutes to configure the rules.
What You'll Need
- Two or more web browsers installed (e.g., Chrome, Firefox, Edge, Safari)
- Access to your operating system's settings (Windows, macOS, or Linux)
- Optional: a browser extension like "Open in Specific Browser" or "Browser Chooser"
Step-by-Step
- Decide which browser should handle which links. For example, you might want all Google Docs links to open in Chrome and all YouTube links in Firefox. Write down the domains or URL patterns you want to redirect.
- Set your default browser (if needed). The default browser handles links that don't match any custom rule. On Windows, go to Settings > Apps > Default apps > Web browser. On macOS, open System Settings > Desktop & Dock > Default web browser. Choose the browser you want as your fallback.
- Use a browser extension for per-site rules (easiest method).
- Open your default browser and install an extension like "Open in Specific Browser" (available for Chrome and Firefox).
- Click the extension icon and select "Add rule."
- Enter the domain (e.g., youtube.com) and choose the target browser from the dropdown.
- Save the rule. Now, when you click a link to that domain, the extension will prompt you or automatically open it in the chosen browser.
- Use Windows' built-in "Set associations by app" (for Windows 10/11).
- Go to Settings > Apps > Default apps.
- Scroll down and click "Set associations by app."
- Select a browser (e.g., Chrome), then click "Manage."
- You'll see a list of link types (HTTP, HTTPS, etc.). You can change each one to a different browser, but this works per protocol, not per domain. For domain-level control, use the extension method.
- Use macOS's "Open with" per link (limited).
- Right-click a link in Safari and select "Open Link in New Window"—but that doesn't choose a browser. For a true per-link choice, copy the link, then right-click your browser icon in the Dock and select "Open URL" (if supported). A more practical approach is to use a third-party tool like "Choosy" (paid) or the extension method above.
- Use a bookmarklet for manual selection.
- Create a bookmark in your browser with the following JavaScript code as the URL:
javascript:location.href='firefox://open?url='+encodeURIComponent(location.href);(replace 'firefox' with 'chrome' for Chrome, 'edge' for Edge). - When on a page you want to open in another browser, click the bookmarklet. This works only if the target browser supports URL schemes (Chrome, Firefox, Edge do; Safari does not).
- Create a bookmark in your browser with the following JavaScript code as the URL:
- For Linux users: use xdg-open with custom rules.
- Edit the file
~/.config/mimeapps.list. - Add lines like
x-scheme-handler/http=firefox.desktopto set the default for all HTTP links. For per-domain, you'd need a script or a browser extension.
- Edit the file
Common Mistakes
- Setting a per-protocol rule instead of per-domain. Windows' association settings only let you assign browsers to HTTP/HTTPS as a whole, not to specific sites. If you want youtube.com to open in Firefox but everything else in Chrome, you must use an extension.
- Forgetting to save the extension rule. Some extensions require you to click "Add" or "Save" after entering the domain; otherwise the rule is lost.
- Using the wrong URL scheme in a bookmarklet. For example,
chrome://openis not a valid URL scheme. Usegooglechrome://orfirefox://as shown in the step above. - Assuming Safari can be targeted by bookmarklets. Safari does not support custom URL schemes for other browsers, so the bookmarklet method won't work on macOS with Safari as the source browser.
Tips
- Test with a simple domain like example.com before adding many rules.
- Use wildcard patterns if your extension supports them (e.g.,
*.google.comto include docs.google.com and mail.google.com). - Keep your default browser as the one you use most often, so most links open there without prompting.
- If you use multiple devices, remember that these rules are per-device; you'll need to set them up on each computer.
- For a temporary switch, right-click a link and choose "Copy link address," then paste it into the address bar of the target browser.
Troubleshooting
- The link still opens in the wrong browser. Check that the extension is enabled and the rule is active. Also, ensure the target browser is installed and not set to "ask" mode. Restart the browser after adding rules.
- The bookmarklet does nothing. Verify the URL scheme is correct for your target browser. For Chrome, use
googlechrome://; for Firefox,firefox://; for Edge,microsoft-edge://. Also, some browsers block these schemes for security—try a different method. - Windows association settings don't show a "Manage" button. In some Windows versions, you may need to click on the browser name itself to change associations. Look for "Choose default apps by link type" instead.
- The extension asks every time instead of automatically opening. Check the extension's settings—some have a "prompt" mode. Switch to "automatic" or "silent" mode.
- On macOS, the "Open with" option is greyed out. That's normal; macOS doesn't allow per-link browser selection natively. Use a third-party tool or the extension method.
Frequently Asked Questions
Can I make all links from a specific website open in a different browser?
Yes, the browser extension method is perfect for this. You add a rule for that domain, and all links from that site will open in the chosen browser.
Will these rules work across all devices?
No, each device has its own settings and extensions. You'll need to configure the rules on each computer or phone separately.
Can I use this to open links in a private/incognito window?
Some extensions support launching a private window. Check the extension's options—if not, you can manually open the link in a private window.
Does this work on mobile phones?
Partially. Android allows you to set default apps for links, but per-domain rules require apps like "Link Redirector" or "Better Open With." iOS does not allow changing default browsers for specific domains; you can only set a global default.
Is there a way to do this without installing extensions?
On Windows, you can use a small script or a tool like "Browser Chooser" (free). On macOS, you can use Automator to create a service that opens the current URL in another browser, but it's less seamless.
What if I want to open a link manually in a different browser, just once?
Right-click the link, copy the address, then open your target browser and paste it into the address bar. Or use the bookmarklet method for a one-click transfer.