Skip to content

Invert PDF colors — dark mode for any PDF

Turn a PDF into white text on black — dark mode for a paper, manual or slide deck you read at night. The text stays selectable and the file barely grows. Nothing is uploaded.

Invert PDF Colors

Settings appear once you add a PDF.

How

Flatten only if a viewer or printer shows the original colors: every page becomes a picture, so the text can no longer be selected.

Advanced 2
Image sharpness

Ctrl + Enter runs it ·

Bytes sent anywhere: 0 B

Keyboard shortcuts

Ctrl K
Search all tools
Ctrl V
Paste files to add them
Ctrl Enter
Run the tool
?
Show this list
Esc
Close this list or the search
  • 100% private Your PDFs never leave this device. Everything runs in your browser.
  • No limits No file-size cap, no watermark, no sign-up and no daily quota. Free.
  • Batch ready Add as many PDFs as you like; each one is handled and saved in one go.

How to invert the colors of a PDF

  1. Add your PDFs: Drop the PDF. The preview shows page 1 inverted before you commit.

  2. Check the settings: Keep the text selectable (the default), or flatten the pages to images for an old viewer that ignores the effect.

  3. Save the result: Save. White becomes black, black becomes white, and every color flips to its opposite.

Why it doesn’t upload

The PDFs people want in dark mode are the ones they read for hours — textbooks, research papers, contracts under review. Inverting one is a matter of drawing one shape over each page, which your own browser can do without the file going anywhere.

Check it in your browser’s Network tab

Worth knowing

  • Every color is inverted, photographs included, so pictures look like film negatives. That is what inverting means; a viewer’s own dark mode is the choice if you want photos left alone.
  • Form fields, comments and highlights sit on top of the page and keep their original colors.
  • The selectable version relies on a standard PDF blend effect. Chrome, Edge, Firefox, Safari, Acrobat and Apple Preview all show it; a few old viewers and some printers ignore it and show the original — use Flatten to images for those.
  • Inverting an ordinary white page makes it mostly black, which uses far more ink or toner — invert light pages for screens. The reverse is the useful print trick: inverting dark slides turns them into black text on white before you print (choose Flatten to images, since some printers ignore the blend effect).

Under the hood

What happens to your file

A white sheet is painted under each page, then a white rectangle is drawn over it with the Difference blend mode, which turns every color into its opposite as the page is displayed. The page’s own content is untouched, so text stays text. The flattened option renders each page with pdf.js, inverts the pixels and embeds the result as an image.

Runs on pdf-libpdf.js

Reference: ISO 32000-2 (PDF 2.0)

Why invert a PDF’s colors?

Reading white pages on a screen at night is hard on the eyes. Inverting a PDF gives you white text on black — dark mode for a paper, manual or slide deck — in the file itself, so it works in any viewer and on any device.

The selectable mode keeps text searchable and the file barely grows. It runs in your browser.

Common reasons to make a PDF dark mode

  • Reading at night

    Read papers and books without a glaring white screen.

  • Light sensitivity

    Some readers find light text on dark easier.

  • Presenting in dark rooms

    Show a PDF without blinding the room.

  • E-readers and tablets

    Get dark pages on devices whose viewers have no dark mode.

  • Studying

    Make long study sessions easier on the eyes.

  • Scanned PDFs in dark mode

    Invert a scanned book or photocopy for reading: the paper turns black and the ink turns white, page images included.

Tips for inverting PDF colors

  1. Photos become negatives — that’s what inverting means.
  2. Use Flatten to images for old viewers that ignore the blend effect.
  3. Don’t print an inverted PDF; it uses far more ink.
  4. Only invert some pages by typing a range.
  5. Need grayscale rather than dark mode? Use PDF to Black and White.

Questions

How do I make a PDF dark mode?

Drop the PDF here and press Invert colors. You get a copy with white text on a black background that stays dark in every viewer, on every device — unlike a reader’s night mode, which only applies inside that one app.

Will I still be able to select and search the text?

Yes, with Keep text selectable (the default). The page’s content is untouched; one full-page layer inverts how it is displayed. Only Flatten to images turns pages into pictures.

Can I invert just some pages?

Yes. Under Advanced, type the pages, like 2-30 to leave a cover alone.

Why do the photos look strange?

Inverting flips every color, so photos turn into negatives. For a document that is mostly photos, inverting is rarely what you want.

Does inverting save ink when printing?

No — the opposite. A white page becomes a black one, which is the most ink a page can use. To save ink, print the original in black and white instead.

Read more about this

More edit & text tools

All edit & text tools