JPG to PDF
Turn JPG, PNG and other images into one PDF in your browser — a page per image on A4, Letter, A3, Legal, A5 or fitted to the image, auto orientation, margins.
A downloadable PDF with each image centred and scaled to fit its page (never enlarged unless you choose), a page plan with sizes and effective dpi, and JPEG pixels embedded without re-compression.
Example: A 4000 × 3000 photo and a 1200 × 1600 scan on A4 auto: the photo lands on a landscape page at 401 dpi, the scan on a portrait page at 160 dpi, both with 10 mm margins — a two-page photos.pdf.
One page per image,
built in the browser.
How pages are sized, how images are placed and embedded, and what happens to other formats.
Page and placement
Each image gets a page: A4, A5, A3 (ISO 216), Letter or Legal, in portrait, landscape or — with "auto" — whichever suits the image's own aspect. The image is scaled to fit inside the margins and centred; it is never enlarged beyond its own pixels unless you switch enlarging on, because upscaling only blurs. "Fit to image" instead sizes the page to the pixels at the dpi you set (2480 × 3508 px at 300 dpi is exactly A4), the right choice for scans. PDF points are 1/72 in; sizes in the table are shown in millimetres.
Embedding
JPEG and PNG files are embedded as they are with pdf-lib's embedJpg and embedPng — the JPEG bytes are copied without re-compression, so nothing is lost, and PNG transparency is kept over the white page. WebP, GIF, BMP and other formats the browser can decode are first drawn to a canvas and re-encoded as PNG (lossless, but larger than the original). The effective dpi in the plan is the image's pixel width over its printed width; below 150 dpi a print will look soft.
What it does not do
No compression, resampling or colour management: the PDF is as big as the images are. Several images per page, page numbers, OCR and reordering pages of an existing PDF are separate jobs (merge, split and compress live in their own tools). pdf-lib (MIT) is downloaded to your browser only when you choose files. Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.
SOURCES
- Page sizes: A-series ISO 216 (A4 210 × 297 mm), Letter 8.5 × 11 in, Legal 8.5 × 14 in at 72 pt/in; images embedded with pdf-lib embedJpg/embedPng (MIT), other formats re-encoded to PNG by the browser
Last reviewed 22 September 2026. How results are checked: How we verify.