Make Microsoft Edge Always Open in Private Mode
In this article
To make Microsoft Edge always start in InPrivate (private) mode, you need to add a special command-line flag to the shortcut you use to launch Edge. This works on Windows 10 and 11 for both the standard Edge and Edge for Business, and it applies to the desktop shortcut, taskbar icon, and Start menu tile. The flag is --inprivate, and once added, every time you open Edge from that shortcut, it will start a fresh InPrivate session. You’ll still be able to open regular windows by using the Edge menu or a separate shortcut without the flag.
What You'll Need
- A Windows PC with Microsoft Edge installed (the steps below are for Windows; macOS users can use a similar approach by editing the app's Info.plist, but that is more complex and not covered here).
- Access to your desktop, taskbar, or Start menu to edit shortcuts.
Step-by-Step
- Find the Edge shortcut you use most often. This is usually on your desktop, taskbar, or Start menu. If you use the taskbar icon, right-click it and select “Unpin from taskbar” first—you’ll re-pin it later with the flag.
- Right-click the Edge shortcut and select “Properties.” For the Start menu tile, right-click it and choose “Open file location” to find the actual shortcut file, then right-click that file and select “Properties.”
- In the “Shortcut” tab, look for the “Target” field. It will show the full path to the Edge executable, something like:
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
Note that the path may be slightly different depending on your installation (e.g., in Program Files instead of Program Files (x86)). - Add the
--inprivateflag at the end of the Target field. Place a space after the closing quote of the executable path, then type--inprivate. The final Target should look like:"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --inprivate
Do not put the flag inside the quotes—only the executable path should be quoted. - Click “Apply” then “OK.” If Windows asks for administrator permission, click “Continue” (you may need to be signed in as an administrator).
- Test the shortcut. Double-click the shortcut (or press Enter if it’s selected). Edge should open directly into an InPrivate window—you’ll see the “InPrivate” badge in the top-right corner and a dark theme (if you haven’t changed the default).
- Re-pin to taskbar or Start (if needed). If you unpinned the taskbar icon, right-click the new shortcut (or the Edge icon in the Start menu) and select “Pin to taskbar” or “Pin to Start.” The pinned icon will now use the same Target with the flag.
- Repeat for any other shortcuts you use. If you also launch Edge from the Start menu’s “All apps” list, you’ll need to edit that shortcut too: right-click it, select “More” > “Open file location,” then edit its properties the same way. The taskbar and Start menu tiles are separate shortcuts, so each must be edited individually.
Common Mistakes
- Putting the flag inside the quotes. The Target field must have the executable path in quotes, then a space, then
--inprivateoutside the quotes. If you put it inside, Edge won’t recognize it. - Editing the wrong shortcut. The taskbar icon and Start menu tile are separate shortcuts. Editing the desktop shortcut doesn’t change the taskbar icon. You must edit each one separately.
- Forgetting to unpin before editing. You cannot edit the properties of a pinned taskbar icon directly—you must unpin it first, edit the underlying shortcut, then re-pin.
- Using a forward slash instead of two hyphens. The flag is
--inprivate(two hyphens). A single hyphen or a slash won’t work.
Tips
- Keep a regular shortcut too. If you sometimes want a normal browsing session, create a second desktop shortcut without the flag. Right-click the desktop, select New > Shortcut, and paste the original Target (without
--inprivate). Name it “Edge (Normal)” so you can tell them apart. - Use the Edge menu to open a normal window from InPrivate. In an InPrivate window, click the three-dot menu (…) and select “New window” to open a regular window. This is handy when you need to log into a site without leaving InPrivate.
- Keyboard shortcut still works. Pressing
Ctrl+Shift+Nwhile Edge is open will open a new InPrivate window, but that only works if Edge is already running. The flag on the shortcut makes the initial launch private. - Edge updates won’t remove the flag. The flag is part of the shortcut, not the Edge installation, so it survives updates. However, if you reinstall Edge or create a new shortcut, you’ll need to add it again.
Troubleshooting
Edge still opens in normal mode. Double-check the Target field—make sure there’s a space between the closing quote and --inprivate. Also, if you’re launching Edge from a different shortcut (like the Start menu’s search result), that shortcut won’t have the flag. Edit that specific shortcut.
The flag works but the taskbar icon is gone. You unpinned it earlier. Re-pin it by right-clicking the edited shortcut and selecting “Pin to taskbar.” If the icon doesn’t appear, restart Explorer or sign out and back in.
You get an error saying the target is invalid. This usually means the path to msedge.exe is wrong. Copy the path from the original shortcut (before you edited it) or browse to the file manually. The default location is C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe on 64-bit systems, or C:\Program Files\Microsoft\Edge\Application\msedge.exe on 32-bit systems.
InPrivate opens but then a normal window also opens. This can happen if Edge is already running in the background (e.g., from startup). The flag only applies to the shortcut launch, not to existing processes. Close all Edge windows and background processes (check the system tray for the Edge icon), then try again.
You can’t edit the shortcut because it’s a Microsoft Store app. Edge is a regular desktop app, not a Store app, so this shouldn’t happen. If you’re using a managed device (work/school), Group Policy may override shortcut flags—contact your IT admin.
Frequently Asked Questions
Does this work on macOS?
Yes, but the steps are different. On macOS, you’d need to edit the app’s Info.plist or create an Automator script—there’s no simple shortcut Target field. The easiest method is to use the Terminal command open -a "Microsoft Edge" --args --inprivate each time, or create a small AppleScript app that runs that command.
Will this affect my bookmarks and history?
No. InPrivate mode doesn’t save browsing history, cookies, or site data, but your bookmarks, passwords, and settings are still available and unchanged. They just aren’t used to track your session.
Can I set InPrivate as the default for all Edge launches, including from links?
No, not directly. The flag only affects shortcuts. If you click a link in an email or another app, it will open in a normal Edge window unless you’ve set Edge as the default browser and also changed the default behavior—which isn’t possible without a policy. The shortcut method is the standard workaround.
Will this slow down Edge or use more memory?
No. InPrivate mode uses the same engine and memory footprint as normal mode. The only difference is that it doesn’t persist cookies or history.
Does this work with Edge for Business or work profiles?
Yes, the --inprivate flag works with Edge for Business as well. However, if your organization enforces a policy that disables InPrivate, the flag won’t override that policy—you’ll need to contact your IT admin.
If I uninstall and reinstall Edge, will the shortcut stay private?
No, reinstalling Edge will create new shortcuts without the flag. You’ll need to add --inprivate again after reinstalling.