Am I in Incognito Mode?
Checking…
Free incognito checker — instantly detects Private Browsing in Chrome, Safari, Firefox, Edge, Brave, and Opera.
What it is
Efficiently detect Incognito mode and other private browsing modes across most modern browsers. MIT licensed, open source.
Features
- Incognito detection on Google Chrome
- Private Window detection on Safari (macOS)
- Private Tab detection on Safari (iOS)
- Private Window detection in Firefox
- InPrivate Window detection on Microsoft Edge
- InPrivate Window detection on Microsoft Internet Explorer
- Private Window detection in Brave
- Private Window detection in Opera
Install
npm
npm i detectincognitojsjavascript
import { detectIncognito } from "detectincognitojs";
detectIncognito().then((result) => {
console.log(result.browserName, result.isPrivate);
});CDN — may be blocked by adblockers:
html
<script src="https://cdn.jsdelivr.net/gh/Joe12387/detectIncognito@main/dist/es5/detectIncognito.min.js"></script>Supported browsers
| Browser | Platform(s) | Versions | Notes |
|---|---|---|---|
| Safari | All | ≤ 26.5 | |
| Chromium | All | 83 to 150 | |
| Firefox | All | 44 to 153 | |
| MSIE | Windows | 11 | Requires Promise polyfill |
Notes
- False positives can occur in certain browser setups or Chrome Guest mode. Issue #21
- Firefox Container Tabs are not detected by this.
- The script must run over HTTPS — running locally or over HTTP might fail.
- Brave and uBlock Origin block the CDN; bundling or self-hosting the script avoids this.
- An error is thrown if the browser cannot be identified.
Guides
FAQ
- Can websites detect Incognito mode?
- Yes. Browsers try to make private windows indistinguishable, but implementation quirks — like how storage quotas and APIs behave — let JavaScript infer private browsing with high accuracy. This page uses the open-source detectIncognito.js library to do exactly that.
- What does Incognito mode actually do?
- Incognito (or Private Browsing) stops your browser from saving history, cookies, site data, and form entries after you close the window. It does not make you anonymous: websites, your employer or school, and your internet provider can still see your activity.
- Does Incognito mode hide my IP address?
- No. Incognito mode only affects what your own browser stores locally. Websites still see your IP address, which can reveal your approximate location. Hiding your IP requires a VPN, proxy, or Tor.
- How do I open an Incognito or Private window?
- Chrome and Edge: Ctrl+Shift+N (Cmd+Shift+N on Mac). Firefox and Safari: Ctrl+Shift+P (Cmd+Shift+P in Firefox on Mac, Cmd+Shift+N in Safari). On mobile, open your browser's tab switcher and choose the private or incognito tab option.