Image to PDF
Convert JPG, PNG, WebP, GIF, or BMP images to PDF — reorder by dragging, rotate any sideways image, and choose whether everything merges into one multi-page PDF or stays as separate single-page files. Everything runs in your browser — nothing is uploaded.
How to Convert Images to PDF
Features
Why Convert Images to PDF?
PDF is the universal document format for sharing, printing, and archiving. While JPG and PNG are great for display, they come with real limitations when you need to share multiple pages, preserve print quality, or ensure consistent rendering across devices. Converting images to PDF solves this with a single file that behaves predictably everywhere.
The most common reason people convert images to PDF is document assembly — taking scanned pages, photos of handwritten forms, or separate images and combining them into one coherent document. If you already have a PDF and need to add more pages, convert your additional images here and combine them with your existing document using Merge PDF.
How Merge vs. Separate Mode Works
With "Merge into Single PDF" on, every image is embedded as a new page inside one shared PDF document, in the order shown in the thumbnail grid — the result is a single file you can flip through page by page.
With it off, each image gets its own independent PDFDocument containing just that one page, so you end up with as many PDF files as you have images. This is useful when a recipient needs individual documents — for example, uploading each scanned form separately to a portal that only accepts one PDF per submission — rather than a single combined file. Every other setting (page size, orientation, fit, margin, quality) still applies the same way in both modes; only how the outputs are packaged changes.
Who Needs an Image-to-PDF Converter?
Students and academics scan handwritten notes or textbook pages with their phone camera and convert them to PDF for course submissions.
Freelancers and small businesses photograph signed paper contracts and convert them to PDF for archiving in systems that require PDF format.
Healthcare and admin staff convert intake forms, consent forms, or ID cards photographed on a phone into PDF for records — often needing each form as its own separate file, which is exactly what turning the merge toggle off provides.
Real estate agents and designers convert property photos or portfolio images into a PDF for client-ready sharing without needing design software.
Real-World Use Cases
Assembling a scanned document: You photographed 6 pages of a signed contract with your phone. Upload all 6, drag them into the correct order, rotate the one page that came out sideways, keep the merge toggle on, and convert — you get one 6-page PDF ready to send.
Submitting several forms to a portal that wants one PDF each: You have 10 photographed receipts and the expense system requires each as a separate PDF upload. Turn the merge toggle off, convert once, and download all 10 individual PDFs as a single ZIP instead of converting one at a time.
Preparing a print-ready photo booklet: Set page size to A4, orientation to match your photos, and Fill mode for an edge-to-edge look with no white borders, then merge everything into one PDF for the print shop.
Why Browser-Based Conversion Matters
Because pdf-lib runs entirely in your browser, your images are never transmitted to a server — the PDF is assembled locally and downloads directly to your device. This matters for signed contracts, medical forms, ID documents, or any image you'd rather not upload to a third-party service.
Tips for Getting the Best Results
- Shoot document scans in good, even lighting with the camera held directly above the page to avoid perspective distortion.
- Rotate before you reorder — fixing orientation first makes it much easier to judge the final page sequence.
- Use "Match Largest" thinking for Fit vs Fill — Fit preserves every pixel with possible white space; Fill looks cleaner but can crop edges, so preview which one suits your content.
- Turn off merge for portal uploads that expect one file per document — the ZIP download makes grabbing them all at once easy.
- Compress the result if size matters — run the output through Compress PDF afterward.
- Add all images before arranging them — it's faster than converting multiple times and merging files afterward.
Common Problems and Solutions
My images have different aspect ratios than the page. An A4 page has roughly a 1:1.41 aspect ratio, while smartphone photos are typically 3:4 or 9:16. Fit mode leaves white space (letterboxing) to keep the whole image visible; Fill mode crops the image to eliminate white space. Choose based on whether you'd rather see everything or have a clean, borderless page.
One image in my batch didn't make it into the PDF. The tool skips any image it can't process (usually a corrupted file) and continues with the rest, noting how many failed in the result summary — check that specific file isn't damaged and try re-adding it.
My PDF is much larger than expected. High quality settings on JPG/WebP source images produce larger PDFs. Lower the quality slider, or compress the finished PDF with Compress PDF.
When Not to Use This Tool
This tool isn't suitable for PDFs that need searchable text — images are embedded as visual elements, not text, so an OCR step is required first if you need the PDF content to be searchable or copyable.
For very high-resolution source images (100MB+ files), you may hit browser memory limits — resize the images first or use desktop software instead.
For professional print production where CMYK color profiles and bleed marks matter, dedicated print-production software is more appropriate than a browser-based converter.