Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. PDF Tools
  3. Images to PDF
Add to favorites

Images to PDF

Turn pictures into a PDF at the size on paper you choose. Set the resolution a pixel count prints at, pick the paper, and see every page size and the resolution it prints at before anything is written.

PDFs never leave your deviceMore pdf toolsJump to full guide

Initializing in your browser…

You might also like

PDF to Images

Render PDF pages at a resolution you set in dpi

PDF Merger

Join PDFs into one document, with a bookmark for each file

PDF Image Extractor

Pull out a PDF's pictures as the files it holds

Images to PDF: a worked example

You have a 1200 x 900 photograph and want it as a PDF page that is the size the photograph is.

Input

photo.jpg (1200 x 900 px) · the picture's own size · 300 dpi · no margin
What Images to PDF produces

Output

One page of 288 x 216 points, which is 4 x 3 inches, with the JPEG embedded byte for byte

A picture has a pixel count and no size, so the size it prints at is a decision expressed as a resolution: 1200 pixels is 4 inches at 300 dpi, 12.5 inches at 96, and 16.67 inches only if a pixel is read as a point, which is what makes a phone photograph come out as a poster. The table on the page gives every page's paper, the rectangle the picture will fill and the resolution it will really print at, all before the file is written. A JPEG you do not turn is copied in unchanged: poppler extracts the same SHA-256 that went in.

Pictures into a PDF, at a size you chose

Turn a set of pictures into one PDF. Choose the paper, or let each page be the picture's own size at a resolution you pick, and see the page size and the printed resolution of every page before you build the file.

Working with your PDF

  1. 1Drop in your pictures, in any of the formats a browser can read.
  2. 2Drag the tiles to set the page order, and turn any picture that arrived sideways.
  3. 3Choose the paper, or "the picture's own size", and set the resolution a pixel count should print at. 300 dpi is print quality; 96 makes a screenshot the size it was on screen.
  4. 4Read the table: it gives the paper, the rectangle the picture will fill and the resolution it will really print at, per page.
  5. 5Press Create PDF.

Key features

  • The resolution a pixel count prints at is a setting, so the page size is chosen rather than inherited from the pixel count
  • Nine paper sizes with the A series derived from its own millimetres, plus the picture's own size
  • Fit, fill, stretch and actual size, with the crop or the distortion each causes reported as a percentage
  • Every page's paper, drawn rectangle and printed resolution shown before the file is written
  • A warning naming the number when a picture would print below 100 dpi
  • JPEGs embedded byte for byte with no re-encoding; PNG transparency preserved
  • Quarter turns that really turn the picture, with the page following it
  • Drag to reorder, add more pictures at any time, and margins in points with inches and millimetres alongside

Common scenarios

  • Scans of paper documents

    Phone photographs of a contract, placed on Letter or A4 at a readable resolution rather than on whatever sheet the pixel count implies.

  • A photo set at a real print size

    Choose 300 dpi and "the picture's own size" and a 1200 x 900 photograph becomes a 4 by 3 inch page, which is what it is.

  • Screenshot documentation

    At 96 dpi a screenshot prints the size it was on screen, so a bug report reads the way the screen did.

  • Sending pictures as one file

    One PDF instead of twenty attachments, in an order you set by dragging.

What a pixel is worth on paper

A picture has a pixel count and no size. The size it prints at is a DECISION, and it is expressed as a resolution: 1200 pixels is 4 inches at 300 dpi, 12.5 inches at 96, and 16.67 inches only if a pixel is read as a point. That last reading is what a PDF library does when it is handed a pixel count unchanged, and it is why a phone photograph so often becomes a PDF page the size of a poster. This tool asks for the resolution instead, so the paper is something you chose.

**What the settings do.** Paper is any of nine sizes, with the ISO A series derived from its own millimetres rather than rounded (A4 is 210 x 297 mm, which is 595.276 x 841.890 points, not 595 x 842), plus the picture's own size at the resolution you set. Orientation can follow each picture or be forced for the whole document. How it fits is the same vocabulary the image tools use: fit keeps the whole picture and leaves a border, fill covers the page and loses the overflow, stretch fills the page and changes the shape, and its own size places the picture at exactly the resolution chosen and says how much falls off the page if it does not fit. Margin is in points, with the inches and millimetres shown beside it.

**Every number is on the page before anything is written.** The table lists, per page, the picture's pixel count after any turns, the paper that page will be, the rectangle the picture will occupy in points, and the resolution it will actually print at. That last figure is the one nothing usually says and the one that decides whether a printed page looks like a photograph: below 100 dpi the row turns amber and a warning names the number. A stretch that distorts, a fill that crops and a margin with no room left are each said out loud with their percentages.

**A JPEG is carried through untouched.** A /DCTDecode stream in a PDF IS a JPEG file, so a JPEG that is not turned is embedded byte for byte and never re-encoded: verified by extracting it again with poppler and comparing the SHA-256 against the file that went in. A PNG goes through pdf-lib's own PNG path with its transparency intact. Anything else, and any picture you turn, is drawn into a canvas at the size the turn produces and re-encoded, which is stated on the tile so you know which of the two happened. A turn is a real turn: the picture rotates and the page follows it, where a rotation that only resizes the paper leaves a picture stretched sideways into a page it does not fit.

Everything happens in the browser. The pictures are read for their real pixel count from their own bytes (the JPEG frame header of T.81 clause B.2.2, or the PNG IHDR) rather than from the file name, so what the table says is what the file contains.

Frequently asked questions

What image formats can I use?

Anything your browser can decode, which in practice means JPEG, PNG, WebP, GIF, BMP and usually AVIF. JPEG and PNG are embedded directly; the rest are drawn into a canvas and re-encoded as PNG first, and each tile says which happened to it.

Why is my page enormous?

It should not be any more. A pixel is not a point: reading 1200 pixels as 1200 points gives a sheet 16.67 inches across. Set the resolution instead, and the table shows the page size you will get before you build the file.

What resolution should I choose?

300 dpi for anything that will be printed. 96 dpi for screenshots, because that is the CSS reference pixel, so the picture prints the size it was on screen. The table shows the resolution each picture will really print at, which is not the same number when the picture is scaled to fit a page.

Are my JPEGs re-compressed?

No. A JPEG you do not turn is copied into the PDF byte for byte, because a /DCTDecode stream is a JPEG file. A picture you turn, or any other format, is re-encoded, and the tile says so.

Is transparency kept?

Yes, for PNG. The transparent parts stay transparent and the page shows through, which for a PDF means white paper.

Can pages have different sizes?

Yes. With orientation on Auto each page follows its own picture, and with "the picture's own size" each page is exactly its picture at the resolution you chose. The table lists every page's size before anything is written.

Related tools and how they differ

  • PDF Merger: Build the picture pages here, then join them to a document you already have.
  • PDF Compressor: A stack of photographs makes a large PDF. The compressor resamples the pictures against the size they are actually drawn at.

Private by design

PDF parsing and editing happen in your browser. Documents, and everything inside them, are never uploaded or stored remotely.