Sumatra PDF dark mode — the honest guide

Sumatra can invert colors, but the feature is hidden and rough around the edges. Here's how to turn it on — and what to do when you need a proper dark file.

How to enable dark mode in SumatraPDF

Quick way: the invert hotkey

Custom colors: the settings file

For a softer dark theme you have to edit a config file by hand:

  1. In SumatraPDF, open Settings → Advanced Options… — this opens SumatraPDF-settings.txt in a text editor.
  2. Find the FixedPageUI section and set TextColor and BackgroundColor — for example TextColor = #d1d1d6 and BackgroundColor = #1e1e20 for a comfortable grey-on-dark theme.
  3. Save the file and restart SumatraPDF. The colors apply to PDF pages from then on.

Where Sumatra's dark mode falls short

The polished alternative: convert the file

If you read the same PDFs often — textbooks, sheet music, manuals — convert the document once and open the dark version in Sumatra (or any reader) forever:

Try it right here — or use the full converter on the home page:

Drop your PDF here
or click to browse — the file never leaves your device

100% private — your file is processed locally in your browser and never uploaded.

Frequently asked questions

Does Sumatra PDF have a dark mode?

Yes, but it is hidden. Press i in SumatraPDF to invert page colors (Shift+i inverts without images), or set custom TextColor/BackgroundColor values under FixedPageUI in the advanced settings file. There is no checkbox in the normal settings dialog.

What is the Sumatra PDF invert colors shortcut?

Press i to toggle inverted colors, or Shift+i to invert everything except images. Press the same key again to switch back.

Why do my images look like negatives in Sumatra dark mode?

Sumatra's inversion is a straight color negative: photos and illustrations are inverted along with the text. Use Shift+i to keep images normal, or convert the file with a tuned dark theme that keeps images natural-looking.

Can Sumatra export a dark-mode PDF file?

No. Sumatra only changes how pages are displayed; the file on disk stays white. To get a dark PDF you can keep, print, or send to another device, convert the file itself with the tool above.

Why is there a white line at the edge of the page in dark mode?

That is a known Sumatra rendering bug in dark mode (tracked in the project's issue tracker). Converting the file avoids it: the converter paints backgrounds slightly past the page edge so no white fringe remains.