PDF to PNG
How to convert a PDF to PNG
- Add a PDF with the box above, or drop it onto the box.
- Choose the DPI: 72 for a small preview, 150 for the screen, 300 for print or heavy zooming.
- Enter the pages you want (for example 1-2, 4) or leave the field empty for all of them.
- Tick Transparent background only if you want the unpainted parts of the page to be see-through.
- Click Convert to PNG, then save single pages or take Download all as ZIP.
What this PDF to PNG converter does
Each page you pick is painted onto a canvas by pdf.js and written out as a PNG. You get one file per page, named like text-5-pages-page-1.png.
We converted a 2.7 MB PDF full of photos while logging traffic: 13 requests, none with a body, and none holding the file's contents. The outside hosts were Google's ad and analytics servers and jsDelivr, which hosts pdf.js and the ZIP library, hash-checked. We used Chromium alone.
PNG or JPG for a PDF page
PNG stores every pixel, so lines and letters stay crisp. JPG throws detail away to get small files, which suits photographs.
On our plain text page at 150 DPI the PNG was 211,737 bytes and the JPG at quality 90 was 180,277, 17 percent more. On a page with photos the gap opens up: the PNG was 3,091,322 bytes, while the JPG at quality 95 was 509,923 and at quality 85 was 190,747. A scanned page behaved the same way (2,540,073 bytes as PNG, 410,220 as JPG). So use PNG for text, tables, diagrams and screenshots, and PDF to JPG for scans and pages full of pictures. When a PNG passes 2 MB, this page adds a note that says so.
The transparent background option
A PDF page has no colour of its own. Viewers show it white, and this tool does the same unless you tick Transparent background. With the box ticked, every part of the page that nothing was drawn on gets an alpha value of 0. We read the top-left corner of a text page back with ImageMagick: it was white at full opacity without the box and fully transparent with it, and the file dropped from 211,737 to 195,215 bytes.
It only matters when the page has empty areas, such as a logo or diagram you want to place on another colour. On the photo page the size barely moved (3,091,322 against 3,091,469 bytes).
Pixel sizes and file sizes by DPI
One PDF point is 1/72 inch, so pixels equal points times DPI divided by 72. An A4 page (595 by 842 points) comes out at 596 by 842 pixels at 72 DPI, 1,241 by 1,754 at 150 and 2,481 by 3,508 at 300. PNG has no quality slider, so a smaller file means a lower DPI: on the photo page, 150 to 300 DPI took the PNG from 3.1 MB to 5.1 MB. Runs took 0.2 to 0.9 seconds.
Page ranges and the ZIP download
Type numbers or ranges in the Pages field. 2-3 returned two images, and page 9 of a 5-page file gave a message and no files. With two or more PNGs, Download all as ZIP appears. Our 5-page file gave a 1,061,590 byte archive for PNGs totalling 1,060,958 bytes, which passed unzip -t.
What it will not convert
The tool takes 20 PDFs at a time, each up to 200 MB, and makes at most 200 images per run. The 201-page test file was turned down with a request for a page range. A page over 16,384 pixels on a side or 100 megapixels is refused with a note to lower the DPI (our 200-inch square page failed even at 72). Password-locked PDFs stop with a message to remove the password first, and anything that is not a PDF is named in the error. Text, links and form fields become pixels, so use PDF to text for the words. Photos stored inside the PDF are not extracted either.
Where to go next
To build a PDF from pictures instead, open Image to PDF. To keep a few pages as a PDF, not as pictures, use Extract PDF pages.
Measured results
| PDF page and settings | Pixels | PNG bytes | Same page as JPG, quality 90 |
|---|---|---|---|
| Text page 1, 72 DPI | 596 by 842 | 74,890 | 43,949 |
| Text page 1, 150 DPI | 1,241 by 1,754 | 211,737 | 180,277 |
| Text page 1, 300 DPI | 2,481 by 3,508 | 545,593 | 464,528 |
| Text page 1, 150 DPI, transparent | 1,241 by 1,754 | 195,215 | not run |
| Photo page 1, 72 DPI | 596 by 842 | 947,815 | not run |
| Photo page 1, 150 DPI | 1,241 by 1,754 | 3,091,322 | not run (190,747 at quality 85) |
| Photo page 1, 300 DPI | 2,481 by 3,508 | 5,088,760 | not run (753,213 at quality 85) |
| Scanned page 1, 150 DPI | 1,241 by 1,754 | 2,540,073 | 410,220 |
Prefer desktop software?
Choose a desktop PDF editor when the text has to stay editable, when you need a precise print size, or when the file has hundreds of pages. You can find Foxit PDF Editor and Nitro PDF Pro on GramFile. Once the pictures exist, XnView MP can browse, rename and batch-convert them.
Frequently asked questions
Is my PDF uploaded to a server?
No. The browser reads the file and draws the pages on your device. In our request log no request had a body, and none contained the file.
How do I get a transparent background?
Tick Transparent background before converting. Areas the PDF never painted become see-through. A page filled by a photo or scan has no such areas.
Why is my PNG so big?
PNG keeps every pixel. A text page at 150 DPI was 211,737 bytes but a page with photos was 3,091,322. Lower the DPI, or use PDF to JPG for such pages.
Will the text still be selectable?
No, it becomes part of the picture. Use PDF to text if you need to copy the words.
PDF to PNG or PDF to JPG?
PNG for text, diagrams and anything with transparency. JPG for scans and photos, where it can be six to sixteen times smaller in our tests.