Updated
How to Get the URL of the Current Browser Tab in Shortcuts on Mac
By Sindre Sorhus, who makes the Shortcutie app
With Shortcutie
- Install Shortcutie, and open it once.
- In your shortcut, add the “Get Active Browser Tab” action of Shortcutie.
- Leave the browser empty to use your default browser, or click it and choose a browser.
- Use the result, “Browser Tab”, in the next action. Click it, and choose “URL” or “Title”.
- Run the shortcut. The first time, macOS asks if Shortcutie can control the browser. Click “Allow”.
It works with Safari, Chrome, Edge, Brave, Opera, Vivaldi, Arc, Orion, Atlas, and other browsers that are made on Chromium. It does not work with Firefox and the browsers made on it, like Zen, or with the DuckDuckGo browser.
Tips
- To use the browser in front, not the default browser, put the “Get Active Browser” action before it.
- To run JavaScript on the page of the tab, use the “Run JavaScript on Active Browser Tab” action.
Get Shortcutie
Power up the Shortcuts app on Mac
$10, one-time purchase, plus tax where applicable
- Requires
- macOS 26 or later
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- September 2026
- Gumroad rating
- 4.9/5 (27 ratings)
Without an app
For Safari, the Shortcuts app on Mac has the “Get Current Web Page from Safari” action.
For Chrome, add the “Run AppleScript” action, and replace its text with:
tell application "Google Chrome" to return URL of active tab of front window
If the shortcut cannot run the script, choose click “Advanced”, and turn on “Allow Running Scripts”. For another browser made on Chromium, change the name of the app, like "Brave Browser". You need one script for each browser. Shortcutie uses your default browser, and gives the title too.
