Skip to content
100% local · 0 KB uploadedCompress PDF

How to Convert a PDF to Grayscale

Verified local-first workflow

🔒 Your files never leave your device. All processing happens locally in your browser.

Share this guide

Shares only the public page link — never your files.

XWhatsApp

Converting a color PDF to grayscale removes color ink before printing, standardizes mixed-color scans into clean monochrome, and avoids surprises when a black-and-white laser printer maps light yellow or cyan poorly. IXPDF's Grayscale PDF tool converts pages locally in a Web Worker using ITU-R BT.709 luminance weighting — your document never leaves your device.

Honest note: browser grayscale rasterizes pages
Browser JavaScript PDF libraries cannot reliably rewrite arbitrary CMYK, ICC, and spot color streams inside vector PDFs in place. Instead, IXPDF renders each page via PDF.js onto an OffscreenCanvas, converts pixels to grayscale, and packages those monochrome images back into a PDF at the original 1x point dimensions. That means selectable text, vector paths, hyperlinks, and form fields become flat raster images.

How BT.709 luminance conversion works

Human eyes perceive green as much brighter than blue and noticeably brighter than red. A naive channel average like (R + G + B) / 3 makes saturated greens look too dark and bright blues look washed out. IXPDF applies standard ITU-R BT.709 perceptual luminance weights to every pixel:

Y = 0.2126 R + 0.7152 G + 0.0722 B (computed deterministically in integer arithmetic across the RGBA buffer while preserving alpha). Before rendering, the canvas is painted opaque white so transparent PDF regions do not turn black when encoded as JPEG.

Choosing 100, 150, or 200 DPI (and JPEG vs. PNG)

IXPDF renders pages at scale = dpi / 72 and preserves the original page width and height in PDF points (72 points = 1 inch). Picking the right combination prevents bloated files or blurry typography:

  • 100 DPI (smaller file): Suitable for quick reading drafts, wide slide decks, or large multipage handouts where compact file size matters more than crisp serif edges.
  • 150 DPI (balanced default): Good compromise for everyday office printing, invoices, and normal body text (10–12 pt) without excessive memory pressure.
  • 200 DPI (sharper text): Better for dense spreadsheets, legal agreements with fine print, or technical diagrams. Expect noticeably larger output and slower rendering on long documents.
  • JPEG vs. PNG: JPEG (default 85% quality, adjustable from 30% to 100%) keeps photo-heavy or multi-page outputs small. Lossless PNG avoids compression halos around black-on-white text and line art, at the cost of much larger byte size.

Step-by-step: convert a PDF to grayscale locally

  1. Open Grayscale PDF. Go to /tools/grayscale-pdf/ and drop your PDF onto the drop zone (up to the 100 MiB browser memory guardrail).
  2. Pick render resolution (DPI). Start with 150 DPI for general use, or step up to 200 DPI if the document contains small footnotes or narrow tables.
  3. Select JPEG or PNG. Keep JPEG at 80–85% quality for compact size, or switch to PNG for sharp monochrome diagrams.
  4. Run and verify. Click Run Grayscale PDF. PDF.js renders one page at a time and cleans up each page buffer immediately to keep tab memory bounded. Download the -grayscale.pdf result and zoom in to inspect text legibility.

Failure modes & browser limits

  • Output file is larger than the input: Vector PDFs store text as compact font glyph instructions. Rasterizing every page into bitmaps replaces kilobytes of vectors with megabytes of pixels. Lower DPI to 100–150 or use JPEG at 75–85% quality if size matters.
  • Need vector text or print-press Gray Gamma / CMYK? Use a desktop pre-press tool such as Ghostscript (-sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray) or Adobe Acrobat Pro's Preflight color conversion so vector glyphs stay vectors.
  • NO_OFFSCREEN_CANVAS error: IXPDF requires a modern browser with Worker OffscreenCanvas support (current Chrome, Edge, Firefox, and Safari). Legacy browsers or restricted WebViews may block offscreen rendering.
  • Encrypted PDFs: Password-protected files cannot be rendered or converted until unlocked locally with the password first.

Convert your PDF to grayscale locally

Test 100, 150, or 200 DPI right in your browser — your file stays on your device from start to finish.

Open Grayscale PDF

Try it now

Ready to put this into practice?

Run the tool locally in your browser — no upload, no account, no watermarks. Your file never leaves your device.