# How to Get the URL of the Current Browser Tab in Shortcuts on Mac

Updated: November 24, 2026

- [Shortcutie](https://sindresorhus.com/shortcutie.md): Power up the Shortcuts app on Mac. Price: $10, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/shortcutie?wanted=true), [Setapp](https://go.setapp.com/stp181?refAppID=1814&utm_medium=vendor_program&utm_content=button). Requires macOS 26 or later. Size: 9 MB. Free older versions for macOS 15: [download](https://sindresorhus.com/shortcutie#older-versions). Gumroad rating: 4.9/5 (27 ratings).

URL: https://sindresorhus.com/guides/shortcuts-get-current-tab-url-mac

Add the “Get Active Browser Tab” action of [Shortcutie](https://sindresorhus.com/shortcutie.md). It returns the URL and the title of the active tab of your default browser, or of the browser that you choose. [Without an app](https://sindresorhus.com/guides/shortcuts-get-current-tab-url-mac#without-an-app), use the “Get Current Web Page from Safari” action for Safari, or AppleScript for Chrome.

## With Shortcutie

1. Install [Shortcutie](https://sindresorhus.com/shortcutie.md), and open it once.
1. In your shortcut, add the “Get Active Browser Tab” action of Shortcutie.
1. Leave the browser empty to use your default browser, or click it and choose a browser.
1. Use the result, “Browser Tab”, in the next action. Click it, and choose “URL” or “Title”.
1. 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.

- 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.

## 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.
