Image to PDF screenshot

Image to PDF

Put PNG and JPEG images into one PDF, one image per page, scaled to fit, with a real cross-reference table.

Privacy First
0 Runs
Updated 2026-11-17
Runs in your browser
No sign-up, no upload

What the Image to PDF does

A JPEG is embedded as it is, with DCTDecode, so it is not re-compressed and loses nothing. A PNG is decoded and embedded as FlateDecode RGB with its transparency composited onto white, because PDF has no PNG filter and an alpha channel would otherwise render as black.

Page size picks A4 or Letter, or fit — a page exactly the image's size plus the margin. The margin is in points, 72 to an inch, and the image is scaled to the largest size that fits inside it.

One image per page, in the order you selected them: a collage or a two-up layout is a different page. Images are not rotated to the page — PDF viewers offer rotation at read time. A file that is neither PNG nor JPEG is refused by name rather than converted.

How to use it

Choose the Images — one or more PNG or JPEG files, in the order you want the pages. The first file is the one the page reports by name.

Set Page size to a4, letter or fit, and Margin in points if you want more or less white space.

Press Run and the PDF is ready; the status line reports its size. Press Download to save it and open it in a viewer.

Worked example

Input:

(image/png fixture, about 2397 bytes)

Output:

data:application/pdf;base64, ... (a file, saved by Download)

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

Your images as one PDF: each one gets its own page, centred and scaled to fit inside the margin, with the aspect ratio intact.

The PDF is written here — catalog, page tree, image objects, content streams and a cross-reference table with a real byte offset for every object — so the file opens in any reader rather than relying on one.

What it does, and what it does not

A JPEG is embedded as it is, with `DCTDecode`, so it is not re-compressed and loses nothing. A PNG is decoded and embedded as `FlateDecode` RGB with its transparency composited onto white, because PDF has no PNG filter and an alpha channel would otherwise render as black.

Page size picks A4 or Letter, or fit — a page exactly the image's size plus the margin. The margin is in points, 72 to an inch, and the image is scaled to the largest size that fits inside it.

One image per page, in the order you selected them: a collage or a two-up layout is a different page. Images are not rotated to the page — PDF viewers offer rotation at read time. A file that is neither PNG nor JPEG is refused by name rather than converted.

How to use Image to PDF

Choose the Images — one or more PNG or JPEG files, in the order you want the pages. The first file is the one the page reports by name.

Set Page size to a4, letter or fit, and Margin in points if you want more or less white space.

Press Run and the PDF is ready; the status line reports its size. Press Download to save it and open it in a viewer.

What to Expect

Best for

  • Turning a set of scans into one document
  • Sending photos of a form as a single file
  • Making a printable PDF from screenshots

Not ideal for

  • OCR or searchable text, which this page does not add
  • Combining an existing PDF with images
  • Multi-image pages or collages

What this tool keeps

  • The order you selected the images in
  • JPEG bytes exactly, with no re-compression
  • The aspect ratio of every image

What may need cleanup

  • Add page numbers in a PDF editor
  • Rotate a page in your viewer

Common errors

  • The page refuses it: is neither PNG nor JPEG

Example use cases

  • Scan sets to one PDF
  • Photos of a receipt for an expense claim
  • Screenshots into a single handout

Sample input

Images: (image/png fixture, about 2397 bytes)

Sample output

PDF: data:application/pdf;base64, ... (a file, saved by Download)

Who this is for

  • Anyone assembling images into a document
  • Developers checking a PDF writer's output

Frequently asked questions

Does the JPEG lose quality?

No. A JPEG is embedded with DCTDecode, which means the original compressed bytes are stored and the viewer decodes them. There is no decode and re-encode step for JPEG.

What happens to a PNG's transparency?

It is composited onto white before the pixels are written, because a PDF image XObject has no alpha channel here. A transparent screenshot therefore shows a white background rather than black.

Why does the file open in every viewer?

Because the writer emits what readers require: a catalog, a page tree with a matching count, an image and content stream per page, and a cross-reference table whose startxref points at it. The page's own reader parses the result and refuses a file that disagrees.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.