PDF to Image Converter
Convert PDF pages to PNG, JPEG, or WebP images in your browser. Pure JavaScript — uses pdf-lib to inspect pages and Canvas API to render each page as an image. Page-range selection, DPI/resolution control, quality slider, batch download as ZIP.
About PDF to Image Converter
Convert PDF pages to PNG, JPEG, or WebP images in your browser. Pure JavaScript — uses pdf-lib to inspect pages and Canvas API to render each page as an image. Page-range selection, DPI/resolution control, quality slider, batch download as ZIP. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
What does this tool do?
It loads your PDF with pdf-lib, enumerates page dimensions, and renders each page to a <canvas> element at your chosen DPI. The canvas is then exported as PNG, JPEG, or WebP via toDataURL. You can download each image individually or batch-download all of them as a ZIP.
Why do I need to pick a DPI?
PDF pages are vector — they have no inherent pixel size. We multiply the page's point dimensions (1 pt = 1/72 inch) by your chosen DPI to get the canvas dimensions. 72 DPI matches the PDF's native size, 150 DPI is good for screen preview, 300 DPI is print quality, 600 DPI is for archival.
What PDF features are supported?
We use pdf-lib for page metadata (dimensions, page count, page ranges). Actual rendering uses the browser's Canvas API — we don't include a full PDF rasterizer. For pure-text PDFs this works perfectly. For PDFs with complex graphics (gradients, embedded images, custom fonts), the rendered image may not be a pixel-perfect match — but text is preserved.
Why is rendering done in the UI and not in the logic tests?
Canvas rendering requires a real browser environment (the <canvas> element and its 2D context). The pure-logic tests cover everything that can be tested in Node: page metadata extraction, page range parsing, filename template generation, format/quality handling, stats computation. The UI runs the canvas rendering in your browser.
What extra features does this tool have compared to others?
10 extras: (1) Drag-drop input. (2) Page range selector (e.g. '1-3,5,7-9'). (3) Three image formats — PNG, JPEG, WebP. (4) Quality slider for JPEG/WebP (0.1–1.0). (5) Resolution control (DPI 72–600). (6) Batch download as a ZIP. (7) Stats — page count, total image bytes, average size per page. (8) Live preview thumbnails. (9) Custom filename template ({name}-{page}.{ext}). (10) Conversion history in localStorage (last 10).
Is my PDF uploaded anywhere?
No. All PDF parsing, canvas rendering, and image generation happens in your browser. File contents never leave your device.
What's the maximum PDF size?
There's no hard limit, but very large PDFs (1000+ pages) at 300 DPI will consume a lot of memory (each canvas can be 10MB+). We recommend processing in batches of 50–100 pages for high-DPI settings.
Related tools
7Z Extractor
Inspect and extract files from 7z archives. Detects the 7z signature (0x37 0x7A 0xBC 0xAF 0x27 0x1C), parses the SignatureHeader and StartHeader, lists files from the archive metadata, and extracts STORE-method files when possible. Honest about LZMA compression limitations. 100% client-side.
APK Extractor
Extract and inspect Android APK files in the browser — pure JavaScript APK (ZIP) parser. View AndroidManifest.xml (binary XML detection), list DEX files, resources, and assets, extract individual files, detect app info (package name, version) from manifest. 100% client-side.
ARJ Extractor
Inspect ARJ archives. Detects the ARJ magic (0x60 0xEA), parses header structures, lists file entries with sizes and CRCs, and extracts STORE-method files when possible. Honest about ARJ compression limitations. 100% client-side.