Browser-based PDF tool · PDF → JPG or PNG

PDF to JPG Converter

Renders PDF pages to JPG or PNG images at 72 to 300 DPI and packs several pages into a ZIP.

Input

PDF files (.pdf), up to 50MB each

Drop your PDF file here or click to choose

.pdf

Runs as soon as a file is chosen; change an option to run again.

Files are processed on your device with nothing uploaded. Close the tab and they are gone.

Result

JPG or PNG, ready to download

Choose a file to see the result here.

PDF to JPG Converter

Operator: Abdulla Al Fahad. How tools are built and checked

A PDF page cannot be dropped into a slide, pasted into a chat or uploaded to a form that only takes pictures. The PDF to JPG Converter renders each page of a PDF to a JPG or PNG image at a resolution you choose between 72 and 300 DPI, using pdf.js, the engine behind Firefox's built-in PDF viewer. One page downloads as a single image; several pages are packed into a ZIP with zero-padded names so they sort in page order.

The document is parsed in a web worker, each page is painted onto a canvas at the requested scale and encoded by the browser's own image encoder, and thumbnails appear before you download. Conversion starts as soon as a file is chosen and runs again whenever you change the format, resolution, quality or page selection.

Key features

  • Embedded fonts, vector graphics, transparency and blend modes come out as pdf.js draws them on screen.
  • Five resolutions from 72 DPI (screen size) to 300 DPI (print), applied to the page's point dimensions with rotation honoured.
  • Page selection with 1-3, 5, 8- syntax, zero-padded file names, a thumbnail grid of the first twelve pages and per-page download buttons.
  • A 5000-pixel cap on the longest side prevents browser crashes on oversized pages and is reported in a warning rather than as a failure.

How pages become images

PDF pages are measured in points, 72 to the inch, so a US Letter page is 612 × 792 points and A4 is 595 × 842. The DPI setting is a multiplier on those dimensions: Letter at 72 DPI gives a 612 × 792 pixel image that matches on-screen size, 150 DPI gives 1275 × 1650, and 300 DPI gives 2550 × 3300. A4 lands at 1240 × 1754 at 150 DPI and 2480 × 3508 at 300. A page's /Rotate entry is applied before rendering, so a landscape page stored as a rotated portrait comes out as a landscape image.

JPG is the default output, encoded at 80%, 90% or 100% quality; PNG is lossless, and the quality option disappears when PNG is selected. Neither is see-through in practice: pdf.js lays a white background as it begins drawing a page, so PNG output is normally opaque, and for JPG the tool fills the canvas white itself as well, since JPEG has no transparency to keep.

To keep canvas memory in check the longest side of any image is capped at 5000 pixels. Even A3 at 300 DPI stays under it, but a 3000 × 3000 point poster asked for at 300 DPI would need 12,500 pixels per side and is rendered at 5000 instead, with a warning saying how many pages were affected. At 300 DPI the cap applies once a page's longest side exceeds 1200 points; at 150 DPI the threshold is 2400 points.

How it works

