How to use the Images to PDF tool
- Open the picker under JPEG and PNG images and select every image in one go, up to 60 files and 120 MiB in total.
- Select Create PDF. Each image becomes its own page, sized to match the image.
- Check the Result box, which reports the page count, for example 4 PDF page(s) ready.
- Select Download to save images.pdf.
How images become PDF pages
The tool reads each file and looks at its first byte. The value 0x89 marks a PNG, and anything else is treated as a JPEG. The file name and extension play no part. The PDF format can hold JPEG data natively, so the compressed bytes of a JPEG are copied into the document unchanged. A PNG is decoded and stored with lossless compression, and its transparency is kept.
Page size follows the image. One pixel becomes one PDF point, which is 1/72 inch, until the longer side reaches 1440 points. Larger images are scaled down on the page in proportion. All of their pixels remain in the file, so zooming in still shows full detail. There are no margins and no fixed paper size.
Worked example: four images, four page sizes
Four test images went in: two large JPEG photos, one small JPEG and a PNG screenshot. Together they were 5,060,670 bytes. The PDF came out at 5,062,800 bytes, so the document structure added about 2 KB and the pictures were not degraded.
photo1.jpg 3000 x 2000 px -> page 1440 x 960 pt
shot.png 800 x 600 px -> page 800 x 600 pt
photo2.jpg 2400 x 3200 px -> page 1080 x 1440 pt
small.jpg 1200 x 800 px -> page 1200 x 800 pt
4 PDF page(s) ready.Page order, orientation and printing
A few details of the output are worth knowing before you build a long document.
- Pages follow the order in which the browser passes the files. That is normally the order shown in the file dialog, often sorted by name, and not the order you clicked. Prefix names with 01, 02, 03 to control it.
- The EXIF orientation tag is not applied. A phone photo that depends on it can appear sideways. Turn those pages afterward with Rotate PDF.
- Transparent PNG areas show the page background of the viewer, which is normally white.
Why a file is rejected
The status line under the Result box names the cause when a conversion stops.
- Choose one to 60 images totaling up to 120 MiB: nothing was selected, more than 60 files were selected, or the combined size is over the limit.
- Choose a file up to 60 MiB: a single image is larger than the per-file limit.
- SOI not found in JPEG: the file is neither PNG nor JPEG. WebP, GIF, HEIC and TIFF files produce this message. Convert them to JPEG or PNG first.
Frequently asked questions
Does converting JPG to PDF reduce image quality?
No. The JPEG stream is embedded as it is, and PNG pixels are stored losslessly. The PDF is a container around the same picture data, which is why the output is only slightly larger than the images combined.
Can I set A4 or Letter as the page size?
No. Every page takes the proportions of its image, with one pixel mapped to one point and a cap of 1440 points on the longer side. To print on standard paper, use the fit to page setting of your print dialog.
How do I change the order of images in the PDF?
Rename the files so that they sort in the order you want, then select them together. If the PDF already exists, open it in Organize PDF and type the page order you need, such as 2, 1, 3.
Can I add WebP, HEIC or GIF images?
No. Only PNG and JPEG data can be embedded. Other formats fail with a JPEG parsing error because every file that is not a PNG is handed to the JPEG reader.
Why is my photo sideways in the PDF?
Cameras often store the picture in sensor orientation and record the intended rotation in EXIF metadata. This tool places the stored pixels without reading that tag. Rotate the affected pages in the finished PDF.
Are my images uploaded to create the PDF?
No. The images are read with the File API and assembled into a PDF by pdf-lib inside the page.