# PDF to JPG

URL: https://hifreetools.com/pdf/pdf-to-jpg

> Open a PDF and turn every page into a JPG or PNG image. Pick the quality, preview the pages, and download them one by one or all at once. It runs in your browser, so your PDF is never uploaded.

## Quick answer

To convert a PDF to JPG, open it here, choose JPG or PNG and a quality level, and the tool renders each page to an image you can download — individually or all at once. It uses Mozilla's PDF.js to draw each page onto a canvas entirely in your browser, so your file is never uploaded, and there is no watermark or sign-up.

## Formula

- Output image size: imageWidth = pageWidth × scale, imageHeight = pageHeight × scale

Your PDF is read locally and parsed by PDF.js (the engine behind Firefox's PDF viewer). For each page, the tool builds a viewport at your chosen scale and draws the page onto an HTML canvas at that resolution. The canvas is then exported as a JPG (flattened on a white background) or PNG image. A higher scale produces a sharper, larger image; 1.5× is a good default, and 2–3× suits printing or zooming. Pages render one after another with a progress indicator, and the images stay in your browser until you download them. Nothing is sent to a server.

## Examples

- A Letter page at high quality: An 8.5 × 11 in (612 × 792 pt) page, scale 1.5× → A 918 × 1188 px image
- Every page of a 3-page PDF: A 3-page PDF, JPG, scale 2× → Three JPG images, one per page, at 2× resolution
- PNG for a page of line drawings and text: A page with line art, PNG, scale 2× → A crisp lossless PNG of the page

## FAQ

**Is my PDF uploaded to a server?**
No. The conversion runs entirely in your browser using Mozilla's PDF.js — each page is rendered locally to a canvas and exported as an image. Your file never leaves your device.

**JPG or PNG — which should I choose?**
JPG gives smaller files and is ideal for photographic or full-colour pages. PNG is lossless and keeps text and line art razor-sharp, at a larger file size. Pick PNG for diagrams and JPG for photos or to save space.

**How do I get a higher-resolution image?**
Raise the quality (scale): 1× is roughly 72 DPI, 2× about 144 DPI, and 3× about 216 DPI. Use a higher scale for printing or zooming; it produces larger images.

**Can I download all pages at once?**
Yes. Use 'Download all' to save every page in sequence, or click a single page's button to download just that one.

**Why is conversion slow for a big PDF?**
Rendering happens on your device, so very large documents or high scales use more memory and time. This tool renders every page, so if it's slow on an older device, lower the scale or first save just the pages you need with Split PDF.

**Is there a watermark or limit?**
No watermark and no fixed limit. The images are clean renders of your pages at the resolution you choose.


## Sources

- [Mozilla PDF.js — render PDFs in the browser](https://mozilla.github.io/pdf.js/)
- [MDN — HTMLCanvasElement.toDataURL()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "PDF to JPG", https://hifreetools.com/pdf/pdf-to-jpg
