User Agents

Web browsers and everyday web tech, explained

Force Dark Mode on Any Web Page in Microsoft Edge

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Dark mode is easier on the eyes in low light and can save battery on OLED screens. Microsoft Edge has a built-in flag that forces dark mode on every website, even those that don't offer their own dark theme. This guide walks you through enabling it, plus fixes for common issues.

What You'll Need

  • Microsoft Edge (current version, updated recently)
  • Access to the browser's flags page (no admin rights needed)
  • A few minutes to test and adjust settings

Step-by-Step

  1. Open Edge and go to the flags page. In the address bar, type edge://flags and press Enter. This is the experimental settings page, similar to Chrome's flags.
  2. Search for the dark mode flag. In the search box at the top of the flags page, type dark. You'll see a list of related flags. Look for one named “Auto Dark Mode for Web Contents” or simply “Auto Dark Mode”. The exact name may vary slightly with Edge versions.
  3. Enable the flag. Click the dropdown menu next to the flag (it usually defaults to “Default”) and select “Enabled”. Some versions offer “Enabled with selective inversion of non-image elements” — that's a good choice if you want a more refined look.
  4. Relaunch Edge. A “Relaunch” button will appear at the bottom of the page. Click it to restart the browser with the new setting. Make sure you've saved any open tabs or work before doing this.
  5. Test the result. After Edge reopens, visit a website that doesn't have its own dark mode (like a news site or an older forum). The page should now display with dark backgrounds and light text.
  6. Adjust if needed. If the forced dark mode looks too harsh or breaks the layout, go back to edge://flags, change the flag to “Disabled”, and relaunch to revert.

Common Mistakes

  • Enabling the wrong flag. There are several flags with “dark” in the name. Make sure you pick the one that says “Auto Dark Mode for Web Contents” — others like “Force Dark Mode for Web Contents” (older versions) or “Dark Mode for UI” only affect the browser interface, not websites.
  • Not relaunching. The flag won't take effect until you restart Edge. Clicking the Relaunch button is essential.
  • Expecting it to work on all sites perfectly. Some sites use complex CSS or images that don't invert well. The flag forces a dark theme, but it's not perfect — some elements may look washed out or hard to read.
  • Forgetting to disable it when you don't need it. If you later want normal browsing, you must go back and disable the flag. There's no quick toggle in the main settings.

Tips

  • Combine with Edge's system theme. Go to edge://settings/appearance and set the overall browser theme to “Dark” so the browser chrome matches the forced dark pages.
  • Use the “selective inversion” option. If available, this tries to keep images and videos looking natural while inverting text and backgrounds. It often looks better than full inversion.
  • Per-site override with extensions. For sites that break under forced dark mode, you can use extensions like “Dark Reader” that let you toggle dark mode per site. The flag works globally, but an extension gives you more control.
  • Check for native dark mode first. Many modern sites (YouTube, Reddit, Twitter) have their own dark mode settings. Forcing dark mode on them may conflict, so you might want to disable the flag for those sites and use their built-in option instead.
  • Keep Edge updated. Flags can change or be removed with new versions. If the flag disappears, update Edge.

Troubleshooting

Flag not found? If searching “dark” doesn't show the Auto Dark Mode flag, your Edge version may have removed it or renamed it. Try searching for “auto” or “force”. If it's gone, you can still use an extension like Dark Reader.

Pages look broken or unreadable. Some sites rely on background images or specific color combinations that don't invert well. Try the “selective inversion” option if available. If a particular site is unusable, you can disable the flag temporarily and use that site normally, or use an extension with per-site toggles.

Dark mode doesn't apply to PDFs or internal pages. The flag only affects web content, not PDF viewers or the New Tab page. For PDFs, you can enable a separate flag: search for “PDF” and look for “Enable PDF Dark Mode” or similar.

Performance issues? Forcing dark mode can slightly increase CPU usage on complex pages. If you notice lag, try disabling the flag or using a lighter extension.

Changes didn't stick after relaunch. Sometimes flags reset after an Edge update. Re-enable the flag and relaunch again.

Frequently Asked Questions

Will this work on all websites? No, it works on most, but sites with heavy images or complex styling may not look great. It's a forced approximation, not a native dark theme.

Is this the same as Edge's built-in dark mode? No. The built-in dark mode (under Settings > Appearance) only changes the browser interface (toolbar, menus), not the web pages themselves. This flag changes the content of the pages.

Does this affect battery life? On OLED screens, dark mode can save battery because black pixels are turned off. On LCD screens, the difference is negligible.

Can I toggle it on and off quickly? Not without going into the flags page. If you need quick toggling, use an extension like Dark Reader instead.

Will this break any websites? Some sites with fixed light backgrounds or white text on images may become unreadable. You can always disable the flag or use per-site exceptions with an extension.

Is this feature safe to use? Yes, it's an experimental flag but widely used. It doesn't modify any files or settings permanently — you can revert anytime.