Enable Dark Mode for All Websites in Microsoft Edge
In this article
This guide shows you how to force dark mode on every website you visit in Microsoft Edge, even sites that don't offer their own dark theme. You'll use Edge's built-in flag and a simple setting change—no extensions or third-party tools needed. The result is a consistent, eye-friendly dark appearance across the web, which can reduce eye strain in low-light conditions and save battery on OLED screens. Before you start, make sure Microsoft Edge is updated to a recent version (the steps work in Edge 87 and later).
What You'll Need
- Microsoft Edge installed on Windows, macOS, or Linux (the steps are identical across platforms).
- An internet connection to update Edge if prompted (optional but recommended).
- About 2 minutes of your time.
Step-by-Step
- Open Microsoft Edge. Double-click the Edge icon on your desktop, taskbar, or Start menu. If Edge is already open, skip to the next step.
- Access the Edge flags page. In the address bar at the top, type
edge://flagsand press Enter. This opens the experimental features page. (If you see a warning about “proceed with caution,” that's normal—click “Continue” or just proceed.) - Search for the dark mode flag. In the search box at the top of the flags page, type
dark. A list of flags will appear. Look for one labeled “Auto Dark Mode for Web Contents” (the exact wording may vary slightly by version). - Enable the flag. Click the dropdown menu on the right side of that flag (it usually says “Default”) and select “Enabled.” The flag may ask you to restart Edge—do that by clicking the “Relaunch” button that appears at the bottom of the page. If you don't see a relaunch button, close and reopen Edge manually.
- Turn on the system dark theme. After Edge restarts, click the three-dot menu (⋯) in the top-right corner, then select “Settings.” In the left sidebar, click “Appearance.” Under “Overall appearance,” choose “Dark” from the dropdown. This sets the browser chrome (toolbar, menus, settings pages) to dark.
- Enable the dark mode for websites. Still in the Appearance settings, look for a section called “Page appearance” or “Dark mode for websites.” You'll see a toggle labeled “Force dark mode for all sites” (or “Automatically darken web content”). Turn it on by clicking the toggle switch. If you don't see this option, it's because the flag from step 4 wasn't enabled or Edge hasn't been restarted—go back and check.
- Test it. Visit a website that normally has a white background (like Wikipedia or Google). The page should now appear dark. Some images and videos may look slightly dimmed, but text and backgrounds should be dark. If a site already has its own dark mode, Edge may respect that instead of forcing its own—that's normal.
Common Mistakes
- Forgetting to restart Edge after enabling the flag. The flag won't take effect until you relaunch the browser. Always click “Relaunch” or close and reopen Edge.
- Enabling the flag but not the “Force dark mode” toggle. The flag alone doesn't do anything visible; you must also turn on the toggle in Appearance settings.
- Setting the overall theme to “Light” or “System.” If you leave the overall appearance on Light, the forced dark mode may not apply. Set it to “Dark” for consistent results.
- Using an older Edge version. If you don't see the flag or the toggle, update Edge via Settings > About Microsoft Edge.
Tips
- Use a keyboard shortcut to quickly toggle dark mode. There's no built-in shortcut, but you can pin the Appearance settings page to your bookmarks bar for faster access.
- Exclude specific sites if needed. The “Force dark mode” toggle applies to all sites, but you can turn it off per site by clicking the “Site settings” icon (the lock or info icon) in the address bar, then toggling “Force dark mode” for that site.
- Combine with the system dark theme. If you set your operating system to dark mode, Edge will follow it automatically when “Overall appearance” is set to “System.” That way, dark mode turns on and off with your OS.
- Use the flag for even more control. The “Auto Dark Mode for Web Contents” flag has multiple options (e.g., “Enabled with selective inversion of non-image elements”). Experiment with these if the default looks off on certain sites.
- Remember that this is experimental. Because it's a flag, the feature may change or be removed in future Edge updates. If it disappears, you can re-enable it or use an extension like “Dark Reader” as a fallback.
Troubleshooting
- Dark mode doesn't apply to any website. First, confirm the flag is enabled and you restarted Edge. Then go to Settings > Appearance and ensure “Force dark mode for all sites” is toggled on. If it still doesn't work, try setting “Overall appearance” to “Dark” manually (not “System”).
- Some websites look broken or have unreadable text. This can happen with sites that use complex CSS or have their own dark theme. Try changing the flag option to “Enabled with selective inversion of non-image elements” (or vice versa) and restart Edge. You can also turn off forced dark mode for that specific site via the address bar icon.
- Images appear too dark or washed out. The forced dark mode may invert or dim images. There's no perfect fix, but you can try the flag option “Enabled with simple HSL-based inversion” (if available) to reduce the effect. Or, disable forced dark mode for sites where image quality matters.
- The toggle in Appearance settings is missing. This usually means the flag wasn't enabled correctly. Go back to
edge://flags, search for “dark,” and ensure the flag is set to “Enabled.” If it's already enabled, try setting it to “Disabled,” restart, then enable it again. - Dark mode works but not on new tabs or the new tab page. The new tab page uses its own background setting. Go to Settings > Appearance and look for “New tab page” or “Theme” options to customize it separately.
Frequently Asked Questions
Will this affect all websites permanently?
Yes, once enabled, it will force dark mode on every site you visit, unless you turn it off or exclude specific sites. It persists across sessions.
Can I use dark mode only on certain websites?
Yes. After enabling the global toggle, you can click the site settings icon (lock or info) in the address bar for any website and toggle off “Force dark mode” for that site only.
Does this work in InPrivate or guest mode?
Yes, the setting applies to all browsing modes, including InPrivate windows. However, if you use a separate profile, you may need to enable it again in that profile's settings.
Will this slow down my browser?
No noticeable performance impact. The dark mode is applied via CSS filters, which is lightweight and runs efficiently.
Is this the same as a dark mode extension?
It's similar, but built-in. Extensions like Dark Reader offer more customization (e.g., brightness, contrast, sepia). The built-in option is simpler and doesn't require installing anything.
Why do some sites still show white backgrounds?
Some sites use inline styles or images that override the filter. Also, if a site has its own dark mode, Edge may respect that instead of forcing its own. You can try disabling the site's dark mode if it has one, or use the per-site toggle to re-enable forced dark mode.