Skip to content

Convert PDF to JPG or PNG on Windows Free

Convert PDF to JPG or PNG free on Windows using WSL and pdftoppm. Turn pages into images at any resolution, batch the whole file, all offline with no uploads.

MGMCSA Guru Team June 19, 2026 3 min read
A WSL terminal converting PDF pages into JPG and PNG images with pdftoppm on Windows

You need the pages of a PDF as images — to drop into a slide, post a preview, or run through something that only takes pictures. The convert-online route means uploading the whole document, which is a poor idea for anything you’d rather keep to yourself.

WSL turns PDF pages into JPG or PNG locally, for free, at whatever resolution you want. The tool is pdftoppm from the Poppler project: fast, reliable, and it never uploads a thing.

No WSL yet? See the WSL install guide.

Install the tool

pdftoppm ships in poppler-utils:

sudo apt update && sudo apt install -y poppler-utils

Confirm it:

pdftoppm -v

Convert every page to PNG

Give it the PDF, an output prefix, and the format. This renders each page to a numbered PNG:

pdftoppm -png input.pdf page

You get page-1.png, page-2.png, and so on. For JPG instead:

pdftoppm -jpeg input.pdf page

PNG is the safer default for documents because it stays sharp on text and line art. Use JPG when the pages are mostly photos and you want smaller files.

Set the resolution

Image sharpness is controlled by DPI with -r. The default is fairly low, so set it explicitly:

pdftoppm -png -r 300 input.pdf page

Choosing DPI with -r

-r 96 Small previews, thumbnails
-r 150 On-screen viewing, good balance
-r 300 Print quality, crisp text
-r 600 Very high detail, large files

If the images look soft, raise the DPI. If they’re enormous, lower it. For most uses, 150–300 covers it.

Convert only specific pages

Rendering a 200-page PDF when you need one page is wasteful. Use -f (first) and -l (last) to limit the range:

pdftoppm -png -r 300 -f 3 -l 3 input.pdf page

Setting both to 3 exports only page 3. A span works too — -f 5 -l 10 gives pages 5 through 10.

Batch several PDFs

To convert every PDF in a folder, each into its own image set:

for f in *.pdf; do
  name="${f%.pdf}"
  mkdir -p "$name"
  pdftoppm -png -r 200 "$f" "$name/page"
done

Each PDF gets a folder named after it, holding its page images. Originals are untouched.

Wrapping up

Converting a PDF to images on Windows is one command: pdftoppm -png -r 300 input.pdf page for crisp PNGs, -jpeg for smaller photo pages, and -f/-l to grab just the pages you want. The -r value controls sharpness versus file size.

It’s free, it batches, and it runs in WSL — so your documents never get uploaded. To go the other way and build a PDF from images, see convert images to PDF. If you only need the words, not pictures, see extract text from a PDF.

Frequently asked questions

How do I convert every page of a PDF to images?

pdftoppm renders each page to its own image file. Give it the input PDF, an output name prefix, and a format flag like -png or -jpeg, and it writes one numbered image per page. The original PDF is left unchanged.

What resolution should I use?

Set DPI with -r. 150 is fine for screen viewing, 300 is good for print or sharp text, and higher just makes bigger files. If the images look soft, raise the DPI; if they're huge, lower it.

Should I export JPG or PNG?

Use PNG for pages with text and line art — it stays crisp and lossless. Use JPG for pages that are mostly photos, where the file is smaller and the slight compression isn't noticeable. PNG is the safer default for documents.

Does converting a PDF to images upload it anywhere?

No. pdftoppm runs locally in WSL, so the PDF and the images stay on your machine. That's the reason to convert offline instead of using a website for confidential documents.

Can I convert just one page instead of the whole PDF?

Yes. Use -f for the first page and -l for the last. Setting both to the same number, like -f 3 -l 3, exports only that page. It's faster than rendering the whole document when you need a single page.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.