Convert a PDF Page to PNG or JPEG – Free

Convert a PDF page to an image in your browser. Choose the page, PNG or JPEG output and a scale from 0.5 to 3, then preview and download the picture.

How to use the PDF to image tool

  1. Choose the document under PDF file.
  2. Type the page you want in Page number. An empty box means page 1.
  3. Pick PNG or JPEG under Format.
  4. Set Scale (0.5–3). Leaving it empty uses 1.5, which gives 108 pixels per inch.
  5. Select Render image. The Result box shows the pixel size and a preview appears below it.
  6. Select Download to save page.png or page.jpeg.

How scale maps to pixels

PDF pages are measured in points of 1/72 inch. At scale 1 the renderer, PDF.js, draws one pixel per point, which is 72 pixels per inch. The scale multiplies that, and fractional pixel counts are rounded up. The table shows the image size for the two most common page formats.

Scale  Pixels/inch  US Letter     A4
0.5    36           306 x 396     298 x 421
1      72           612 x 792     596 x 842
1.5    108          918 x 1188    893 x 1263
2      144          1224 x 1584   1191 x 1684
3      216          1836 x 2376   1786 x 2526

PDF to PNG or PDF to JPEG

PNG is lossless. Every pixel is stored as rendered, which suits text, diagrams and screenshots for documentation. JPEG is saved at quality 0.9 and discards some detail to save space, which suits scans and photos.

The difference depends on the page. A scanned A4 page at scale 1.5 came out at 1,148,050 bytes as PNG and 242,377 bytes as JPEG. A page of plain text at the same scale was 310,348 bytes as PNG and 325,761 bytes as JPEG, so JPEG was both larger and less crisp there.

Limits and error messages

One run renders one page. For several pages, change the page number and render again.

  • Use a scale between 0.5 and 3: the scale is outside the allowed range.
  • Page must be a whole number from 1 to 3: the page is not in the document. The upper bound is your page count.
  • The rendered page exceeds 24 megapixels. Use a lower scale: an A0 poster of 2384 by 3370 points renders at scale 1.7 and fails at 1.8.
  • Enter the correct PDF password: the file needs a password to open, and this page has no password field. Files that only restrict editing render normally.
  • Choose a file up to 60 MiB: the document is too large to load.

Where a page image is useful

A raster copy of a page helps wherever a PDF viewer is not available. Typical cases are thumbnails for a document list, a page pasted into a slide, wiki or issue tracker, input for OCR or an image model, and screenshots for visual regression tests of generated PDFs.

The page is drawn as a viewer would show it, on a white background and with any page rotation applied. If the PDF does not embed its fonts, the renderer substitutes fonts available to the browser, so glyph shapes can differ slightly from other viewers.

Frequently asked questions

What resolution does the exported image have?

Multiply the scale by 72 to get pixels per inch. The default 1.5 gives 108, and the maximum 3 gives 216. A US Letter page at scale 3 is 1836 by 2376 pixels.

Can I convert all pages of a PDF to images at once?

No. The tool renders a single page per run and returns one image file. Enter the next page number and select Render image again for each additional page you need.

Should I choose PNG or JPEG for a PDF page?

Choose PNG for text, line art and anything you will edit or compare pixel by pixel. Choose JPEG for scanned or photographic pages, where it is often several times smaller with little visible loss.

Why do I get an error about 24 megapixels?

Width times height of the rendered canvas may not exceed 24,000,000 pixels. Large-format pages hit that limit at high scale. Lower the scale until the page fits. Letter and A4 pages never reach it.

Does the image have a transparent background?

No. The page is painted on an opaque white canvas before export, in both formats. Areas of the page without content are white in the PNG and in the JPEG.

Is the PDF sent to a server for rendering?

No. PDF.js parses and draws the page inside your browser, and the canvas is exported to an image locally. The preview you see is that local file.

Related tools