Skip to main content
PPDF123

Convert Images to PDF

Images to PDF puts each uploaded PNG, JPEG, GIF or BMP image on its own page and returns one PDF, in upload order. Page size follows the image size.

Drag and drop files here, or click to choose

Accepts PNG, JPG, JPEG, GIF, BMP · up to 500.0 MB per file

You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.

Images to PDF embeds each uploaded raster as its own page with `pdfio::embed_image_page`. One PNG is enough. Several files become several pages in upload order. The output is a PDF named after the first file.

The form has no options, and the API fields `fitOption`, `colorType` and `autoRotate` are not read. Each page takes the size of its image (1 pixel = 1 point); aspect ratio, greyscale and auto-rotate do not change the embed. Transparency is flattened: images are converted to RGB and the alpha channel is dropped.

Accepted types on this page are PNG, JPEG, GIF, and BMP. SVG is a different converter (`/api/v1/convert/svg/pdf`) and is not this path. A file that is not a decodable raster fails.

This is not OCR and not a print-to-PDF driver. Text in a screenshot stays pixels. If you need selectable text, run the finished PDF through OCR PDF with the Searchable PDF output, or use its Markdown output when you only want the words.

Each image is decoded, converted to 8-bit RGB, and stored as raw pixels with lossless Flate compression. The JPEG bytes are not copied into the PDF. That is why a PDF built from phone photos can be many times larger than the photos. In one measured run, three JPEGs of 4032 by 3024 pixels, 9.7 MB in total, became a 41.5 MB three-page PDF, and Compress on that PDF saved only about 4%. Resizing the same photos to 1600 pixels on the long edge first produced a 6.2 MB PDF.

Because the page takes the image's pixel size, a 4032-pixel-wide photo makes a page about 56 inches wide, which a viewer fits to its window and a printer scales to the paper. The page is not A4 or Letter. A small flat image stays small: in a test, an 800 by 600 white PNG, a 600 by 800 JPEG and a 400 by 400 PNG with a semi-transparent circle came back as one three-page PDF of 11,407 bytes, named after the first file, `a.pdf`.

The converter does not read the EXIF orientation tag. A portrait photo that a phone stores as landscape pixels with a rotate flag comes out on a landscape page. Fix that page afterwards with Rotate, entering its page number and 90. Rotating the photo in a photo app before upload also works.

What fails: a file that is not a decodable image, such as a PDF or a text file named .png, returns HTTP 400 with reason `unsupported_file_type` and the message "The file is not a supported image." HEIC is not in the accepted list, so export JPEG first. If one file in a batch is bad, the whole request fails and no PDF is returned, so remove the bad file and send the batch again.

Neighboring tools: Images to PDF is for pictures that should stay pictures. For text you want to select, run the finished PDF through OCR PDF with the Searchable PDF output. To go the other way, PDF to Images renders pages to JPEG or PNG. For a PDF that is already too big, shrink the photos before building it, because Compress cannot recover much from raw-pixel pages.

Features

  • One image per page via native lopdf embed
  • Single file is valid; extra files append pages
  • No options: each page takes its image's size and alpha is dropped
  • Anonymous API at /api/v1/convert/img/pdf

When to use this tool

  • Turn a phone photo into a one-page PDF for an upload portal
  • Stack several scans as pages without reprinting them
  • Keep original pixel dimensions instead of forcing A4
  • Bundle photographed receipts into one attachment for an expense report once each photo has been resized
  • Turn exported slide screenshots into a quick-read PDF where text does not need to be selectable

How do I convert images to a PDF?

  1. Add one or more PNG, JPEG, GIF, or BMP files. Order is page order.
  2. There are no options; each page takes the size of its image.
  3. Click Process and download the PDF.
  4. Open it and check page count against the number of images.
  5. Before uploading phone photos, resize them to the smallest size that keeps your smallest text readable, and rotate any portrait shots that you need upright.
  6. Look at the file size before you attach it. If it is far larger than the images, go back, shrink the photos, and run the conversion again.

Limits and edge cases

  • No fit-to-page, greyscale, or auto-rotate
  • Transparent areas lose their alpha channel
  • Not OCR; screenshots stay images
  • SVG is a different endpoint
  • File size follows raw pixel count, not the size of the source JPEGs
  • Pages are not A4 or Letter; they take the image's pixel size
  • HEIC and other formats outside PNG, JPEG, GIF and BMP are rejected
  • One undecodable file fails the whole batch
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

Examples

  • Uploading receipt.png yields a one-page PDF the size of that PNG
  • Uploading a.jpg then b.jpg yields two pages, a then b
  • Three 4032 by 3024 JPEGs of about 3.2 MB each give a 41.5 MB, three-page PDF; the same photos at 1600 pixels on the long edge give 6.2 MB
  • An 800 by 600 PNG, a 600 by 800 JPEG and a 400 by 400 PNG upload together as a three-page PDF named after the first file
  • Uploading a PDF to this tool returns 400 with `unsupported_file_type` instead of a file

Privacy for this tool

Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.

Frequently asked questions

Do I need two images?
No. One image produces a one-page PDF. Two or more append in upload order.
Can I convert to greyscale or fit the image to A4?
No. The server embeds the pixels as decoded, on a page the size of the image.
Can I send SVG here?
Not on this endpoint. SVG goes through a WeasyPrint path at convert/svg/pdf.
Will EXIF rotation be applied?
autoRotate is ignored. Orientation is whatever the image decoder yields.
Why is my PDF so much bigger than my photos?
The converter stores decoded RGB pixels with lossless compression instead of keeping the JPEG data. Three 3.2 MB phone-sized photos produced a 41.5 MB PDF in one test. Resize the photos before converting; Compress afterwards saved only about 4% on that file.
Why is one page sideways?
The photo carries an EXIF rotation flag that this tool does not read, so the page uses the stored pixel layout. Run Rotate on that page with 90, or rotate the picture in a photo app and convert the copy.
Can I upload HEIC photos from an iPhone?
No. The accepted types are PNG, JPEG, GIF and BMP. Change the camera format to the most compatible option or export JPEG, then upload those files.
How is the page order decided and what is the file called?
Page order is upload order, and the download is named after the first file you added, with a .pdf extension.
What happens if one of my files is not an image?
The request fails with HTTP 400 and the message "The file is not a supported image." No partial PDF is returned, so remove that file and run the batch again.

Last updated:

Call this from code

Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.

curl -X POST "https://pdf123.xyz/api/v1/convert/img/pdf" \
  -F "[email protected]" \
  -F "[email protected]" \
  -o output.pdf

Also available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference

Use it from an AI agent

Skill

Claude Code, Codex, Cursor and other AI agents can run Image to PDF for you with this skill: /skills/pdf123-images-to-pdf.md

All agent skills

Files are used only for this processing job and deleted automatically afterward.