Image to PDF
PDF Tools · Updated
Combine a set of images into a single PDF, with control over page size, orientation and order. The whole thing runs on your own machine: the images are decoded, laid out and written into a PDF in the browser, and nothing is uploaded.
How to use the image to pdf
- 1Choose your images. They become pages in the order shown, and the arrows reorder them.
- 2Pick a page size, or let each page fit its own image.
- 3Set the margin and the JPEG quality — the quality decides the file size.
- 4Build the PDF and download it. The table shows the effective resolution of each page.
Examples
Photographs of a document
- Input
- Four phone photos at 4032 × 3024
- Result
- A four-page A4 PDF, each image landscape and centred inside a 10 mm margin
Fitting the page to the image
- Input
- A single 1200 × 628 banner at 96 dpi
- Result
- A one-page PDF sized to the image rather than to a paper standard
About the image to pdf
How the file is built
A PDF holding only images is a genuinely simple document: a catalogue pointing at a page tree, then for each page an object describing its size, a short content stream placing the image, and the image itself. The image object uses the DCTDecode filter, which means the JPEG bytes are stored as they arrive rather than being decompressed and recompressed.
That is the whole reason this can be done without a PDF library. The parts of the format that are genuinely hard — fonts, text layout, encryption, incremental updates — are the parts a picture-only document never touches.
Page size, margins and what they cost
Choosing a standard page size gives you a document that prints predictably, at the price of fitting the image into a shape it was not. Fitting the page to the image does the opposite: no letterboxing, but a PDF whose pages are all different sizes, which some printers and viewers handle awkwardly.
Margins are worth keeping even when nothing is printed in them. Many printers cannot print to the edge of a sheet and will scale a full-bleed page down to fit, which shrinks the image slightly and moves it off centre — a 10 mm margin costs a little image area and avoids that entirely.
Frequently asked questions
Are my images uploaded anywhere?
Why are PNG images re-encoded as JPEG?
What resolution will the PDF print at?
Can it merge existing PDFs or add text?
Related tools
Image Compressor
Image Tools
Shrink JPG, PNG and WebP files with a quality slider and a live size preview.
Image Resizer
Image Tools
Resize images by pixels or percentage, with the aspect ratio locked by default.
PNG to JPG
Image Tools
Convert PNG files to JPG, choosing the quality and the colour that replaces transparency.