Image to PDF
Convert one or more images (JPG/PNG) into a single PDF file. Browser-side using pdf-lib.
Why convert images to PDF?
Converting images to PDF combines them into a single, ordered document that’s easier to share, sign, and archive than loose image files. Common scenarios: combining scanned ID documents (Aadhaar, passport, PAN card) for government applications, sharing multiple product photos as one document, creating photo books or portfolios, preparing scanned receipts for tax filing, assembling reference images for projects, or converting screenshots into a step-by-step PDF guide. PDF format ensures consistent display across all devices (no broken images, no zoom issues), supports digital signatures, and is the universal document format that virtually every system understands. This tool combines multiple images (JPG, PNG, WebP) into a single PDF entirely in your browser.
How to use this tool
- Upload your images — Click or drag-drop multiple images. Files appear in the list with order numbers (1, 2, 3…).
- Reorder if needed — Click Remove on any file to exclude it. To reorder, remove and re-add in desired sequence.
- Choose page size — A4 (default, 210x297mm) for international standard. Letter (216x279mm) for US documents. ‘Fit to image’ creates pages exactly the image size (no whitespace).
- Choose orientation — Auto: each page matches its image’s orientation. Portrait or Landscape forces all pages.
- Click ‘Create PDF’ — PDF generated and downloaded as ‘images.pdf’.
How the conversion works
The tool uses pdf-lib to build a PDF from your images:
- Create new PDF document
- For each image: load as PDFImage (embedPng or embedJpg based on type)
- Determine page size (A4, Letter, or Fit to image)
- Determine orientation (Auto, Portrait, Landscape)
- Create new page in the PDF
- Draw image centered on page, scaled to fit while maintaining aspect ratio
- Save and download
Aspect ratio preservation:
scale = min(page_width / image_width, page_height / image_height)
This ensures images fit on the page without distortion – portrait images on A4 portrait page leave horizontal padding; landscape images leave vertical padding.
Examples
- 3 ID documents (Aadhaar, PAN, voter ID) for KYC: 3 images → 1 PDF with all 3 pages, A4 portrait
- Property photos for listing: 8-12 phone photos → 1 multi-page PDF for sharing
- Receipts for monthly expense report: 30 receipt photos → 1 PDF, Fit-to-image (varied sizes)
- Step-by-step screenshot tutorial: 15 screenshots → 1 PDF guide, Letter portrait
- Product catalog mockup: 20 product images → 1 PDF, A4 portrait, easy to email
- Hand-drawn architectural sketches: 6 sketch photos → 1 PDF, A4 landscape
Tips & best practices
- A4 is the international standard – works in 95% of the world. Use Letter only for US-specific contexts
- Add images in the order you want them in the PDF – reordering after upload requires remove/re-add
- For photo-heavy PDFs: ‘Fit to image’ creates smaller, more efficient PDF (no whitespace)
- For mixed-orientation images: use Auto orientation – each page adapts
- After creating the PDF, use Compress PDF if file size is large
- Compress images first with Image Compressor if they’re individually large – prevents huge PDFs
- Maximum recommended: 20-30 images at once. More may slow your browser
Limitations & notes
Browser-side conversion limited by memory – very large images (over 10 MB each) or many images (over 50) may slow or fail. PDF file size scales with image sizes – 20 large photos becomes a 50+ MB PDF. The tool doesn’t reduce image quality during conversion – compress images BEFORE uploading if file size matters. Doesn’t add page numbers, watermarks, or other elements – use separate PDF Page Numbers / PDF Watermark tools after creation.
Frequently Asked Questions
What’s the difference between ‘Fit to image’ and ‘A4’?
Fit to image: each PDF page is exactly the image size – no padding, no whitespace. Best for photo-heavy PDFs. A4 / Letter: each PDF page is standard paper size with images centered and scaled to fit. Better for documents intended to be printed or look professional.
Can I add text or annotations to the PDF?
Not in this tool – it only combines images. For adding text, page numbers, watermarks, or annotations after creation, use our PDF Page Numbers tool and PDF Watermark tool. Or use a desktop PDF editor.
Will my image quality be reduced?
No – the tool uses the original image quality. The PDF preserves whatever quality you provide. To reduce file size, compress images before uploading using our Image Compressor.
Can I mix orientations?
Yes with Auto – each page orientation matches its image. Portrait images get portrait pages, landscape get landscape. Or force Portrait/Landscape to apply to all pages.
How do I rearrange images?
Click Remove on misplaced files and re-add in correct order. The tool doesn’t support drag-to-reorder yet. Alternatively, use Split PDF + Merge PDF after creation to rearrange.
Can I add password protection?
Not with this tool. For password protection, use desktop tools like Adobe Acrobat, Foxit Reader, or online services with password support. Our PDF tools focus on common transformations.
What if some images are huge?
Large images make large PDFs. If your phone photos are 5-8 MB each and you have 20 of them, the resulting PDF will be ~100 MB. Compress images first (using our Image Compressor at 80% quality) for much smaller PDFs.
