Back to Dashboard

How to Convert Between PDF and Images, Both Directions

PNG or JPG, 150 or 300 DPI, and the round-trip that permanently flattens a PDF.

You've got one of two problems: a PDF that needs to become pictures — for a slide deck, a forum post, a chat message — or a pile of pictures (scans, screenshots, phone photos of a document) that need to become one PDF. PDF to Images and Images to PDF handle both, entirely in the browser, and each direction has a trade-off worth knowing first.

Turning a PDF into images

PDF to Images renders each page onto a canvas with pdf.js, then saves it as a PNG or JPG, one image per page. Two choices matter: format and resolution.

PNG or JPG?

Use PNG for anything mostly text or line art — a contract, an invoice, a scanned form — since it's lossless and keeps letters crisp. Use JPG for anything photographic — a scanned photo, a glossy brochure, a gradient-heavy layout. JPG is the tool's default, fixed at 92% quality with no slider to lower it, so you'll never get a genuinely low-quality JPG here. Even at 92%, JPG still softens hard edges a little, which is exactly wrong for text: a type-heavy page shows faint smudging around letters that the same page as PNG doesn't. Get it backwards and pay for it in size — a PNG photo can run several times larger than the same JPG, for no visible gain.

150 DPI vs. 300 DPI, in real numbers

DPI is pixels rendered per inch of the original page. A US Letter page comes out at 1275×1650 pixels at 150 DPI, or 2550×3300 at 300 DPI — four times the pixels, since both dimensions double. 150 DPI is screen resolution: readable on a monitor or phone, small files. 300 DPI is print resolution, for anything printed at full size.

Size follows pixel count. A plain text page as PNG at 150 DPI typically lands around 100–300 KB; at 300 DPI, expect three to four times that. A full-color photo page is the opposite story: as PNG it can run into several megabytes, while the same page as JPG often comes in at a few hundred KB even at 300 DPI. Convert a 40-page scanned contract at 300 DPI as PNG and a zip in the tens of megabytes is normal.

One image per page, always zipped

You always get a .zip, one file per page, even for a single-page PDF, built client-side with JSZip — nothing uploaded. Unzip and the images are in page order, ready to use.

Why the text stops being text

A PDF stores text as character codes and font references, which is why you can select, search, and copy it, and why a screen reader can read it aloud. Rendering to an image throws that away: pdf.js paints the page the way a screen would display it, and what comes out is a grid of colored pixels with no memory of where the letter "A" was — a screenshot, literally. The only way back is OCR, which PDFCraft doesn't offer. Keep the source PDF if you need the real text later.

Turning images into a PDF

Images to PDF runs the opposite direction: each image becomes one page, no OCR step — pictures inside a PDF, not a searchable document.

Four controls decide what the page looks like

