How to use the Images to PDF
- 1Add your images (JPG, PNG or WebP).
- 2Reorder them with the arrow buttons.
- 3Choose page size (A4, Letter or fit to image), orientation and margin.
- 4Click Create PDF and download it.
What does Images to PDF do?
Images to PDF turns one or more pictures (JPG, PNG, WebP and other formats your browser can open) into a single PDF document, one image per page. You choose the page size (A4, US Letter, or a page that fits each image exactly), the orientation and the margin, and you can reorder pages before saving. The PDF is created in your browser, so your photos and scans are never uploaded.
It is the quickest way to send phone photos of documents as one file, combine receipts for an expense claim, or make a simple photo booklet.
How does it work?
The tool uses pdf-lib to build the PDF:
- For each image, it checks the format. JPG and PNG are embedded directly, byte for byte, because PDF supports them natively. Other formats such as WebP are first converted to a high-quality JPG on a canvas.
- It creates a page of the size you chose. With Auto orientation, wide images get landscape pages and tall images get portrait pages.
- It scales the image to fit inside the margins without stretching, using scale = min(available width ÷ image width, available height ÷ image height), and centres it on the page.
PDF measures pages in points, where 72 points equal one inch (25.4 mm).
| Page size | Millimetres | Points |
|---|---|---|
| A4 | 210 × 297 | 595 × 842 |
| US Letter | 216 × 279 | 612 × 792 |
| Fit image | Same as the image (1 pixel = 1 point) plus margins | Varies |
Worked example
You photograph a 3-page rental agreement with your phone. Each photo is 3024 × 4032 pixels and about 3 MB.
- Add the three photos and put them in page order with the arrows.
- Choose A4, orientation Auto, margin 20 pt (about 7 mm).
- Click Create PDF.
Each photo is scaled to fit the A4 page inside the margins. The available area is 595 − 40 = 555 points wide and 842 − 40 = 802 points tall. The scale is min(555 ÷ 3024, 802 ÷ 4032) = min(0.1835, 0.1989) = 0.1835, so the image is drawn 555 × 740 points and centred.
The file will be about 9 MB, because the full-resolution JPGs are kept. To make it email-friendly, first shrink the photos to about 1600 pixels tall with the Image Resizer or the Image Compressor, or compress the finished PDF with Compress PDF.
Tips
- Shoot documents in good light, flat on a dark table, straight from above.
- Use A4 for anything official in Pakistan and most countries; use Letter for the US and Canada.
- Use Fit image for photo albums or screenshots, where white borders look odd.
- Set margin to 0 if you want images edge to edge on A4 (they still keep their shape).
- Add more pages later by creating a second PDF and joining them with Merge PDF.
Limitations
- No automatic cropping or straightening. Photos of documents keep their background and any tilt. Crop them in your phone's photo editor first.
- No text recognition (OCR). The PDF contains pictures, so you cannot search or copy the text.
- Full-resolution JPGs make big PDFs, as shown in the example. Resize first if size matters.
- Transparent PNGs keep transparency; on most viewers that shows as white.
- Very large batches can use a lot of memory on phones. Make several smaller PDFs and merge them if needed.
Key terms
- Point (pt): the PDF unit of length, 1/72 of an inch.
- Orientation: portrait (tall) or landscape (wide) page.
- Embed: store a file, such as an image, inside the PDF.
Frequently asked questions
Will my photos lose quality?
JPG and PNG images are embedded as they are. WebP and other formats are converted to JPG at high quality first because PDF does not support them directly.
What page size should I use?
A4 is standard in Pakistan and most of the world; Letter is common in the United States and Canada. Fit makes each page exactly the size of its image.
How can I make the PDF smaller?
Compress or resize the images first with the Image Compressor, or run the finished PDF through Compress PDF.
Are my images uploaded?
No. The PDF is created with pdf-lib on your device.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.