Skip to Content
Sindre Sorhus
Back to Shortcutie

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

  1. Install Shortcutie, and open it once.
  2. In your shortcut, add the “Get Active Browser Tab” action of Shortcutie.
  3. Leave the browser empty to use your default browser, or click it and choose a browser.
  4. Use the result, “Browser Tab”, in the next action. Click it, and choose “URL” or “Title”.
  5. 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
Updated
September 2026
Gumroad rating
4.9/5 (27 ratings)

More about Shortcutie

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:

AppleScript
tell application "Google Chrome" to return URL of active tab of front window

If the shortcut cannot run the script, choose “Shortcuts › Settings”, 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.