After the file passes the size and header checks, its bytes are handed to a pdf.js worker. For each selected page the tool asks pdf.js for the viewport at scale 1 (the page's size in points), computes the scale for the chosen DPI, lowers it if the longest side would pass 5000 pixels, and creates a canvas of the resulting size, which the tool fills white when the output is JPG.

pdf.js then paints the page onto the canvas, normally over a white background of its own: text with the embedded fonts, vector paths, images and the appearance of annotations such as stamps and filled form fields, though not comment pop-ups. The canvas is encoded with the browser's toBlob as image/jpeg at the quality you chose or as image/png, named with the page number padded to the document's digit count, and released before the next page. Two or more images go into a ZIP built with JSZip.

Common use cases

  • Posting a page from a brochure PDF to Instagram or LinkedIn, which accept images but not documents.
  • Dropping a chart from a PDF report into a PowerPoint or Google Slides deck as a picture.
  • Producing page thumbnails for a document library or an online listing of a printed catalogue.
  • Submitting a signed form to a portal whose upload field only accepts JPG or PNG.

How to use this tool

  1. Open the PDF in the tool; it is rendered at once as JPG at 150 DPI and 90% quality, and thumbnails appear on the right.
  2. Decide where the images are going before touching the options: PNG for text that must stay crisp, JPG for scans and photographs, then a Resolution of 72 to 150 DPI for screens or 200 to 300 for print.
  3. Enter only the pages you need in Pages, such as 1-3, 12, rather than rendering a whole report.
  4. Take Download ZIP, or the Download button beside a single file when one page is all you want.

Example

Settings for a 12-page A4 brochure (brochure.pdf)

Image format: JPG
Resolution: 150 DPI (sharp)
JPG quality: 90%
Pages: 1-3, 12

Result

brochure-images.zip (4 files)
12 pages in · 4 files out · 1.8 MB → 1.3 MB · 4 images at 150 DPI
  brochure-page-01.jpg   1240 × 1754
  brochure-page-02.jpg   1240 × 1754
  brochure-page-03.jpg   1240 × 1754
  brochure-page-12.jpg   1240 × 1754

Tips for best results

  • Match the resolution to the destination. 72 or 96 DPI is enough for a web page or a chat preview, 150 DPI for slides and screens of any size, and 200 or 300 DPI for print or for small print that must survive zooming.
  • Use the Pages field to render only what you need. A 40-page report at 300 DPI is 40 large images and a long wait; 7 or 3-5 gets you the pages you will actually post.
  • There is no step syntax for every other page. For the odd pages of a double-sided scan list them explicitly, 1, 3, 5, 7; duplicates and reversed ranges such as 5-3 are tolerated.

Edge cases to watch

Text in the image is no longer text. Nothing in a JPG or PNG can be selected, searched or read by a screen reader, so keep the PDF for anyone who needs the words rather than the picture.

JPG quality compounds. A page rendered at 80% and then re-saved by a photo app or a social network is compressed twice; render at 90% or 100% if the image will be processed again.

Zero-padding follows the document's page count, not the pages you picked. Page 7 of a 120-page PDF is named report-page-007.jpg, which keeps the files sortable but may surprise a script that expects page-7.

Common errors and how to fix them

This PDF is password-protected. Open it with Unlock PDF first, then try again.
pdf.js cannot decrypt the pages without the password, and this tool has no field for one. Unlock PDF removes the password when you know it; bring that plain copy back here to render.
This PDF has 12 pages, so page 15 does not exist.
The Pages field asks for a page beyond the end. Use the page count shown in the first summary chip, or an open-ended range like 10- for "page 10 to the last page".
One page is too large for 300 DPI, so it was rendered with the longest side at 5000px.
A warning, not a failure: the image is complete but smaller than requested. A lower DPI gives the same image without the warning; for more pixels, tile the poster in a graphics program.
This PDF could not be read. It may be damaged; try opening and re-saving it in a PDF viewer.
The structure is broken beyond what pdf.js can repair. Rebuild it with Save As or Print to PDF in a desktop viewer, then convert the new copy.

Best practices

  • Render at the highest resolution the destination can use and let that destination downscale; enlarging a 72 DPI image afterwards never recovers detail.
  • Keep the ZIP's file names. The zero-padded page numbers keep the images in order in any file browser and make it obvious which page an image came from months later.
  • For a document that is mostly text and will be read rather than displayed, consider whether an image is right at all; PDF to Word or PDF to Text keeps the words searchable.

Choosing between JPG and PNG for a rendered page

JPEG was designed for photographs: it divides the image into 8 × 8 pixel blocks and discards fine detail the eye is unlikely to notice in smooth gradients. Rendered text is the opposite of a photograph, all hard edges and high contrast, and that is exactly where the discarded detail shows up as grey halos around letters and faint ripples beside rules and table borders. At 90% quality the effect is slight on a 150 DPI page and invisible at 300 DPI; at 80% it becomes noticeable around small type.

PNG stores every pixel exactly, so a rendered text page is reproduced perfectly and compresses well because large areas are a single colour. The cost appears when a page contains a photograph or a scan: a PNG of a scanned A4 page at 300 DPI can run to 10 MB or more where the JPG would be under 1 MB. Text, diagrams and screenshots therefore go to PNG, scans and photographs to JPG.

Frequently asked questions

Why are my PNGs not transparent?

pdf.js fills the canvas white as it starts drawing, as the Firefox viewer does, so PNG output normally has an opaque white background; the tool adds its own white fill only for JPG. PNG here means lossless, not see-through.

How large will the images be?

Pixel size is the page's point size times DPI divided by 72: Letter is 1275 × 1650 at 150 DPI and 2550 × 3300 at 300 DPI, A4 is 1240 × 1754 and 2480 × 3508.

Can I get the original scans back out of a scanned PDF?

Not exactly. The page is rendered afresh at the DPI you choose rather than extracted, so picking the DPI the scan was made at gives an image of the same pixel size, but it has passed through the PDF's rendering and a new JPEG encoding.