Menu
Advertisement

PDF Pages to PNG Online

Save PDF pages as PNG images with crisp text and clean lines, at the resolution you choose.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

When to convert a PDF to PNG

PNG is lossless, so it keeps the hard edges of text, charts and diagrams exactly. JPG shrinks files by blurring tiny details, which looks fine in a photo and looks smudgy around letters. That is why a PDF to PNG conversion is the better pick for documents, slides and screenshots.

The price is size. A PNG of a full page is usually larger than the JPG of the same page, and a page full of photos can be much larger. A simple page of black text on white compresses well in PNG, so the difference there can be small. Pages are drawn on a white background, so PNG here does not give you transparency.

The tool draws the pages in your browser. Your files are never uploaded: the work happens in your browser, so nothing leaves your device. Pick the resolution (72, 150 or 300 dpi), choose the pages, and download one image or a ZIP.

What to know about PNG and JPG

  • PNG is lossless: it stores every pixel exactly. JPG is lossy: it throws away detail the eye does not notice much.
  • Lossy compression works well on smooth photos and badly on sharp edges, which is why text in a JPG gets fuzzy halos.
  • Flat colors and repeating areas compress well in PNG. Photos with noise and gradients do not.
  • The resolution matters as much as the format: a 300 dpi page has four times the pixels of a 150 dpi page, and a much larger file.
  • With PyMuPDF a page becomes a PNG in two lines of code, as the example below shows.

How to save PDF pages as PNG

  1. Open your PDF

    Drop the file on the page or choose it. If it needs a password, type it.

  2. Check the format

    PNG is already selected here. You can switch to JPG any time.

  3. Choose resolution and pages

    Pick Screen, Standard or High, then click pages or type ranges like 2-4.

  4. Convert and download

    Press Convert to PNG. One page is one image, several pages are a ZIP.

PNG or JPG for a PDF page

Which format fits which kind of page.

Page containsBetter formatWhy
Mostly textPNGLetters stay sharp, and plain pages compress well
Charts, diagrams, line artPNGThin lines and flat colors stay clean
ScreenshotsPNGSmall text and interface edges stay clear
PhotosJPGMuch smaller files, and the loss is hard to see
Scanned pagesJPGA scan is a photo, so PNG is large with no gain

PDF to PNG examples

A slide to use in a document

Settings

Format: PNG Resolution: Standard (150 dpi) Pages: 4

Slides have big text and flat colors, so PNG stays sharp at a reasonable size.

A diagram with thin lines

Settings

Format: PNG Resolution: High (300 dpi) Pages: 1

Thin lines survive best at a high dpi in a lossless format. Expect a larger file.

Do the same in Python

Python (PyMuPDF)
import pymupdf
doc = pymupdf.open("slides.pdf")doc[0].get_pixmap(dpi=150).save("slide-1.png")

get_pixmap renders the first page at 150 dpi and save writes it as a PNG, picked by the file name.

Common PDF to PNG mistakes

  • Converting a scanned or photo-heavy PDF to PNG. The files get big with no visible gain, so use JPG.
  • Choosing 300 dpi for every page of a long document. A ZIP of high-resolution PNGs can be very large.
  • Expecting a transparent background. Pages are drawn on white.
  • Expecting selectable text in the PNG. It is a picture, so run the PDF to Text tool if you need the words.

PDF to PNG FAQ

Is PNG better than JPG for a PDF?

For pages with text, line art or screenshots, yes: edges stay sharp. For photos, JPG gives much smaller files with little visible loss.

Why is my PNG bigger than the JPG?

PNG keeps every pixel exactly, while JPG discards fine detail. A page with photos shows the biggest gap.

Is the PNG transparent?

No. Pages are drawn on a white background, so the PNG has no transparency.

What resolution should I use for PNG?

150 dpi suits screens and documents. Choose 300 dpi for print or fine lines, and 72 dpi for a small preview.

Are my pages uploaded to a server?

No. The conversion runs in your browser and the file stays on your device.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started