DEV Community

GavinGeng
GavinGeng

Posted on • Originally published at formatspot.com

Image to PDF: Turn Photos and Scans Into One PDF

Why would you want to turn images into a PDF?

We've all been there. You have a stack of photos of receipts, a scanned contract, or a collection of design mockups, and you need to send them somewhere as a single file. That's the core reason people convert images to PDF: it bundles everything into one neat, universally readable document. Email clients don't choke on a single PDF the way they might on ten separate JPGs, and most government or corporate portals specifically ask for PDF uploads when you're submitting a multi-page form.

Think about archiving. If you're keeping digital copies of paper documents, a PDF keeps the pages in order and lets you add a simple title or page numbers later. For a portfolio, a single PDF is far more professional to send to a client than a folder of loose PNGs. And when you're sharing a multi-page form you filled out by hand, a PDF keeps the pages together so the recipient doesn't have to re-order them.

It's the opposite of PDF-to-image

It helps to think of this as the reverse of PDF to image. When you use a PDF-to-image tool, you're splitting a document into individual picture files—maybe to use one page in a slide deck or to post a single page on social media. Image-to-PDF works the other way: you're taking separate picture files and gluing them into a single document. The logic is different. With PDF-to-image, you lose the text layer and gain flexibility per page. With image-to-PDF, you gain portability and structure but lose the ability to edit individual images without re-exporting.

Quality and file size: the tradeoff you need to know

Here's the thing about embedding photos into a PDF: the PDF doesn't compress the images for you. If you drop in five high-resolution JPGs from a modern phone—each around 5 MB—you'll get a 25 MB PDF. That's fine for local storage, but it's a nightmare for email or upload portals that cap files at 10 MB. The quality is perfect, but the size is often impractical.

The fix is simple: resize the images before you combine them. If you're making a PDF for on-screen viewing, you don't need 4000-pixel-wide images. Resizing to 1500–2000 pixels on the long edge will usually cut the file size by 70–80% with no visible loss on a monitor. If you're printing, keep more resolution, but be ready for the larger file. There's no magic setting that gives you both tiny size and pristine print quality. You have to pick based on the destination.

Also, watch your source format. A PNG of a screenshot will be larger than a JPG of the same content because PNG retains more data. If you have a bunch of PNG screenshots, converting them to JPG first—maybe using PNG to JPG—can significantly shrink the final PDF. Similarly, if you have WebP images from a website, you might want to run them through WebP to PNG first to ensure the PDF handles them cleanly, since some older PDF readers don't love WebP.

Page order and orientation gotchas

This sounds trivial until you get it wrong. Most tools assemble images in the order you select them, but "select them" can be tricky. If you're dragging files from a folder, they often sort alphabetically, not by the number in the filename. So "page2.jpg" might come before "page10.jpg" because the character "1" comes before "2". Rename your files with leading zeros—like "page01.jpg", "page02.jpg"—before you start.

Orientation is another quiet trap. Your phone's camera stores orientation data in the image metadata, but not every tool respects that when building a PDF. You might end up with a sideways page. The safest move is to rotate the images to the correct orientation in your photo editor before combining them, rather than relying on the PDF tool to guess. A quick manual check of the thumbnails before you hit "convert" saves you from sending a document that requires the recipient to tilt their head.

Doing it privately in the browser

You don't need to upload your personal scans or photos to a random server to combine them. A good browser-based tool runs entirely on your device. The images never leave your computer; the tool reads them locally and generates the PDF in your browser's memory. This matters if you're handling sensitive documents like tax forms, medical records, or signed contracts. Before using any online tool, check whether it explicitly states that files are processed client-side. If it doesn't say that, assume they might be uploaded.

Using a local browser tool is also faster for big batches. You're not waiting on an upload, and there's no file-size limit imposed by a remote server. You can drop in 50 images, reorder them, and get a PDF in seconds. This is exactly the kind of workflow you get with a tool like image to PDF that runs in-browser—no sign-up, no upload, just a local conversion.

Keep your originals, and know your limits

A common mistake is deleting the source images after making the PDF. Don't do that. The PDF is a container, not a substitute for your originals. If you need to edit one photo later or extract it at full resolution, you'll want the original file. PDFs of photos are also not searchable. If you scan a printed document into a PDF, the text inside is just a picture. You can't Ctrl+F to find a word in it. For that, you'd need OCR (optical character recognition), which is a completely different process. If you need a searchable text layer, you're better off using a dedicated scanner app or an OCR tool, not a simple image-to-PDF converter.

Task What you get Best used for File size impact
image to PDF A single PDF with each image as a page Submitting forms, archiving receipts, portfolios Same as the sum of your images (can be large)
PDF to image Individual JPG/PNG files, one per PDF page Posting a page on social, using one page in a slide Usually smaller per file, but you get many files
Zipping the images A compressed folder of original images Sending raw files to a collaborator who will edit them Smallest, but recipient needs to unzip and view

Each approach has a place. Zipping is great for raw archives, but it's useless for printing or uploading to a portal. PDF to image is great for extracting a single page. For bundling photos into a deliverable document, image to PDF is the right call. And if you're working with a specific format conversion along the way—say, turning a JPG into a PNG for better transparency, or JPG to PNG for a cleaner edit—do that first, then combine.

Frequently asked questions

Can I convert images to PDF without uploading them to a server? Yes. Use a browser-based tool that processes files locally on your device, like image to PDF. Your images never leave your computer, which keeps sensitive documents private.

Will my PDF be smaller if I use PNG or JPG images? JPG images will generally produce a smaller PDF because JPG compression is more aggressive than PNG. For photos, use JPG. For screenshots with text, PNG is sharper but larger—consider PNG to JPG if size is a concern.

Why is my PDF sideways even though the images look fine? The image files contain orientation metadata that the PDF converter might ignore. Rotate the images to the correct orientation in an editor before combining them, or check if your tool has a rotate button for each page.

Is a PDF made from photos searchable? No. A simple image-to-PDF just wraps pictures in a PDF container. The text in the images is not searchable. To make it searchable, you need OCR software that adds a text layer on top of the images.


[{"q":"Can I convert images to PDF without uploading them to a server?","a":"Yes. Use a browser-based tool that processes files locally on your device, like image to PDF. Your images never leave your computer, which keeps sensitive documents private."},{"q":"Will my PDF be smaller if I use PNG or JPG images?","a":"JPG images will generally produce a smaller PDF because JPG compression is more aggressive than PNG. For photos, use JPG. For screenshots with text, PNG is sharper but larger—consider PNG to JPG if size is a concern."},{"q":"Why is my PDF sideways even though the images look fine?","a":"The image files contain orientation metadata that the PDF converter might ignore. Rotate the images to the correct orientation in an editor before combining them, or check if your tool has a rotate button for each page."},{"q":"Is a PDF made from photos searchable?","a":"No. A simple image-to-PDF just wraps pictures in a PDF container. The text in the images is not searchable. To make it searchable, you need OCR software that adds a text layer on top of the images."}]

Top comments (0)