How to combine images into a PDF
-
Add all your images
Drop any mix of JPG, PNG, WebP, HEIC, GIF and BMP files on the box, or press Choose files. -
Arrange the order
Drag thumbnails, or press Sort by name. -
Rotate where needed
Use the rotate buttons under any image that is sideways. -
Choose page settings
Pick page size, orientation and margins. Automatic orientation suits mixed sets. -
Choose quality
Original quality keeps each image at its best; Smaller file compresses everything. -
Export
Press Export PDF.
One PDF from a messy mix of images
Real collections of images are rarely tidy. A project folder might hold JPG photos from an Android phone, HEIC photos from an iPhone, PNG screenshots, and WebP images saved from websites. Most converters handle one format at a time, or treat every file the same way, which either fails on some files or throws away quality on others.
This tool accepts them all at once and handles each format the way that preserves it best. Add everything, put it in order, and export a single PDF.
Features
Format detection from content
Each file's first bytes are checked to determine what it really is. A PNG named .jpg, a HEIC photo without an extension, or a WebP image with a wrong name are all recognized and handled correctly.
The best path for each format
| Format | With Original quality | With Smaller file |
|---|---|---|
| JPG (upright) | Embedded unchanged, no quality loss | Resized and recompressed |
| JPG (needs rotation) | Rotated once, saved at high quality | Resized and recompressed |
| PNG | Kept lossless, transparency on white | Converted to compressed JPEG |
| WebP | Converted to high-quality JPEG | Resized and recompressed |
| HEIC / HEIF | Decoded on device, high-quality JPEG | Resized and recompressed |
| GIF, BMP | Converted to high-quality JPEG | Resized and recompressed |
HEIC support everywhere
iPhone photos are decoded with your browser's own support where available, as in Safari, or with a self-hosted HEIC decoder in other browsers. You do not need any extra software. More on the format in HEIC to PDF.
Orientation handled automatically
Phone photos carry an orientation tag, which is applied automatically, so pictures appear as they do in your gallery. With Automatic page orientation, landscape images get landscape pages and portrait images get portrait pages.
Arranging tools
Drag to reorder with smooth animation, sort by name using natural number order, rotate individual images, and delete any you do not want.
Tips for best results
- Use Automatic orientation for mixed sets, so wide screenshots and tall photos each use their page well.
- Choose Fit to image when image shapes vary a lot and you do not want white space.
- Use A4 or Letter with margins if the PDF will be printed.
- Name files with numbers for a predictable order, such as
01,02,03, then sort by name. - Pick Smaller file for email, especially with many phone photos.
- Convert RAW files first. Professional camera RAW formats are not supported; export them as JPG.
Page size and orientation for mixed images
Mixed sets often contain very different shapes: tall phone photos, wide screenshots, square social media images and scans. The table shows how each setting treats them.
| Setting | Tall photo | Wide screenshot | Square image |
|---|---|---|---|
| A4, Automatic | Portrait page, filled well | Landscape page, filled well | Portrait page with white bands |
| A4, Portrait | Fills the page | Small, with large white bands | White bands top and bottom |
| A4, Landscape | Small, with white bands at the sides | Fills the page | White bands at the sides |
| Fit to image | Page shaped like the photo | Page shaped like the screenshot | Square page |
For screen reading, Fit to image gives the cleanest result. For printing, A4 or Letter with Automatic orientation keeps pages a standard size while making good use of each one.
Quality and file size
The size of the final PDF is roughly the sum of its images. A few rough guides, which vary by camera and content:
- Phone photos are usually a few megabytes each as JPG. A 30-photo PDF on Original quality can be large.
- Screenshots saved as PNG are often small for text and larger for images with gradients.
- HEIC photos are small on the phone but grow when converted, since PDF cannot store HEIC.
If size matters, choose Smaller file, which resizes images to 2,000 pixels on the long side and compresses them, which is plenty for reading on screen. For printing high-quality photos, keep Original quality.
Common uses
- Project documentation combining site photos, screenshots and downloaded plans.
- Insurance claims with photos from different family members' phones.
- Applications and portfolios that ask for one PDF with all supporting images.
- School projects mixing photos, drawings and screenshots of research.
- Real estate listings compiled from several sources.
- Event recaps with pictures shared from many phones.
Before you start
Gather all images in one folder first, even if they come from different devices. On a computer, sort the folder by name or date to check the order, and rename files with numbers if the order matters. Delete duplicates and blurry shots before adding them. Then drag the whole folder's images onto the box at once. Preparing the set this way is much quicker than rearranging dozens of thumbnails afterwards.
Also decide on the purpose. A PDF for printing benefits from A4 or Letter pages with margins and Original quality. A PDF for reading on a phone looks best with Fit to image and no margins, and a PDF for email usually needs Smaller file.
How it works
Each file is identified by its signature bytes: JPEG files begin with FF D8, PNG with a fixed eight-byte header, WebP with RIFF and WEBP, and HEIC with an ftyp box naming a HEIF brand. HEIC files are decoded first, natively or with libheif compiled to WebAssembly. A thumbnail of every image is created in a background worker.
At export, the images are prepared one at a time, in order, so memory stays low. JPEGs that need no rotation keep their original bytes. Other images are drawn onto a white canvas with any rotation applied, then saved as PNG (for lossless PNG sources) or JPEG. pdf-lib then creates each page at the chosen size, places the image centered within the margins and writes the PDF, all in your browser.
Privacy: your files stay on your device
A mixed folder of images can contain almost anything personal. This tool never uploads any of it. Files are read from your device, processed in your browser's memory and saved back as a PDF. There is no server storage, no account, and no tracking of file names or contents. The page works offline after your first visit.
Troubleshooting
- One image fails. The message names the file. It may be damaged, a RAW camera file, or a format not listed. Convert it to JPG or PNG first.
- HEIC photos take longer. Decoding HEIC is heavy work; give it a few seconds per photo on phones.
- Pages have white bands. The page shape does not match the image. Use Fit to image or Automatic orientation.
- The PDF is too large. Use Smaller file, or compress it on pdfoptimizer.com.
- The browser slows down with many images. Add fewer at a time and close other tabs.
Supported devices and browsers
Works in current versions of Chrome, Edge, Firefox and Safari on computers, and in Safari, Chrome and Samsung Internet on iPhone, iPad and Android. HEIC decoding needs WebAssembly, which all modern browsers support.
Frequently asked questions
Which formats can I combine?
JPG and JPEG, PNG, WebP, HEIC and HEIF, GIF (first frame) and BMP. Formats are detected from the file contents, not just the name.
How is each format handled?
With Original quality, upright JPGs are embedded unchanged, PNGs are kept lossless on a white background, and WebP, HEIC, GIF and BMP are converted to high-quality JPEG, because PDF cannot store those formats directly.
Will the pages be different sizes?
With A4 or Letter, all pages are the same size and each image is scaled to fit. With Fit to image, each page takes the shape of its image, so sizes can vary.
Can I use iPhone photos and Android photos together?
Yes. iPhone HEIC photos and Android JPG photos can go in the same PDF.
How many images can I add?
Up to 100 files of up to 50 MB each in one PDF.
Are my images uploaded?
No. All decoding and conversion is done in your browser, and the PDF is saved straight to your device.
What if one file fails?
You will see a message naming the file, and the others are still added. The file may be damaged or in an unsupported format, such as RAW.
Can I reduce the file size?
Choose Smaller file, which resizes large images and compresses them. For more control, compress the finished PDF on pdfoptimizer.com.
Can I add more images after the first batch?
Yes. Press Add images, or drop more files on the box. New images are added at the end, and you can drag them into place.
Related tools
Last updated 29 November 2026