How to invert PDF colors — for dark-mode reading and ink-saving prints
White-on-black is easier on the eyes for long reading sessions and saves ink when printing on dark paper. Here's how to invert PDF colors in your browser with zero upload.
If you've ever read a 200-page PDF at 2am, you know the feeling: a screen full of white pages bleaching your eyes. An inverted PDF — white text on a black background — is dramatically easier to read in low light, kinder to the eyes during long sessions, and (less obviously) saves a ton of ink when you print on dark paper.
Most "PDF color inverter" sites work by uploading your file to a server, rendering it on the server, then sending you a download. That's overkill — and a privacy gamble for documents you don't want copied. Color inversion runs perfectly well in your browser using HTML Canvas, and for confidentiality-sensitive PDFs (financial statements, medical records, contracts, internal memos) that's the only model that makes sense.
What "invert PDF colors" actually means
Color inversion takes every pixel and replaces it with its RGB complement: white becomes black, black becomes white, light blue becomes dark orange. It's a single arithmetic operation per pixel:output = 255 - input for each of red, green, and blue.
Browsers handle this trivially via the Canvas ImageData API — read the pixel buffer, run the inversion, write it back. The bottleneck isn't the math; it's how much PDF content there is to rasterize. A 50-page report inverts in under a second on a modern laptop.
When inverting PDFs is genuinely useful
Three real use cases drive most of the demand:
- Dark-mode reading. The PDF stays inverted forever, regardless of which reader opens it. Unlike "dark mode" in your PDF reader (which only inverts the display, not the file), an inverted PDF is portable: you can share it with someone whose reader doesn't support dark mode, or read it on an e-ink device where dark mode is unavailable.
- Printing on dark paper. If you're printing white text on black paper (party invites, brochures, photography presentations), you invert the PDF first so the printer lays down white toner on the intended dark areas. The result uses far less ink than printing a full black background.
- Accessibility. Users with certain visual conditions — photosensitivity, low vision, some types of dyslexia — read more easily with inverted contrast. There's no "right" choice; some find dark-on-light better, others the opposite. Having the option matters.
How to invert PDF colors online (the fast way)
Drop your PDF into LovedPDF's invert-pdf tool. It runs in your browser, takes a couple of seconds for a typical document, and downloads the inverted version. No upload, no account, no watermark.
Three notes about what to expect:
- Text becomes non-selectable. The output is image-based because we rasterize each page to apply the inversion. If you need selectable inverted text, you're better off changing your PDF reader's view setting instead.
- Images get inverted too. Photos look very odd inverted. This works best on text-heavy PDFs — academic papers, contracts, code listings, ebooks.
- UK vs US spelling doesn't matter. "Invert pdf colours" and "invert pdf colors" land on the same tool.
Alternatives if your reader supports inversion
Some PDF readers can invert the displayed colors without modifying the file:
- Acrobat Reader: Preferences → Accessibility → Replace Document Colors → Use High Contrast Colors → black/white
- macOS Preview: doesn't support per-PDF inversion, but you can invert the whole screen via Accessibility (Cmd+Opt+Ctrl+8)
- Edge / Chrome: install a "dark mode for PDF" extension; quality varies
These work fine for personal reading. They don't help when you need to actually change the file (printing on dark paper, sharing an inverted copy, archiving in inverted form).
The privacy point
PDFs you'd want to invert are often the same PDFs you'd least want sitting on someone else's server: contracts, financials, medical records, internal docs. Tools that upload your file in order to do color inversion are an unnecessary privacy compromise — the operation is fast enough to run on your laptop, and there's no reason a server ever needs to see your document for something this simple.
Open DevTools → Network → filter by "pdf" while using LovedPDF's inverter. The list stays empty. That's the proof.
Related tools
If you're optimizing PDFs for reading or printing, you might also want:
- Grayscale PDF — convert to black-and-white without inverting (better for printing)
- Compress PDF — slim down the file size after inverting
- Crop PDF — trim margins for e-reader display
- Read PDF aloud — if your eyes need a complete break
Tools mentioned in this post
Read next
How to compress a PDF to 100KB without ruining quality
A practical guide to PDF compression: what actually shrinks files, the tradeoffs, and a free browser-only tool that does it well.
How to merge PDFs without uploading them anywhere
Most PDF mergers upload your files to a server. Here is how to combine PDFs entirely in your browser, with no uploads — and why it matters.