Runs in your browser · nothing is uploaded
JPG to PDF & PDF to JPG
Turn JPG, PNG, WebP or GIF images into a single PDF — in your order, on A4, US Letter or image-sized pages — or turn PDF pages into JPG or PNG images. JPEGs go in without re-compression.
How it works
Images → PDF
- Each JPEG's size and EXIF orientation are read from its header.
- The page is A4 (595.28 × 841.89 pt), US Letter (612 × 792 pt) or the image's own size; “Auto” turns it landscape for wide images. Margins are 18 pt (0.25 in) or 36 pt (0.5 in).
- “Fit” scales the image to show all of it, centred; “Fill” covers the area inside the margins and crops what overflows.
- pdf-lib embeds the JPEG unchanged and draws it with a transformation matrix that applies any rotation or mirroring.
Worked example
A 4,032 × 3,024 phone photo on A4, Auto orientation, small margin, Fit: the page turns landscape (841.9 × 595.3 pt), and the photo is drawn 745.7 × 559.3 pt, 48.1 pt from the left and 18 pt from the bottom.
PDF → Images
Pages are drawn one at a time with PDF.js at your DPI (pixels = points × DPI ÷ 72) on a white background, including form-field values and annotation appearances. Each page is encoded as JPG or PNG, then its canvas is released before the next one, so long documents don't pile up in memory.
| DPI | A4 page | US Letter page |
|---|---|---|
| 72 | 595 × 842 | 612 × 792 |
| 96 | 794 × 1,123 | 816 × 1,056 |
| 150 | 1,240 × 1,754 | 1,275 × 1,650 |
| 200 | 1,654 × 2,339 | 1,700 × 2,200 |
| 300 | 2,480 × 3,508 | 2,550 × 3,300 |
A4 is 210 × 297 mm (ISO 216); US Letter is 8.5 × 11 in; a PDF point is 1/72 inch (ISO 32000). Checked 2026-10-07.
Limitations, plainly
- Images: JPG, PNG, WebP and GIF (first frame only). HEIC photos need converting first. Up to 200 images, 50 MB each.
- Encrypted PDFs can't be opened for PDF → Images; remove the password first.
- Forms and annotations are drawn as they look in the file; interactive parts (links, fillable fields) become plain pixels in the images.
- Memory: pages are limited to about 40 megapixels, and finished images stay in your browser until you download them. Converting hundreds of pages at 300 dpi to PNG can use several gigabytes — use JPG, a lower DPI or fewer pages on phones.
- Rendering uses PDF.js; rare files with unusual fonts or effects may look slightly different from Adobe Acrobat.
Frequently asked questions
How do I convert JPG to PDF?+
On the Images → PDF tab, add your JPG (or PNG, WebP, GIF) images, put them in order, choose a page size and margin, and press Create PDF. Each image becomes one page of a single PDF, which downloads straight away.
Does converting JPG to PDF reduce the quality?+
No. JPEGs are placed inside the PDF exactly as they are — the same bytes, not re-compressed. PNGs are stored losslessly. Only WebP and GIF are converted by your browser first (to PNG, or to JPEG at quality 92 if they have no transparency).
Why are my phone photos sideways in other converters?+
Phones often save photos unrotated and add an EXIF “orientation” tag. This tool reads that tag and turns the image on the PDF page to match what you see — without re-encoding the photo.
How do I convert a PDF to JPG?+
On the PDF → Images tab, open the PDF, choose JPG or PNG, a resolution and which pages, then press Convert. One page gives one image download; several pages can be downloaded one by one or together as a ZIP.
What resolution should I use for PDF to JPG?+
150 dpi suits screens and sharing (an A4 page becomes 1,240 × 1,754 pixels). Use 300 dpi for printing (2,480 × 3,508 for A4). 72 dpi gives the smallest files. Pages are limited to about 40 megapixels to protect your browser's memory.
What page size is “Fit image”?+
Each page takes the size of its image, at 96 pixels per inch (1 pixel = 0.75 point), plus any margin. A 1,200 × 800 pixel photo with no margin gives a 12.5 × 8.3 inch page.
Are my images or PDFs uploaded?+
No. Images are read, and PDF pages are drawn, entirely in your browser. Nothing is sent anywhere.