Convert PDF to JPG or PNG: Page Ranges and Resolution
Turn selected PDF pages into JPG or PNG images in your browser, with page-range syntax, resolution (DPI) and file size compared.
Contents
Sometimes a PDF is the wrong format. You want to paste just one slide from a meeting deck into a team chat. You want to post an event flyer that arrived as a PDF on social media. The attachment field on an application form accepts only JPG or PNG. In every case the fix is the same: turn a specific page of the PDF into a single image.
You could take a screenshot of the PDF viewer, but the image size is then fixed by whatever size the page was displayed at, and fitting a whole page on screen makes the text small. For several pages you would have to turn the page and crop each time.
PDF to JPG/PNG converter exports the pages you specify by number as images. The PDF is processed inside your browser and is never sent to a server, so you can use it for confidential material or documents with names on them. Here I converted a four-page PDF with different paper sizes and checked the pixel dimensions and file sizes of the resulting images.
The PDF I tested
sample-handout.pdf (about 800 KB) is a four-page PDF made for this test. Save it and you can follow the same steps.
| Page | Content | Paper |
|---|---|---|
| 1 | Handout with 10-point body text, a table and 7-point footnotes | A4 portrait |
| 2 | Flyer with a large photo | A4 portrait |
| 3 | Slide with a bar chart | 16:9 (960×540 points) |
| 4 | Poster with a photo | A1 portrait |
The 960×540 points of page 3 is the same size you get when you export a 16:9 slide to PDF from PowerPoint and similar tools.
Steps to turn one slide into a PNG
1. Choose the PDF
Open the tool and pick one PDF under “PDF file”. When loading finishes, the file name and total page count appear below it, as in “sample-handout.pdf (4 pages)”, and the “Convert to images” button becomes available. The PDF can be up to 50 MiB, and a PDF that asks for a password when opened cannot be converted.
2. Set the image format and pages
Under “Image format”, choose JPG (JPEG) or PNG. I compare the two later; since this was a chart slide, I chose “PNG”.
In “Page numbers or ranges”, enter the numbers of the pages you want as images. Numbers count the first page of the PDF as 1. This can differ from the printed page number (a “p.1” that does not count the cover, for example), so check in your PDF viewer which sheet the page actually is.
| Input | Pages exported |
|---|---|
| (blank) | All pages |
3 |
Page 3 only |
1,3-5 |
Page 1 and pages 3 to 5 |
4,1-2,2 |
Pages 1, 2 and 4 (duplicates counted once, in PDF order) |
As the last example shows, reordering the entries does not change the output order, which follows the PDF, and naming the same page twice still produces only one image.
3. Press “Convert to images”, then save with “Download result”
When you press “Convert to images”, progress appears, such as “Converting page 3 (1/1)”. When it finishes, “Conversion complete. Use the download link to save your file.” is displayed and the “Download result” button appears.
When you specify a single page, the image file is saved as is. Here it was named sample-handout-p003.png. The file name is the original PDF name followed by the page number within the PDF, padded to three digits (or to the digit count of the page total for PDFs of 1,000 pages or more).
If you change the pages or the format, the save button disappears. Press “Convert to images” again to regenerate.
Multiple pages come as one ZIP
With the page field left blank, all four pages were converted and a single ZIP named sample-handout-images.zip was saved. It contains one image per page, from sample-handout-p001.jpg to sample-handout-p004.jpg. Because the numbers are zero-padded, sorting by name in Explorer or Finder keeps the pages in order.
You can convert up to 50 pages at a time. Trying to convert a 60-page PDF with the field blank showed “Select up to 50 pages at a time. Split the range into smaller batches.” In that case, convert twice, for example 1-50 and 51-60. The file names carry the page number within the PDF, so if you move the contents of both ZIPs into one folder, the numbers do not collide.
How big the exported images are
These are the image sizes from converting the four pages.
| Page | Paper | Image size in pixels |
|---|---|---|
| 1, 2 | A4 portrait | 1190×1683 |
| 3 | 16:9 slide | 1920×1080 |
| 4 | A1 portrait | 2893×4096 |
By default the tool renders at 144 pixels per inch (144 dpi). A4 is about 8.27 inches wide, which gives a width of about 1190 pixels. A 16:9 slide measures 13.33×7.5 inches, so it came out as exactly 1920×1080, a full HD image. That is large enough for showing on a screen or pasting into a chat or social media.
Left as is, a large sheet would produce a huge image, so pages are scaled down to fit within 4,096 pixels on the long side and 12 megapixels in total. The A1 poster was held to 4,096 pixels on its long side, which works out to about 124 pixels per inch. If you need to read fine text on the poster, zoom in on the image to check.
There is no setting to raise the resolution, so the output is not suited to large prints. For printing, use the PDF itself rather than an image, because text and figures come out sharper.
How JPG and PNG differ
I exported the same four pages as JPG and as PNG and compared file sizes.
| Page | JPG | PNG |
|---|---|---|
| 1 (text and table) | 250 KB | 295 KB |
| 2 (flyer with a photo) | 245 KB | 1.84 MB |
| 3 (chart slide) | 75 KB | 91 KB |
| 4 (A1 poster) | 1.76 MB | 4.88 MB |
| ZIP of 4 pages | 2.33 MB | 7.11 MB |
The gap widens on pages with a large photo. For page 2, the PNG was more than seven times the size of the JPG. PNG stores an image without degrading it, so areas where color changes finely, such as photos, take up more space. On pages where the same colors run on, such as text, tables and charts, the difference from JPG stayed around 20 percent.
What about quality? Enlarging the 7-point footnote on page 1 eight times and placing the JPG and PNG side by side, the text was nearly indistinguishable and perfectly readable in both. The JPG quality is fixed by the tool and cannot be changed.
As a rule of thumb, choose JPG for photo-heavy pages and for flyers you will post on social media. Choose PNG for figures and charts that you will paste into slides or documents and may later crop or edit. Areas that are transparent in the PDF are painted white on export, so choosing PNG does not give you a transparent image.
Page ranges that cause an error
Entering 2-5 for a four-page PDF created no image and showed “Check the page range. Enter existing page numbers, for example 1,3-5.” When the end of a range goes past the PDF’s page count, the tool does not convert just the pages in the range that exist.
The same message appears when you use full-width symbols, as in 3~5, or write a range backwards, as in 5-3. Type the numbers, hyphen and commas in half-width characters. To convert through to the end, close the range with the total page count shown next to the file name, which for the example above is 2-4.
What to do after you have images
If a form sets a size limit such as “200 KB or less”, you can compress the exported JPG to the size you specify with the image compressor. To set pixel dimensions, such as making every image 1000 pixels wide, use the batch image resizer. The steps are covered in “Batch resize portrait and landscape images and save them as a ZIP”.
Once a page is an image, the text in the PDF can no longer be selected or searched. If you want to pull out pages while keeping the text, make a PDF of just the pages you need with the PDF splitter. Conversely, to gather photos taken on a smartphone into a PDF, use the image to PDF tool, and to combine several PDFs into one, see “Combine several PDFs into one without uploading them: reordering, mixed A3 pages, bookmarks and passwords”.
Test environment
- PDF to JPG/PNG converter (operated in the English interface), Chromium via Playwright
- The test PDF was created with Python ReportLab 5.0.1. The photo areas are programmatically generated images
- The pixel dimensions and file sizes of the exported images were checked with Python Pillow