Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Open a URL in Chrome Incognito Automatically

· 6 min read · Home Tech

In this article
  1. Why You Might Want This
  2. How Chrome's Command-Line Flags Work
  3. Method 1: Windows Shortcut
  4. Method 2: Mac AppleScript
  5. Using Search Queries Directly
  6. Common Problems and Fixes
  7. Frequently Asked Questions

Yes, you can automatically open a specific web search or any URL in Chrome's Incognito mode by creating a dedicated desktop shortcut (Windows) or using a simple AppleScript (Mac). This lets you skip the manual step of opening an Incognito window and then typing the address.

Why You Might Want This

Incognito mode is designed for sessions you don't want saved in your browsing history, cookies, or site data. For routine searches on topics you'd rather not leave traces of—like health questions, surprise gifts, or job hunting—a one-click shortcut saves time and removes the risk of forgetting to switch modes. It's also useful for testing how a website behaves for a first-time visitor, since Incognito starts with no existing cookies or logins.

The core idea is simple: Chrome accepts a command-line flag that tells it to launch in Incognito. When you pair that flag with a specific URL, Chrome opens that page directly in a new Incognito window. This works for any URL, not just searches, so you can create shortcuts for specific sites, search queries, or even your own web apps.

How Chrome's Command-Line Flags Work

Chrome, like most desktop programs, accepts command-line arguments that modify its behavior. The relevant flag is --incognito. When you run Chrome with this flag, it opens a new Incognito window instead of a normal one. You can combine it with a URL by simply adding the URL after the flag:

chrome.exe --incognito "https://example.com"

On Windows, the executable is typically chrome.exe. On macOS, you'd use the full path to the binary inside the app bundle. The flag works identically on both systems, but the way you create a shortcut differs.

One important detail: if Chrome is already running, the command may just open a new window in the existing process, and the --incognito flag might be ignored. To guarantee a fresh Incognito window, you should close all Chrome windows first, or use a workaround like adding a second flag (--new-window) which forces a new window even if Chrome is running.

Method 1: Windows Shortcut

This is the most straightforward method. You'll create a new shortcut on your desktop that points to Chrome with the incognito flag and your desired URL.

  1. Right-click on your desktop, go to New, and select Shortcut.
  2. In the location field, paste the full path to Chrome. The default is usually:
    C:\Program Files\Google\Chrome\Application\chrome.exe
    If you're not sure, find Chrome in your Start Menu, right-click it, and choose "Open file location" to see the path.
  3. After the path, add a space, then type --incognito, another space, and then the URL in quotes. For example:
    "C:\Program Files\Google\Chrome\Application\chrome.exe" --incognito "https://www.google.com/search?q=best+camping+gear"
  4. Click Next, give the shortcut a name like "Private Search", and click Finish.
  5. Double-click the shortcut to test it. It should open a new Incognito window with your search already loaded.

If Chrome is already open, the shortcut might open a tab in the existing Incognito window or a normal window. To fix this, you can add --new-window to the command. The full command becomes:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window --incognito "URL"

This forces Chrome to create a new window, even if one is already running.

Method 2: Mac AppleScript

On macOS, you can't create a shortcut with arguments directly, but you can use AppleScript via the Script Editor or Automator to launch Chrome with the incognito flag and a URL.

  1. Open Script Editor (found in Applications/Utilities).
  2. Paste this script, replacing the URL with your own:
do shell script "open -a \"Google Chrome\" --args --incognito \"https://www.google.com/search?q=best+camping+gear\""
  1. Press the Run button to test it. A new Incognito window should open with your search.
  2. Save the script as an Application (File > Export, then choose "Application" as the File Format).
  3. Drag the saved app to your Dock or Desktop for one-click access.

Alternatively, you can use Automator to create a Quick Action that runs the same shell command, which you can then assign to a keyboard shortcut in System Settings.

Using Search Queries Directly

The URL you use can be any search engine's query URL. For Google, the format is:

https://www.google.com/search?q=YOUR+QUERY

Replace spaces with + signs. For Bing, it's:

https://www.bing.com/search?q=YOUR+QUERY

For DuckDuckGo:

https://duckduckgo.com/?q=YOUR+QUERY

You can also use the URL of a specific site's search, like YouTube (https://www.youtube.com/results?search_query=QUERY) or Amazon (https://www.amazon.com/s?k=QUERY). This turns your shortcut into a direct private search for any site.

Common Problems and Fixes

Here are a few issues you might run into:

  • Shortcut opens a normal window: This usually happens because Chrome is already running. Add --new-window to the command to force a new window.
  • Shortcut does nothing: Check that the path to chrome.exe is correct. If Chrome is installed in a different location (e.g., under AppData), the shortcut won't work.
  • URL contains special characters: If your search query has ampersands (&) or other symbols, make sure the URL is enclosed in quotes in the shortcut target.
  • Mac script opens a normal window: Ensure the --args flag is placed after the --args keyword in the shell command. The syntax shown above is correct.

Frequently Asked Questions

Can I make a shortcut that opens multiple URLs in Incognito?

Yes. You can list multiple URLs after the --incognito flag, each in quotes. Chrome will open them in separate tabs within the same Incognito window. For example: chrome.exe --incognito "https://site1.com" "https://site2.com".

Will this work on Chrome for Android or iOS?

No. Mobile versions of Chrome don't support command-line flags. On Android, you can long-press the Chrome icon and select "New Incognito tab," but you can't pre-load a specific URL. On iOS, there's no direct shortcut either, though you can use a third-party automation app like Shortcuts.

Is there a way to make this the default behavior for all links?

No, Chrome doesn't have a built-in setting to force all links to open in Incognito. The shortcut method is the only way to automate a specific URL. For a broader approach, you could use a browser extension that redirects certain domains to Incognito, but that's more complex and not officially supported.

Does using Incognito mode hide my activity from my ISP?

No. Incognito mode only prevents Chrome from saving your browsing history, cookies, and form data locally. Your internet service provider, employer, or the websites you visit can still see your activity. For true anonymity, you'd need a VPN or Tor.

Can I set a keyboard shortcut to open this incognito URL?

Yes. On Windows, you can right-click the shortcut, go to Properties, and assign a "Shortcut key" in the Shortcut tab. On Mac, you can use the Automator Quick Action method and assign a keyboard shortcut in System Settings > Keyboard > Shortcuts.

Will this work if Chrome is already open in Incognito?

Yes, but the new window will be a separate Incognito session. If you add --new-window, it will create a new Incognito window alongside any existing ones. Without that flag, it may open a tab in the existing Incognito window.