Images to PDF has four settings: Page Size (A4 by default, or US Letter, or "Fit Image," which sizes the page to the photo instead), Orientation (Portrait by default, or Landscape — relevant only for A4/Letter, since Fit Image just follows the photo's shape), Margins (none by default, 20px, or 50px), and Alignment (Center & Preserve Ratio by default, or Stretch to Fill Page).

Leave everything on default and every page comes out the same A4 size regardless of the source photo — tall and wide images land on identical portrait pages, centered with ratio intact, meaning letterboxing wherever the image doesn't match the page's proportions. Fit Image removes the letterboxing but lets page size follow the photo, so a mixed batch produces mixed page sizes. Stretch to Fill Page resizes the photo to fill the page exactly instead — no blank space, but a mismatched photo comes out distorted. Pick two of "uniform pages," "no letterboxing," "undistorted image" — not all three.

JPEG and PNG go in directly; everything else takes a detour

pdf-lib embeds JPEG and PNG bytes straight into the PDF, essentially as-is. Other formats (WEBP, BMP, TIFF, HEIC) can't be embedded that way, so the tool draws the image to a canvas and re-encodes it as JPEG at 90% quality — an extra lossy pass that only works if the browser can decode the format at all. HEIC, the default on iPhones, is the most common snag; a file that fails to decode is silently skipped rather than added to your batch. If your phone photos aren't behaving, export as JPEG instead (iPhone: Settings > Camera > Formats > Most Compatible).

One more thing: since Images to PDF always builds a brand-new document, round-tripping an existing PDF for the flatten trick below drops its original Title/Author metadata — pdf-lib writes its own generic Producer/Creator instead. The download always comes out named converted_images.pdf regardless of source, so rename it yourself if that matters.

Getting the order right

Drag the thumbnail cards in the workspace into the order you want pages to appear — supported directly, no workaround needed. It won't fix your file picker's load order, though, which can default to alphabetical rather than click order; rename files with numeric prefixes first (01-cover.jpg, 02-page-two.jpg) if that matters.

Combining phone photos into one usable PDF

The input photo matters more than any tool setting. Three things move the needle:

Clean up on the phone first — the tool won't fix a bad photo.

The trick: round-tripping a PDF to flatten it for good

Run a PDF through PDF to Images and straight back through Images to PDF and you've flattened it: every page becomes a picture of itself, then a PDF page again. Nothing on it can be extracted as data anymore — it's no longer text or vector objects, just pixels.

That's exactly what you want after using the Black Box to cover something up — a box on top of the page doesn't remove what's underneath, but flattening does, since after the round trip there's no text left anywhere, covered or not. Use 300 DPI for this if the page will ever be read again — 150 DPI can make small print hard to read once it's baked into a picture.

This isn't the same as Compress PDF, which also rasterizes as a side effect but targets file size, not deliberate flattening. Use the manual round trip when flattening itself is the goal. For a smaller file that still needs to stay searchable, see compressing a PDF without losing its text layer instead.

Heads up: this round trip is a one-way door. Once a PDF is flattened and rebuilt, the original text, links, form fields, bookmarks, and accessibility structure are gone — not hidden, not recoverable without OCR, gone. Keep a copy of the original, and only flatten when permanently removing something really is the goal.

Which direction do you actually need?

DirectionWhat's preservedWhat's lostTypical use case
PDF → ImagesExact visual appearance, layout, colors and graphicsSelectable/searchable text, links, form fields, bookmarks, accessibility tagsSharing a page as a picture, posting where PDFs aren't accepted
Images → PDFOriginal image quality (JPEG/PNG as-is; other formats re-encoded once, as JPEG)Nothing pre-existing — but no text layer is ever createdCombining scans, receipts, or phone photos into one file
Round trip (PDF → Images → PDF)Visual appearance onlyAll text, links, form fields, bookmarks, accessibility structure — permanentlyFlattening a page after redacting it, or stripping hidden metadata

Frequently Asked Questions

Will converting a PDF to images make the file bigger or smaller?

Usually bigger, sometimes much bigger. Text-based PDFs are compact because text is character codes, not pixels; a ten-page contract that's 200 KB as a PDF can become several megabytes as 300 DPI PNGs. The exception: a PDF already made of large embedded photos, where well-chosen JPGs can come out smaller.

Can I convert just one or two pages instead of the whole PDF?

Pull them out first with Split PDF, then run just those pages through PDF to Images — faster than converting everything and discarding the rest.

Why does my converted PDF look blurry when I print it?

It was likely rendered at 150 DPI, built for screens — printed at full size it looks soft, especially on small text. Re-render at 300 DPI for print.

Can I combine a PDF and some images into one file?

Not in one step. Turn your images into their own PDF with Images to PDF, then use Merge PDF to combine that with the existing one.

Is there a page count or file size limit?

None enforced by the tool, since everything runs in your browser tab rather than on a server. The real ceiling is memory: a single 300 DPI Letter-sized canvas is 2550×3300 pixels, roughly 34 MB of raw pixel data held in the browser before it's ever encoded to PNG or JPG. A long document or a big batch of full-resolution photos adds up fast enough to crash the tab on an older phone or low-RAM laptop. Try a lower DPI or smaller batches if a job stalls.

Does Images to PDF add OCR so I can search the text later?

No. The output is your images as pictures on each page — no text recognition step, so it won't be searchable even though it looks like a normal document. You'd need separate OCR software for that.