PDF to PNG
Published Updated
Render each page of a PDF of up to 60 pages as a 300 DPI PNG, with all pages also packed into one ZIP.
Fixed at 300 DPI, packed as a ZIP
This tool has no settings. As soon as the PDF is read, every page is drawn at 300 DPI with pdf.js and saved as a lossless PNG (a page more than 15,728 points long gets less, as shown below). With more than one page you also get a ZIP, named after your file, with the pages numbered in order.
PNG suits pages with sharp text, diagrams and flat colour, where JPEG would leave faint blocks around letters. It is a poor choice for scanned photos, which compress badly without loss.
What you get per page
| Page size | PNG size in pixels | Raw pixels in memory |
|---|---|---|
| A4 (595 x 842 pt) | 2,481 x 3,508 | about 35 MB |
| US Letter (612 x 792 pt) | 2,550 x 3,301 | about 34 MB |
| A5 (420 x 595 pt) | 1,749 x 2,481 | about 17 MB |
Width and height are points x 300 / 72, rounded up. The PNG file on disk is much smaller than the raw figure; how much smaller depends on the content.
Not transparent, and not text
The images have a white background even where the PDF page is empty, because pdf.js paints the page white before drawing it. The words become pixels, so search and copy no longer work. Keep the PDF if you still need either.
Four browsers, four PNG encoders
The site's own PDF to PNG component was run in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app) on generated PDFs. The pixels are the same size everywhere; the file sizes are not, because each browser compresses PNG its own way.
| Test page | Chrome 156 | Chromium 153 | Firefox 155 | WebKit build |
|---|---|---|---|---|
| US Letter, 52 lines of 10-point text (2,995-byte PDF) | 1,326,986 bytes | 1,326,986 bytes | 1,125,021 bytes | 897,906 bytes |
| US Letter, a photo across the top half (750,345-byte PDF) | 4,140,322 bytes | 4,146,741 bytes | 4,058,776 bytes | 4,150,981 bytes |
| A4, one half-transparent red shape and a line of text | 165,581 bytes | 165,581 bytes | 69,034 bytes | 185,169 bytes |
| 10 text pages: the ZIP | 12,636,707 bytes; 1.1 s | 12,636,707 bytes; 1.1 s | 10,650,905 bytes; 1.4 s | 7,937,335 bytes; 1.8 s |
Times run from adding the file to the finished ZIP. Chrome and Chromium write RGB PNGs; Firefox and the WebKit build add an alpha channel, but every pixel of every test image was fully opaque, with the empty parts of each page white. A 61-page PDF was refused at once with the 60-page message in all four browsers.
Very long pages: the tool keeps each PNG within 65,535 pixels a side, the largest canvas all four browsers drew in a separate check (at 65,536 pixels Chrome and Chromium gave a blank canvas and Firefox an error). A page longer than that at 300 DPI, over 15,728 points, is drawn at the highest DPI that fits, and a note under the results names it: a 16,000 x 200 point page becomes 65,535 x 820 pixels at 294 DPI, a 40,000-point one 65,535 x 328 at 117 DPI. The other pages of the file stay at 300 DPI.
Rotation, crop box, comments and form fields
The site's own PDF to PNG component converted two generated PDFs of 5,876 and 2,068 bytes, measured in Google Chrome 157, Firefox 155 and the WebKit build. The three agreed on every row: the same pixel sizes, and the same areas drawn or left white.
| In the PDF | In the PNG |
|---|---|
| A Letter page with /Rotate 90 | 3,301 x 2,550 pixels, turned clockwise as a PDF viewer shows it |
| A Letter page with a crop box of 300 x 400 points | 1,250 x 1,667 pixels: only what lies inside the crop box |
| A page of 306 x 396 units with /UserUnit 2 (units of 2/72 inch) | 2,550 x 3,301 pixels, the size of a Letter page |
| A comment (a filled square) with a stored appearance, Print flag on or off | Drawn |
| The same comment flagged Hidden, or flagged NoView | Left out |
| A square comment or a highlight with no stored appearance | Drawn in the colours the file gives them |
| A sticky note with no stored appearance, and a link with a 4-point border | No note icon and no border |
| A checked and an unchecked checkbox | The checked box's stored look; nothing for the unchecked one |
| A text field with a value and a stored appearance | The stored appearance |
| A text field with a value and no stored appearance | Blank. If the form sets NeedAppearances, the values of both text fields are drawn as text instead |
| A layer that the file's default view lists as off, and one listed as on | Only the layer that is on |
The test files draw plain filled shapes, so fonts play no part except in the NeedAppearances row. The PNG follows the rules for the screen, not for print: the Print flag made no difference, and NoView did.
These entries come from the PDF standard, ISO 32000-1 (Adobe's copy). Its Rotate entry turns a page clockwise "when displayed or printed", the crop box is the region the page is clipped to, the Hidden and NoView flags keep an annotation off the screen, and NeedAppearances asks the reader to construct the appearances of the form's fields.
From PDF pages to PNG files
Step 1
Add a PDF of up to 60 pages
Longer files are refused with a message, because every page is held in memory as a 300 DPI PNG.
Step 2
Wait for the render
Conversion starts on its own. A line shows which page is being drawn.
Step 3
Download pages or the ZIP
Each page has its own button. With two or more pages you also get one ZIP of all of them.
Next steps with other tools
- Smaller files or a lower DPI: PDF to JPG.
- More than 60 pages: cut the file with PDF Split first.
- Pictures stored inside the PDF: Extract Images from PDF.
PDF to PNG, answered
What size are the PNG images?
300 DPI, the only setting, for every page up to about 218 inches long. An A4 page becomes 2,481 x 3,508 pixels and a US Letter page 2,550 x 3,301 pixels (792 x 300 / 72 lands a hair above 3,300 and is rounded up). PDF to JPG offers 150 and 96 DPI if you want smaller files.
Will the PNG have a transparent background?
No. The preview sits on a checkerboard, but the PDF renderer fills the page with white before drawing, so blank areas in the PNG are opaque white.
Why does it stop at 60 pages?
Every page is kept as a full 300 DPI PNG and then copied into the ZIP, so a long scanned PDF could need around a gigabyte at once. Split the file into parts of 60 pages or fewer and convert each part.
How are the files in the ZIP named?
After your PDF, with the page number padded to the same width, so a 12-page report.pdf gives report-page-01.png to report-page-12.png inside report-pages.zip. They sort in page order in any file manager.
Why are the PNG files so much bigger than JPG?
PNG keeps every pixel exactly, and a 300 DPI page has almost nine million of them. Text and line art compress well; photos and scans do not. For pages that are mostly photographs, JPG at the same DPI is far smaller.
Does a see-through shape on the page stay see-through in the PNG?
No. For an A4 page with a red rectangle drawn at 50% opacity and nothing behind it, every pixel of the PNG was fully opaque in all four browsers, and the empty parts were white. Firefox 155 and the WebKit build still store an alpha channel, set to opaque everywhere.
How large is the ZIP for a multi-page PDF?
Roughly the sum of the PNGs. Ten Letter pages of dense text gave a ZIP of 12,636,707 bytes in Chrome 156, 10,650,905 in Firefox 155 and 7,937,335 in the WebKit build, from a 23,874-byte PDF.
What happens to a page longer than about 218 inches?
It is drawn at the highest DPI that keeps the PNG within 65,535 pixels a side, and a note under the results says which DPI it got. A 16,000 x 200 point banner comes out 65,535 x 820 pixels at 294 DPI; the other pages keep 300 DPI.
Why is the PNG of a photo page bigger than the whole PDF?
The PDF keeps the photo as a compressed JPEG, while the PNG stores every one of the page's 8.4 million pixels without loss. A 750,345-byte PDF with one photo became a PNG of about 4.1 MB in each browser. PDF to JPG gives much smaller files for such pages.
Do comments, highlights and form entries appear in the PNG?
Most do. In a generated test file a square comment, a highlight and a checked checkbox were drawn, while comments flagged Hidden or NoView, a sticky-note icon and a link border were left out, in Chrome 157, Firefox 155 and the WebKit build. A text field with a value but no stored appearance came out blank, unless the form sets NeedAppearances.
Does the PNG follow the page's rotation and crop box?
Yes. A Letter page with /Rotate 90 became a 3,301 x 2,550 landscape PNG, and a page cropped to 300 x 400 points became 1,250 x 1,667 pixels, without the area outside the crop box. A page that sets /UserUnit 2 is drawn at the size that unit gives it.
Why is a layer missing from my PNG?
The PNG shows the layers that the file's default view switches on. In the test file a layer listed as off was left out in all three browsers, and a layer listed as on was drawn. To include a layer, the file's default view has to switch it on.