How to Combine Multiple Images Into One PDF
Merge multiple JPG, PNG, or mixed-format images into a single PDF document — using free online tools, desktop apps, and command-line methods.
AltoUnlockPDF Team
PDF Tools Expert
Whether you’re creating a photo portfolio, combining scanned document pages, or assembling a presentation, merging multiple images into one PDF is a common need. Here are the best free methods.
Method 1: AltoUnlockPDF Multi-Image Converter
Our Image to PDF tool handles batch conversions:
- Click “Upload Images” and select multiple files (or drag and drop)
- Reorder images by dragging them into the right sequence
- Choose page size and image fit (fill page, fit with margins, original size)
- Click Convert → Download your combined PDF
Supports: JPG, PNG, TIFF, BMP, GIF, WebP
Method 2: Windows (Print Method)
- Select all image files in File Explorer (Ctrl+A or click + Shift+click)
- Right-click → Print
- Set Printer to “Microsoft Print to PDF”
- Choose paper size and layout
- Click Print → save the output PDF
The images appear in the PDF in the order they were selected (which Windows sorts by filename by default).
Tip: Rename your files with numeric prefixes (01_image.jpg, 02_image.jpg) to control page order.
Method 3: Mac — Quick Actions or Preview
Via Quick Actions (macOS Mojave+):
- Select all images in Finder
- Right-click → Quick Actions → Create PDF
- One PDF with each image as a page
Via Preview App:
- Open the first image in Preview
- Show Thumbnails panel (View → Thumbnails)
- Drag additional images into the thumbnail panel in the correct order
- File → Export as PDF
This is the most flexible method on Mac — you can precisely control page order by dragging thumbnails.
Method 4: Command Line (ImageMagick)
ImageMagick is a powerful free tool for command-line image processing:
# Install on macOS
brew install imagemagick
# Install on Ubuntu
sudo apt install imagemagick
# Combine images into PDF
convert image1.jpg image2.jpg image3.jpg combined.pdf
# Combine all JPGs in current folder (alphabetical order)
convert *.jpg output.pdf
# With specific DPI
convert -density 150 *.jpg output.pdf
# Resize all images to A4 first
convert -resize 2480x3508 *.jpg output.pdf
Note: ImageMagick may have policy restrictions on PDF output. If you get an error, edit /etc/ImageMagick-6/policy.xml and find/change the PDF policy from “none” to “read|write”.
Method 5: Python (img2pdf — Lossless)
For developers, img2pdf is the best Python library because it inserts images into the PDF without re-encoding them — preserving original quality at the smallest possible file size:
import img2pdf
from PIL import Image
import os
def combine_images_to_pdf(image_paths, output_path, page_size='A4'):
# Optional: resize to consistent dimensions
a4_width, a4_height = img2pdf.mm_to_pt(210), img2pdf.mm_to_pt(297)
with open(output_path, 'wb') as f:
f.write(img2pdf.convert(
image_paths,
layout_fun=img2pdf.get_layout_fun((a4_width, a4_height))
))
# Combine all JPGs in a folder
folder = './scanned_pages'
images = sorted([
os.path.join(folder, f)
for f in os.listdir(folder)
if f.lower().endswith(('.jpg', '.jpeg', '.png'))
])
combine_images_to_pdf(images, 'combined_document.pdf')
pip install img2pdf
img2pdf is exceptionally fast — 100 JPG pages in under a second — and produces the smallest possible PDF files.
Controlling Image Order
Page order in the final PDF depends on the order images are passed to the tool. Plan ahead:
| Method | Order Control |
|---|---|
| AltoUnlockPDF | Drag to reorder in UI |
| Windows Print | Alphabetical filename order |
| Mac Preview | Drag thumbnails to reorder |
| ImageMagick | Order of filenames in command |
| Python img2pdf | Order of list passed to convert() |
Best practice: Number your files: 001_page.jpg, 002_page.jpg, etc. Alphabetical sorting then matches intended order in every tool.
File Size Considerations
Combining high-resolution JPGs can create very large PDFs. Options:
- Reduce image resolution before combining — 150 DPI is enough for screen; 300 DPI for print
- Use img2pdf — no re-encoding means minimum file size
- Compress the final PDF — use our PDF Compress tool after combining
- Use JPEG compression settings — avoid converting JPGs to PNG before combining (PNG in PDF is much larger)
Related Articles
TIFF to PDF Converter: Free Online Tools and How to Use Them
Convert single and multi-page TIFF files to PDF using free online tools, desktop software, and command-line utilities.
Read Article
Convert JPG to PDF Free Online: No Watermark, No Limit
The fastest ways to convert JPG images to PDF — online tools, mobile apps, and desktop methods, all free with no watermarks or file size limits.
Read Article
How to Convert a Photo to PDF on iPhone (Quick & Easy)
Multiple ways to turn iPhone photos into PDF files — using the Files app, Safari, Shortcuts, and third-party apps. No computer needed.
Read Article