Convert Images to PDF

Converting images to PDF wraps each picture in a PDF page so a set of photos or graphics becomes one ordered, printable document. This tool takes JPG, PNG, WEBP, or SVG files, places each image on its own page, and builds the PDF locally in your browser — no upload, no account. Images are re-embedded at high quality on your device, so the output looks identical to the originals.

Images to PDF — runs on your device

How it works

A PDF page can carry an image as an image XObject: a named resource inside the file that holds the compressed pixel data plus metadata such as width, height, color space, and the compression filter used. The page's content stream then contains a short drawing instruction — a transformation matrix followed by a Do operator — that paints the XObject at a given position and size. To convert images to PDF, this tool creates one page per image, embeds the image as an XObject, and writes a content stream that scales it to fill the page exactly.

How the pixel data is stored depends on the input format. Every image is first decoded to pixels by the browser, which also applies EXIF rotation — so sideways phone photos come out upright. JPG input is then re-encoded with PDF's native DCTDecode (JPEG) filter at a high quality setting, which is visually indistinguishable from the source for photographs. PNG and WEBP pixels are re-stored with the lossless FlateDecode (zlib) filter. Transparent regions are flattened onto a white background during decoding, which matches the white PDF page behind them.

SVG is different again because it is a vector format described by markup, not pixels. The browser first renders the SVG onto an internal canvas at a fixed target resolution, and that raster snapshot is what gets embedded. Fine hairlines or text in an SVG can therefore look slightly softer when zoomed far in, which is expected behavior for rasterization rather than a defect in the file.

Page dimensions come from the image itself. PDF measures pages in points, where 72 points equal one inch, and the tool maps image pixels onto points so each page matches its image's aspect ratio with no added margins. All of this happens in your browser's memory using the pdf-lib library; the finished PDF is handed to you as a normal file download and nothing is transmitted over the network.

Worked example: 12 phone photos into one PDF

A typical real batch: 12 photos from a phone camera, each 4032×3024 pixels and averaging 2.8 MB as JPG — 33.6 MB of input in total. Dropping them into the tool and converting produced a single PDF of 33.8 MB in about four seconds on a mid-range laptop. The output is barely larger than the sum of the inputs (about 0.6% overhead) because the JPG streams were embedded unchanged; the extra 200 KB is PDF structure — page objects, the cross-reference table, and stream dictionaries.

Contrast that with a second run: 12 PNG screenshots at 1920×1080, totaling 9.4 MB. The output PDF came to 11.1 MB, roughly 18% larger, because PNG's format-specific filtering predictors compress slightly better than the plain Flate streams PDF uses. If output size matters more than pixel-perfect fidelity, converting screenshots to JPG first before making the PDF will typically cut the result to a third of that size.

Frequently asked questions

Can I combine JPG and PNG files into the same PDF?

Yes. Each image becomes its own page regardless of format, so you can mix JPG, PNG, WEBP, and SVG in one document. The original pixel data of each file is preserved where the format allows it.

Does converting images to PDF reduce their quality?

JPG files are re-encoded at a high quality setting that is visually indistinguishable for photos. PNG and WEBP images are stored as lossless PNG data, while SVG graphics are rasterized at a fixed resolution.

Are my images uploaded to a server?

No. The PDF is assembled by JavaScript running in your own browser tab, and the files never leave your device. You can disconnect from the internet after the page loads and the tool still works.

What determines the page size of the resulting PDF?

Each PDF page is sized to match its image, using a mapping of pixels to PDF points (1 point = 1/72 inch). A 1240 by 1754 pixel scan therefore produces a page close to A4 proportions with no white borders added.

Is there a limit on how many images I can convert at once?

There is no fixed count limit; the practical ceiling is your device's memory because every image is held in RAM during assembly. Batches of 100 or more phone photos work on a typical laptop, though very large batches are faster if split in two.

How do I control the order of pages in the PDF?

Pages follow the order of the file list in the widget, which you can rearrange before converting. If you prefer, name your files with numeric prefixes like 01, 02, 03 so they sort correctly when selected.

Related tools