# PDF to JPG: One JPG Picture per Page

> Save every page of a PDF as a JPG photo file for email, chat apps or upload forms that refuse PDFs. Pick 72, 150 or 300 dpi; pages are drawn in your browser.

Use it online (free, runs in your browser): https://directory.milunir.com/pdf-tools/pdf-converters/pdf-to-image-converter/pdf-to-jpg/

Job portals, visa forms and chat apps often take a photo but not a PDF. JPG keeps each page small enough to attach, at the cost of slight blur around fine print.

## Worked example

- Save as: JPG
- Resolution: Sharp 150 dpi
- Pages: All pages
- JPG quality: 90

Result: Images: 3 images, JPG Page 1 size: 1275 × 1650 px Total size: 75 KB

## How it works

`pixel width = round(page width in points × dpi ÷ 72), pixel height = round(page height in points × dpi ÷ 72)`

- `points`: the page size stored in the PDF, 72 points to the inch
- `dpi`: the resolution picked: 72, 150 or 300 dots per inch

PDF.js reads the page's drawing instructions (text, vector shapes and embedded images) and paints them onto a white canvas scaled by dpi ÷ 72. The canvas is then saved by the browser as a JPG at the chosen quality or as a lossless PNG. Fonts that the PDF does not embed are drawn with similar fonts installed on your device, so letter shapes can differ slightly from the original.

Sources:

- [ISO 32000-2:2020 Document management — Portable document format — Part 2: PDF 2.0](https://www.iso.org/standard/75839.html), ISO
- [HTML Standard: the canvas element, toBlob()](https://html.spec.whatwg.org/multipage/canvas.html#dom-canvas-toblob), WHATWG
