TabGarden

Images to PDF

Combine JPG, PNG or WebP images into one PDF.

🔒 Processed on your device. Nothing is uploaded.

or drop them here

This tool takes a set of JPG, PNG or WebP images and puts them into a single PDF, one image per page, in the order you set. It is useful whenever someone asks for "one PDF" and what you have is a folder of photos, scans or screenshots.

How to use

  1. Click Choose files and select one or more images, or drag them onto the box that says or drop them here. You can add more files later; new ones are added to the end of the list.
  2. Check the order in the file list. Each image becomes one page, from top to bottom. Use Up and Down to move a file, and Remove to take one out.
  3. Pick a Page size: Same as image or A4 (both are explained below).
  4. Click Start. The status line shows "Working…" and then "Done."
  5. Click the Download link that appears. The file is always named images.pdf, and the link shows its size so you can check it before sending it anywhere.

If you click Start with an empty list, the tool stops with an error asking you to choose files.

What happens to your files

Your images are read by your browser with the standard File API and assembled into a PDF on your own device using pdf-lib, an open-source JavaScript library for creating PDF documents. The page does not send the images or the finished PDF to any server; the download link points to a file held in your browser's memory. When you close or reload the tab, that memory is released and the files are gone from the page. Because the work happens locally, it also works with files you would rather not hand to an online service, such as scanned contracts or ID copies, as long as you are comfortable with them being on the device you are using.

Options explained

Page size: Same as image

Each page is made exactly as large as its image, and the image fills the whole page with no border. The tool places one image pixel on one PDF point. A point is 1/72 of an inch, the basic unit of measurement in PDF, so a 1,200 × 1,600 pixel photo becomes a page of about 16.7 × 22.2 inches.

That sounds large, but PDF viewers zoom to fit the window, so on screen it looks normal. Choose this option when the PDF will mostly be read on a screen, when your images have different shapes (a mix of portrait photos, landscape photos and long screenshots), or when you do not want any white margins. Every page keeps its own shape, so nothing is cropped or squeezed.

Page size: A4

Every page is A4 portrait, which is 210 × 297 mm (595.28 × 841.89 points). The image is centered on the page with a margin of 24 points (about 8.5 mm) on every side. If the image is bigger than the space inside the margins, it is scaled down to fit while keeping its proportions. If it is smaller, it is not enlarged: it stays at one pixel per point and sits in the middle of the page.

Choose A4 when the PDF will be printed, or when it goes to an office, school or form that expects standard paper sizes. Keep in mind that the pages are always portrait. A landscape photo is shrunk to the page width and leaves white space above and below it.

Examples and use cases

How each image type is handled

Limits and troubleshooting

Frequently asked questions

Are my images uploaded anywhere?

No. The PDF is built in your browser with pdf-lib, and the download link points to a file in your browser's memory. Nothing from your images is sent to a server by this page.

How do I change the order of the pages?

The order of the file list is the order of the pages. Use Up and Down next to each file to move it. If you added files in the wrong order, it can be quicker to Remove them and add them again one by one.

Does converting to PDF lower the quality of my photos?

PNG images, and JPG images without a rotation tag, are embedded without re-compression, so their quality stays the same. A JPG that carries a rotation tag is re-saved once at high quality (0.92) so it can be stored upright. WebP images are converted to PNG, which is also lossless. With A4, a large image is displayed smaller on the page, but the full image data is still inside the PDF, so you can zoom in.

Why are my pages so big when I print them?

With Same as image, the page size follows the pixel size of the image, which is usually far bigger than paper. Most print dialogs offer a "fit to page" setting. If you want the PDF itself to be paper-sized, run it again with A4.

Can I make landscape A4 pages or use US Letter?

Not in this tool right now. A4 is always portrait, and Same as image follows each image's own shape. If you need landscape pages, Same as image with landscape images gives you pages of that shape.

Is there a limit on the number of images?

The tool sets no fixed number. The limit is your device's memory, because all images and the finished PDF are held in the browser at once. If a large batch fails or the tab becomes unresponsive, split it into smaller parts and join the resulting PDFs afterwards.

Can I add images to an existing PDF?

Not directly. Make a PDF from the new images here, then combine it with the existing file using Merge PDF, where you can set the order of the files.

How do I get the images back out of a PDF?

Use PDF to Images. It renders each page as a PNG or JPG picture. Note that it draws the whole page, so with A4 pages the white margins are included in the result.