Skip to content

Invert PDF colors (dark mode)

Make a dark-mode copy of a PDF.

Drop a PDF here

Only your browser reads them.

How to use Invert colours

  1. Load your PDF. Drop a file on the upload zone or select Choose a PDF to open it locally.
  2. Set optional page scope. Leave Pages blank to invert the entire document or enter a range such as 1-12, 15.
  3. Create the dark copy. Select Invert colours and save the finished -inverted.pdf file to your device.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

How to turn a PDF to black background and keep text selectable?

Difference blending wraps each page’s existing drawing stream with a solid white backdrop underneath and a white overlay rectangle on top. That mathematical layer flips white paper to black and black ink to white without rasterizing fonts, so every word stays sharp and selectable.

White backdrop plus white Difference overlay

Many PDFs leave the page canvas transparent rather than painting white paper explicitly. Without a base layer, inverting a transparent page would leave the background blank in standard viewers.

This tool first draws a 1 g white rectangle across the page’s visible box (CropBox or MediaBox) and then paints a pure white rgb(1, 1, 1) rectangle with BlendMode.Difference. Under the W3C Compositing and Blending Level 1 Difference Mode formula, subtracting 1.0 from each channel converts white (1.0) to black (0.0) and black (0.0) to white (1.0).

Keeping vector text sharp and searchable

Because the underlying text operators never change, every character stays crisp on high-DPI monitors and remains searchable with Ctrl+F. Unlike raster converters that flatten pages into 300 DPI bitmaps, this vector wrapper adds only a few hundred bytes per sheet.

You can invert PDF colors without uploading online because 0 bytes leave your browser tab. When you need paper-friendly output later, you can also convert color PDF pages to clean grayscale before printing.

Negative polarity versus positive polarity in dark-mode PDFs

Built-in reader dark modes only work inside specific apps and often reset when you switch devices. Baking a Difference layer into the PDF itself gives you consistent negative-polarity reading on tablets, older e-readers, and offline projectors.

That means a dark-mode textbook or research paper opens identically on Windows, macOS, iOS, and Linux without hunting for per-app theme toggles. Every inverted sheet preserves its original page dimensions and bookmarks.

Approach Text stays selectable Photos stay natural Works in any viewer Print friendly
Invert PDF colors Yes (vector stream) No (negative effect) Yes No (heavy ink)
Grayscale raster conversion No (needs OCR) Yes (neutral gray) Yes Yes
Reader app dark mode Yes Varies by app No (app-specific) Yes
Darken faint scans No (rasterized) Yes (higher contrast) Yes Yes

Portable dark mode across any PDF reader

Under W3C WCAG 2.1 Contrast Guidelines, normal body text requires at least a 4.5:1 contrast ratio, while large headings at 18 pt or 14 pt bold require at least 3:1 regardless of polarity. Inverting black-on-white documents preserves the full 21:1 contrast ratio in reverse, cutting glare in dark rooms.

Readability and contrast on OLED and e-ink screens

On OLED displays, pure black backgrounds turn pixels completely off, saving battery during long reading sessions. If your real problem is faded gray handwriting rather than bright white glare, you can darken faint scanned text instead of inverting colors for crisp black ink on clean white paper.

Readers with astigmatism sometimes perceive faint halos around white text on black background surfaces at maximum display brightness. Lowering screen luminance slightly or zooming in one step eliminates that optical shimmer without changing the PDF.

Why do images look like film negatives when inverting PDF colors?

Difference blending transforms the entire page rectangle uniformly, so embedded photographs, charts, and logos flip to their exact RGB color complements. Bright blue skies invert to warm orange, and skin tones turn cyan, just like analog camera film negatives.

That happens because each 8-bit color channel ranging from 0 to 255 is subtracted from 255 across the whole canvas. Photographic bitmaps cannot be separated from surrounding text unless you exclude those specific pages.

Skipping photo-heavy plates with the Pages filter

Enter ranges like 1-5, 8-20 in Pages to invert text chapters while leaving cover art, charts, or medical photos in their normal polarity. Under ISO 32000-1 PDF 1.7 Blend Modes and Transparency, blend overlays apply per page across 1/72-inch coordinate boxes, so unrequested pages keep their exact original streams.

Tip: If a scanned document was accidentally saved as white-on-black film negative, running Invert colours once flips it back into readable black text on white paper.

Fixing inverted film negatives and dark scans

After inverting a multi-page textbook or technical manual, large embedded scans may still weigh tens of megabytes. Passing the finished file through our browser-based PDF compressor trims redundant stream overhead before transferring it to a tablet or phone.

Undoing inversion and troubleshooting dark-mode PDF exports

Most edge cases involve color-shifted highlights, double-inverted pages, or rotated crop boxes on older scans. Checking a few quick details resolves almost every formatting surprise.

  • Reverting an inverted PDF back to light mode: Running the -inverted.pdf output through Invert colours a second time cancels the subtraction math and restores black text on white. However, keeping your original file untouched is always cleaner than stacking two blend layers.
  • Colored highlights look unfamiliar: Bright yellow (#FFFF00) flips to deep blue (#0000FF), and cyan links flip to red. That complementary shift is normal for RGB channel subtraction across vector annotations.
  • Crooked scanned pages look distracting at night: Straighten tilted margins before inverting by running Deskew PDF first so columns align cleanly on screen.
  • Encrypted PDF refuses to load: Password-protected documents cannot have their content streams wrapped until unlocked. Remove the open password first, then apply dark mode to the unlocked copy.
  • Printing dark-mode pages wastes toner: Solid black backgrounds consume heavy ink and can curl standard 80 gsm office paper. Always print from the original light-mode document instead of the -inverted.pdf export.

Questions

Can I select and search text in an inverted PDF?

Yes. Inversion wraps the page content stream with a white Difference blend overlay rather than rasterizing pages into bitmaps. Every font glyph, hyperlink, and vector diagram stays sharp and selectable at any zoom.

Why do photos look like negatives when I invert PDF colors?

The Difference blend layer inverts every pixel across the page equally, turning skin tones and bright skies into cyan and orange negatives. Use the Pages field to skip photographic plates when reading text-heavy reports.

Does reading a PDF in dark mode reduce eye strain?

In dimly lit rooms, dark backgrounds emit far less screen luminance than full-white pages, which helps reduce glare. However, people with astigmatism sometimes notice slight halation on pure black screens and may prefer lowering monitor brightness.

Can I invert only certain pages of a PDF?

Yes. Type specific page numbers or ranges such as 2-8, 11 into the Pages box before clicking Invert colours. Unlisted pages remain completely untouched with their original white backgrounds.

How do I undo color inversion on a PDF?

Keep your original file as a backup, or run the -inverted.pdf file through Invert colours a second time. Because subtracting from white twice restores the original RGB values, text returns to black on white.

Does inverting PDF colors increase the file size?

Almost not at all. Because no pages are rasterized, each inverted page adds only a tiny graphics-state wrapper and one rectangle command, typically a few hundred bytes per page.

Updated