Create a true color negative, a readable dark-mode version, or a black & white invert of your PDF. Runs entirely in your browser — nothing is uploaded.
Drop your PDF to invert its colors
Click to browse or drag & drop
🔒 Your files never leave your device — rendering, color transforms, and PDF rebuilding all run locally in your browser.
TL;DR
Definition
To invert a PDF's colors means replacing every visible pixel's color with its mathematical opposite. Screens describe color using the RGB model, where each pixel has a Red, Green, and Blue value between 0 and 255. Inverting a pixel subtracts each value from 255: a pure white pixel (255,255,255) becomes pure black (0,0,0), a pure black pixel becomes white, a red pixel (255,0,0) becomes cyan (0,255,255), and a blue pixel becomes yellow.
A PDF page isn't a single image — it's text, vector shapes, and embedded raster images layered together. Inverting a PDF's colors means applying that same 255-minus-value math to every visible pixel once the page has been rendered, so the transform affects the whole page uniformly, regardless of whether a given pixel came from a line of text, a vector diagram, or a photo.
This differs from inverting a single photo in an image editor only in scope: a PDF can hold dozens of pages that each mix text, diagrams, and photos, and those different content types don't all "read" the same after inversion — see how black-and-white PDFs change and inverting scanned PDFs below. It's also worth distinguishing mathematical inversion from dark mode, which is a related but different transform.
Four steps. No install, no account. Files never leave your browser.
Drag your file into the box above, or click to browse. Nothing uploads to a server — the file is read directly by your browser.
A recommended mode is pre-selected based on your document's colors. Switch to True Invert, Dark Mode, B&W, or Custom, and choose which pages to transform.
Drag the split-view divider — or use the keyboard-accessible slider — to preview the real transformed pixels for any page before committing.
Click "Invert Colors & Download." Your PDF is transformed in batches, verified by reopening it, then downloads instantly with no watermark.
Effects Of Inversion
Every visible pixel on the pages you select changes to its RGB opposite. Concretely, on a typical document:
The exact outcome depends on which mode you pick. True Invert applies this math to every RGB channel. Dark Mode (below) inverts only lightness, so colored elements keep their hue instead of shifting to a complementary color.
Key Distinction
Color inversion and dark mode are related but not the same transformation. Mathematical color inversion (True Invert) flips every RGB channel — white becomes black, but red also becomes cyan and blue becomes yellow, which can make colored diagrams look unnatural. Dark mode instead inverts only lightness in HSL color space, so hue and saturation are preserved: white backgrounds still turn dark and black text still turns light, but a red heading stays recognizably red instead of turning cyan.
This matters most for documents with meaningful color — charts, brand colors, highlighted text, or diagrams. A report inverted with True Invert will have its red figures turn cyan; the same report run through Dark Mode keeps the red recognizable while still darkening the background.
| Aspect | True (Mathematical) Invert | Dark Mode | Grayscale |
|---|---|---|---|
| Purpose | Full color negative | Comfortable dark background for reading | Removes color entirely |
| Color behavior | Every RGB channel flipped; hues shift to their complement | Only lightness flipped; hue & saturation preserved | Converted to a single brightness value — no inversion |
| Best use case | Colorful diagrams, photos, presentations, print negatives | Text-heavy documents read on-screen | Documents that need color removed but not darkened |
| Output effect | White↔black, red↔cyan, blue↔yellow | White background → dark, black text → light, colors keep hue | Full-color content becomes shades of gray only |
| Printing suitability | Rarely suitable — see printing considerations | Not intended for printing — designed for screens | Common — standard grayscale printing |
| Screen readability | Can look unnatural on colorful pages | Designed for comfortable screen reading | Neutral — similar readability to the original, minus color cues |
Black & White PDFs
In a typical black-on-white PDF — a text document, contract, or plain scanned page — inverting colors swaps the two: the white page background becomes black, and black text becomes white. This is the most predictable case, since there are only two colors to swap.
Breaking it down by element:
Results still vary with the source file. A born-digital PDF (created directly as a PDF, not scanned) usually has genuinely pure black text on white, so the inversion is clean. A scanned PDF almost always has slightly off-white paper texture and anti-aliased, softly-gray text edges — so an inverted scan typically shows a dark gray background rather than pure black, and light gray text rather than pure white. Which mode you pick changes how forgiving that looks: B&W Invert collapses everything to grayscale luminance first, then inverts, which usually gives the cleanest, most uniform black/white result for scanned text.
Scanned Documents
Yes. A scanned PDF is a sequence of full-page raster images, typically produced by a flatbed scanner, sheet-fed scanner, or a phone camera scanning app. PDFcrest's color transform operates on rendered pixels regardless of whether they originated as a scanned photo or as text and vector graphics drawn directly in the PDF, so scanned pages invert exactly like any other page content.
Two practical things to know before inverting a scan:
Why PDFcrest
Every mode does genuine pixel math and produces a downloadable PDF that matches the preview.
True Invert, HSL-based Dark Mode, Black & White Invert, and a fully custom mode — each mathematically defined and documented, not a single blind filter.
Colors and brightness are sampled across your pages to suggest the best-fitting mode — you can always override it.
The comparison viewer runs the same worker-based transform used for export — what you preview is what you download, not an approximation.
Invert the whole document, a custom range like 1-5,8,10-12, or a single page — everything outside your selection is copied through untouched.
Rendering happens with pdf.js, the color math runs off the main thread in a Web Worker, and rebuilding happens with pdf-lib — all inside your browser tab.
The generated PDF is re-opened and its page count checked before the download link is enabled — you never get a silently broken file.
Comparison
There are two fundamentally different ways to see an "inverted" PDF: changing how your viewer displays the file, or actually transforming the file's pixel data. Desktop readers like Adobe Acrobat Reader and Foxit PDF Reader offer viewer-level dark theme or accessibility color-filter settings — these only affect that one app, on that one device, while you have the file open. Close it or open the same PDF somewhere else and it reverts to its original colors, because nothing in the file itself changed. PDFcrest instead transforms the actual pixel data and produces a new, downloadable PDF, so the inverted result looks the same in any PDF viewer, on any device, and can be shared, printed, or archived as-is — without needing a particular reader's settings turned on.
| Feature | PDFcrest | PDF reader "dark theme" | Typical online tool |
|---|---|---|---|
| Price | Free, unlimited | Free, viewer-only | Free tier capped |
| Produces a real inverted PDF file | Yes, downloadable | No — only changes on-screen display | Sometimes |
| Multiple transformation modes | 4 modes + custom controls | Usually one fixed dark theme | Rarely more than one |
| Page-range selection | All, custom range, or single page | N/A | Usually whole-document only |
| Before/after comparison | Accessible split-view slider | N/A | Rarely available |
| File privacy | 100% browser-based | Local app | Server upload typical |
| UI freezes on large files | No — Web Worker + batching | N/A | Common on big PDFs |
| Watermark on output | Never | N/A | Common on free tiers |
Use Cases
Turn bright white-background ebooks, manuals, and reports into a dark-mode version that's easier on the eyes for late-night reading.
Generate true color negatives of diagrams, mockups, and presentation decks for creative review or print-negative proofing.
Produce black & white negatives of scanned line art or blueprints for specific print processes that need inverted tone.
Create a high-contrast dark or black & white version of a document for people who find light-on-dark text more comfortable.
Convert bright lecture slides and readings into dark mode for late-night studying without the glare of a white page.
Match exported documentation or PDF reports to a dark-themed workflow without regenerating the source document.
Printing
Inverting a PDF's colors for printing is possible, but screen-oriented inversion and print-ready color transformation aren't automatically the same thing — a page designed to look good as light text on a dark screen background can use far more ink or toner, and read worse on paper, than the original.
PDFcrest doesn't apply any print-specific correction — it produces the color-transformed PDF exactly as previewed on-screen. Treat the result as a starting point for printing, not a guaranteed print-ready file.
No Software Needed
Some desktop PDF readers provide viewer-level color controls intended for on-screen accessibility or reading comfort — for example, night or dark themes in various PDF apps. Those settings change how the app displays a file while it's open; they don't produce a new, saved PDF with different colors, and as covered above, the effect disappears once the file is opened elsewhere.
PDFcrest works differently: it's a browser tab, not installed software, and it creates an actual transformed PDF file you can save, rename, email, or upload anywhere — no desktop app, browser extension, or account required. This is useful specifically when you need the inverted version to persist as a file, rather than only changing how one app displays it on one device.
Workflow Recipes
Inverting colors is rarely the only step — here's how it usually fits into a real document pipeline.
Noisy or uneven scans invert unevenly — fixing contrast and background first gives a cleaner negative.
Rotate sideways or upside-down pages first so the before/after preview and final output read correctly.
Inverted pages are rasterized images — compress afterward to keep the file email- and upload-friendly.
Need the dark-mode or negative pages as standalone images instead of a PDF? Convert the result afterward.
Remove blank scanner pages before inverting so you're not wasting processing time on empty sheets.
Mobile & Device Use
Yes — you can invert PDF colors on Android, iPhone, and iPad directly in your device's mobile browser. PDFcrest doesn't require an app install: open pdfcrest.com/invert-pdf-colors in Chrome on Android or Safari/Chrome on iOS, upload a PDF from your device storage, a cloud drive, or the Files app, and use the same touch-friendly upload zone, mode cards, and before/after comparison slider as on desktop.
A couple of practical notes for phones and tablets: mobile devices generally have less available memory than a desktop, so for very large or very high page-count PDFs, Fast or Balanced quality keeps processing quicker and less likely to strain the browser. The comparison slider supports touch drag directly. Finished files download to your device's usual Downloads or Files location, the same as any other browser download, and Mac and Windows desktop browsers work identically to mobile — same page, no separate app.
One distinction worth keeping in mind: this is different from your phone's or PDF app's own dark mode / night mode display setting, which — like a desktop reader's dark theme discussed above — only changes how that app shows the file on your screen and doesn't alter the PDF itself.
Related Searches
How It Works
Many "invert PDF" tools online do something deceptively simple: they render your PDF to a preview and slap a CSS filter: invert(1) on it. That instantly flips how the page looks on your screen, but it changes nothing about the actual file — the moment you download it, you get back the same original, unmodified PDF. That approach can't produce a genuinely inverted document because a CSS filter only exists in the browser's rendering pipeline for that one page view; it has no way to write new pixel data back into a PDF's internal structure.
PDFcrest's Invert PDF Colors tool does the harder, correct version of this: it renders each page you select onto an actual canvas using pdf.js (the same open-source engine that powers Firefox's built-in PDF viewer), reads the raw RGBA pixel data with the Canvas API, and hands that data to a dedicated Web Worker. The worker runs the real transform math — for True Invert that's R'=255-R, G'=255-G, B'=255-B on every pixel; for Dark Mode it converts each pixel to HSL color space and inverts only the lightness channel (L'=1-L), which is why colored headings and highlights keep their hue while white backgrounds turn dark and black text turns light; for Black & White Invert it first collapses the pixel to grayscale luminance, then inverts that single value. Running this in a Worker — rather than on the page's own thread — is what keeps the rest of the interface responsive even while a large page's pixels are being processed.
Once a page's pixels are transformed, the tool encodes the result back into JPEG or PNG (choosing whichever format suits the mode's typical content — flat, high-contrast Dark Mode and B&W pages compress excellently as PNG with no ringing artifacts around text edges, while colorful True Invert pages are usually smaller as JPEG) and embeds that image into a freshly built PDF using pdf-lib, at the exact same physical page dimensions as the source page. Pages you didn't select in the page range are copied through from the original file byte-for-byte, so they keep their original selectable text and vector precision — only the pages you actually chose to invert become rasterized images. Before the download link is ever enabled, the newly built PDF is reopened with pdf.js and its page count is checked against what was expected, so a broken or truncated export is caught instead of silently downloaded.
Related Distinction
Grayscale conversion and color inversion are both color transforms, but they behave very differently under the hood. Converting to grayscale collapses each pixel's Red, Green, and Blue values into a single brightness value — the original color information is discarded and can't be recovered from the grayscale result alone. Color inversion is the opposite kind of operation: it's lossless and fully reversible, since 255-(255-X)=X. Inverting an already-inverted page a second time, with the same mode and settings, mathematically restores the original colors.
In practice: choose grayscale when you need color removed but the page to stay light-background/dark-text (for standard printing, for example). Choose color inversion when you specifically want the light/dark relationship flipped — a white page turned dark, not just desaturated.
Under the Hood
These are the real formulas and constants used by the Web Worker running on this page — not marketing copy.
True Invert: R' = 255-R, G' = 255-G, B' = 255-B (alpha untouched)
Dark Mode: (H,S,L) = rgbToHsl(R,G,B)
L' = L + intensity * ((1-L) - L)
(R',G',B') = hslToRgb(H, S, L') // hue & saturation preserved
B&W Invert: gray = 0.299R + 0.587G + 0.114B
R' = G' = B' = 255 - gray
Custom: if grayscale: R=G=B=gray
contrastFactor = 259(contrast+255) / (255(259-contrast))
v = clamp(contrastFactor*(v-128)+128 + brightness)
v' = clamp( v*(1-strength) + (255-v)*strength )
Render scale = DPI / 72 → Fast 96 · Balanced 150 · High 220
Output format = PNG for Dark Mode & B&W · JPEG (q=0.92) for True Invert & Custom
Canvas cap = 6000px max dimension, regardless of DPI setting| Parameter | Value | Why |
|---|---|---|
| Dark Mode color space | HSL, lightness-only invert | Inverting raw RGB would also flip hue; HSL isolates lightness so colored content stays recognizable |
| B&W luminance weights | 0.299 / 0.587 / 0.114 | Standard ITU-R BT.601 luma coefficients — matches how human vision weights each channel's contribution to brightness |
| Custom operation order | grayscale → contrast → brightness → invert blend | Fixed order so any slider combination gives a predictable, reproducible result |
| Worker pool size | 2-4, based on CPU cores | Real multi-core parallelism for the pixel transform without over-subscribing low-end devices |
| Batch size | = pool size, pages processed in order | Bounds how many full-resolution pages are held in memory at once on very large documents |
| Output format choice | PNG (dark/bw) · JPEG q0.92 (invert/custom) | Flat two-tone content compresses smaller and cleaner as PNG; photographic/color content compresses smaller as JPEG |
Privacy
PDFcrest processes your PDF entirely inside your browser tab. The file is read from your device, rendered with pdf.js, color-transformed by a Web Worker, and rebuilt into a new PDF with pdf-lib — all as JavaScript running locally on your machine. At no point in this process is the file's content uploaded to a PDFcrest server or any third-party server, so PDFcrest cannot see, store, or log what's inside your PDF.
To be precise about what that does and doesn't mean: the page itself — its HTML, CSS, JavaScript, and the pdf.js/pdf-lib libraries it uses — loads from PDFcrest's servers once, the same as visiting any website. That initial page load needs an internet connection. What doesn't happen afterward is your PDF's content being sent anywhere: rendering, transforming, and rebuilding the file all happen locally once the page has loaded.
Honest Limitations
FAQ
Glossary
| Term | Definition |
|---|---|
| Portable Document Format — a file format that stores page layout, text, vector graphics, and images together, designed to render identically across devices and viewers. | |
| Color inversion | Replacing a color with its mathematical opposite by subtracting each RGB channel value from 255. |
| RGB | Red, Green, Blue — the additive color model screens use, where each channel ranges from 0 to 255. |
| Grayscale | An image or page reduced to shades of gray, where each pixel is a single brightness value instead of separate R, G, B values. |
| Dark mode | A transform (or app setting) that darkens light backgrounds and lightens dark text, typically while preserving hue — distinct from a full mathematical color inversion. |
| Negative image | An image where colors and tones are fully inverted, historically referring to a photographic negative. |
| Contrast | The difference in brightness between the lightest and darkest parts of an image or page. |
| Brightness | The overall lightness or darkness of an image, adjustable independently of contrast or color. |
| Color space | A specific model for representing color numerically — RGB and HSL are both color spaces, each useful for different kinds of transforms. |
| Raster image | An image made of a fixed grid of pixels (like a photo or scan), as opposed to vector graphics. |
| Vector graphics | Graphics defined by mathematical paths (lines, curves, shapes) rather than a pixel grid — scale without quality loss, but must be rasterized to apply a pixel-level color transform. |
| Scanned PDF | A PDF made of full-page raster images captured by a scanner or camera, rather than text and vector objects created directly in a PDF. |
| OCR | Optical Character Recognition — software that detects text within a raster image and adds it as a searchable, selectable text layer. |
| PDF rendering | The process of drawing a PDF page's content (text, vectors, images) onto a pixel grid, such as a screen or a canvas, for display or processing. |
| Client-side processing | Computation that happens on the user's own device, in the browser, rather than being sent to a server. |
| PDF export | Generating a new PDF file from processed content — in PDFcrest's case, embedding transformed page images (or unmodified original pages) into a rebuilt PDF. |
Inverting a PDF's colors is a well-defined pixel transform, but which mode fits your document — True Invert, Dark Mode, B&W Invert, or a Custom blend — depends on what the page actually contains and what you plan to do with the result afterward: read it on-screen, print it, or archive it. Use the tool above to compare modes on your own file before choosing.
References & Further Reading
Last updated: