Merge Images into One PDF (Free)
Image to PDF builds a multi-page document from a list of images: one page per file, in the order shown in the queue, downloaded as images.pdf. It is the right tool when the deliverable is a document rather than a picture - an expense report, a contract with photos attached, a portfolio sent to a printer. It is the wrong tool for a collage: every image gets its own page, never a shared canvas.
Try the free tool now
100% in your browser — no upload, no account, no watermark.
Open Merge Images into One PDFOne page per image, in queue order
The list is the document. Each row shows a thumbnail, the file name and its size in KB (ImageToPdfTool.tsx, lines 340-352), and the up and down arrows swap neighbouring entries (lines 194-207). The PDF writer walks the array in order (line 51), so the first row becomes page 1. Nothing is sorted by name or date; if the scanner numbered the files wrongly, you fix it by hand.
The page count is reported after generation, next to the file size, in the confirmation panel (line 426). A missing page is not possible: the loop decodes every image before writing anything, and a single decode error aborts the whole job with an error toast. You get all pages or none, which is worth knowing before sending a fifty-page scan set.
How each image is fitted to its page
Every page applies the same rule: the image is scaled by the smaller of two ratios - printable width divided by image width, and printable height divided by image height - then centred (lines 102-109). Printable means the sheet minus a fixed margin of 20 points on every side (line 244). That margin is not exposed in the interface; A4 and Letter always keep it.
Nothing is cropped. A 4000x3000 photo on A4 portrait fits by width, so it lands as a horizontal band with white above and below. A tall screenshot on A4 landscape does the opposite. The three page settings behave like this:
| Page setting | Media box | What it does to a 4000x3000 photo |
|---|---|---|
| A4 | 595.28 x 841.89 pt | landscape sheet by default, photo fills the printable width |
| Letter | 612 x 792 pt | landscape sheet, slightly wider printable area |
| Fit to image | the image at 96 DPI converted to 72 pt | one page shaped like the photo |
| A4, forced portrait | 595.28 x 841.89 pt | photo shrinks into a band about 555 pt wide |
The conversion is 96 pixels per inch to 72 points per inch, so a 1200-pixel-wide image is 900 points wide before fitting. In fit mode the page equals the image's converted size and the 20-point margin still applies, so the picture is scaled down slightly to leave a white border. Fit is not a borderless mode.
Mixed sets: the trap in automatic orientation
Automatic orientation treats any image whose width is greater than or equal to its height as landscape (line 54), so a square counts as landscape. In a set that mixes phone portraits and desktop screenshots, each page follows its own image and the document alternates between portrait and landscape. That reads fine on screen and badly on a double-sided printer.
| The set you have | Auto gives you | What to do |
|---|---|---|
| Ten phone portraits | ten portrait pages | leave auto on |
| Portraits plus wide screenshots | alternating orientation | force portrait if the wide shots stay readable when small |
| Receipt scans, very tall | each page portrait, image width-limited | use fit so the page hugs the strip |
| One wide panorama | one landscape page | use fit, or the panorama becomes a thin band |
Forcing an orientation is a trade, not a fix: every sheet gets the same shape, but images that do not match it shrink. On A4 portrait the printable width is 555.28 points, so a landscape screenshot is squeezed into that width and its height drops accordingly.
The only editing available is order
- No rotation: a sideways phone photo stays sideways in the PDF. Rotate it with the Rotate tool first, then add it.
- No cropping: whatever margin the photo carries becomes white space around the fitted image.
- No merging of PDFs: the input is images only, so two existing documents cannot be combined here.
- No page numbers, headers or compression setting: a page is a picture and nothing else.
That narrow feature set is deliberate - every image is processed locally, so there is no server round trip and no account. It also means the preparation belongs upstream: rotate, crop and resize before adding the files, because this step will not do any of it.
What happens to transparency and to file size
Each image is decoded, painted onto a white canvas at its natural size, then encoded as JPEG at quality 0.92 before being embedded (lines 227-239). Two things follow. Transparent areas become white, which is usually what a document wants. And the page holds a JPEG rather than your original PNG, so flat graphics can shrink dramatically while dense screenshots can grow.
That trade has been measured on this tool: a 1920x1942 screenshot of 197,518 bytes produced a PDF of 382,815 bytes, while a flat 2048x2048 logo of 129,117 bytes produced 78,357 bytes. Dense interface detail is expensive in JPEG; flat colour is almost free.
There is no page cap in the code. The practical limit is memory: every page's JPEG bytes stay in the array that becomes the file, and the document is assembled into one buffer at the end (lines 34-45 and 135-141). A few dozen photos is routine; several hundred high-resolution scans on a low-memory laptop is where a tab can stall.
About this guide
- Written by
- The ImageTools Pro team
- Last reviewed
- October 2026
- How we test
- Steps run in a real browser on real PNG, JPEG and WebP files
We revise this page whenever browser APIs, format support or recommended settings change. Corrections are welcome — tell us from the contact page.
Tools we recommend
Frequently Asked Questions
Can I merge PDF files with this tool?
No. The input is a list of images, each converted into one page of a new PDF. Combining existing PDFs is a different operation and is not offered here.
Is there a limit on the number of images?
There is no cap in the code. Every page keeps its JPEG in memory until the file is written, so the real limit is your device's RAM and the decoded size of the images, not a page count.
Does the PDF keep PNG transparency?
No. Each image is painted on a white canvas before encoding, and JPEG cannot store an alpha channel, so transparent areas arrive as white.
Can I change the order after generating the PDF?
Yes. Reorder the queue with the arrows and press the create button again. The downloaded file is replaced by the new one; pages are never inserted into an existing PDF.
Why does my PDF have white bars above and below the photo?
Because the whole image is fitted, never cropped. The bars are the difference between the photo's ratio and the page's ratio. Choose fit to image if the page should take the photo's shape instead.