Skip to content
FreeToolsKit.app

Documents & PDFs guide

How to Convert JPG and PNG Images into a PDF

6 min read · Updated 20 November 2026 · Uses JPG to PDF

Quick answer

Add your JPG, PNG or WebP images to JPG to PDF, put them in page order, pick a Page size (A4 (210 × 297 mm), US Letter (8.5 × 11 in) or Fit page to image), click Create PDF and then Download PDF. You get one page per image, in the order shown, in a file called images.pdf unless you change File name. The conversion runs in your browser.

Three things decide how the result looks:

  • Page size and margins decide whether the PDF suits printing or a form (A4 or US Letter) or screen use (fit to image). Images are centred, never cropped or stretched, and small images are not enlarged.
  • Format decides file size. JPG and PNG files are placed into the PDF as they are, so the PDF is about as large as the images together. WebP is converted to PNG first, which can make it much bigger.
  • HEIC photos are rejected. Convert them to JPG first.
JPG to PDFFree to use · No account required · Files processed locallyOpen JPG to PDF

Step by step

  1. Open the tool and drop your images on Add JPG, PNG or WebP images, or click Choose files. You can add more later with Add more images.
  2. In Arrange images, drag the cards or use the arrow buttons. Page order follows the list, so the top card is page 1.
  3. In PDF settings, choose a Page size, an Orientation (Automatic (per image), Portrait or Landscape) and Margins (None, Small (¼ in / 6 mm), Medium (½ in / 13 mm) or Large (1 in / 25 mm)). The starting values are A4, Automatic and Medium.
  4. Check Document preview. It uses the same layout rule as the export.
  5. Optionally change File name, then click Create PDF and Download PDF. Changing any setting afterwards clears the finished PDF, so you never download an outdated one.

Which page size should you use?

A4 is 210 mm wide and 297 mm high (W3C: CSS Paged Media Module Level 3); US Letter is 8.5 by 11 inches (PWG: Media Standardized Names). Choose the one your printer, form or recipient expects.

  • A4 or US Letter: use these for anything printed or uploaded to a form that expects document pages. With Automatic (per image), landscape images get landscape pages, so one PDF can mix both.
  • Fit page to image: each page is as big as its image plus the margin. Choose it for screenshots, slides or comics, with Margins set to None for no white border.
  • Margins: a larger margin shrinks the image to fit inside it. It never enlarges one.

The tool treats every image as 96 pixels per inch, so one pixel is 0.75 PDF points (a point is 1/72 inch, per Adobe: PDF 32000-1). That is why a 200 × 150 pixel image stays small on a big page, and why Fit page to image gives a page of image pixels × 0.75 points.

What I tested

I ran five synthetic images (made by a script, nothing personal) through the real page in headless Chromium on Linux, once per page-size choice, and inspected each download with poppler's pdfinfo and pdfimages:

  • landscape.jpg: 1600 × 1000 JPG, no EXIF.
  • transparent.png: 800 × 600 PNG with a transparent background, a solid red disc and a half-transparent blue band.
  • small.jpg: 200 × 150 JPG.
  • rotated-exif6.jpg: a portrait scene stored sideways as 1200 × 800 pixels with the EXIF Orientation tag set to 6.
  • photo.webp: 600 × 400 WebP.

Observed, A4 with Medium margins (the defaults):

  • Pages: 5 pages of 841.89 × 595.28 pt (landscape), except the tagged photo, which got a portrait 595.28 × 841.89 pt page. The summary read "images.pdf · 5 pages · 514.5 KB" for 353.4 KB of images.
  • US Letter: the same pattern at 792 × 612 pt and 612 × 792 pt.
  • Fit page to image, Margins None: pages of 1200 × 750, 600 × 450, 150 × 112.5, 600 × 900 and 450 × 300 pt, which is each image's pixels × 0.75. With Medium margins every side grew by 72 pt.
  • Small image: placed at 150 × 112.5 pt on a full A4 page, not enlarged.
  • Large image: the 1600 × 1000 JPG was scaled to 769.89 × 481.18 pt to fit inside the margins, about 150 pixels per inch.

Does the PDF keep my images unchanged?

JPG: I extracted the embedded stream with pdfimages -all and compared it with the input. For the two untagged JPGs the SHA-256 values matched, so the bytes were embedded unchanged. JPEG data can be placed in a PDF directly because the PDF DCTDecode filter reads baseline JPEG data (Adobe: PDF 32000-1). Poppler documents the same property for extraction: the file "is identical to the JPEG data stored in the PDF" (Poppler: pdfimages manual).

PNG transparency: the PDF stores a PNG's alpha as a separate soft mask (same Adobe document). The mask I extracted was identical to the input's alpha channel. On a white page the transparent background simply shows white, so the page looks white, not see-through.

EXIF orientation: the original version of this guide said photos can appear sideways because the tool draws pixels as stored. That is not what this tool does. The code reads the Orientation tag and, for a tagged JPG, redraws the photo upright and re-encodes it. In my test the tagged file came out as an upright 800 × 1200 image, with no tag left in the PDF's image. Value 6 means "The 0th row is the visual right-hand side of the image, and the 0th column is the visual top" (CIPA: DC-008 Exif 2.3), and browsers apply the tag by default (MDN: createImageBitmap()). The price is one lossy re-encode: the file grew from 140,049 to about 158,000 bytes and differed from an exact rotation by 0.49 grey levels on average. Lossless rotation exists but needs a JPEG-aware tool (libjpeg-turbo: jpegtran manual). If you need the original bytes untouched, rotate the file first so the tag is gone.

WebP: the tool converts WebP to lossless PNG, because it embeds only JPG and PNG. My 9.3 KB WebP became a 116 KB PNG stream. WebP can be lossy or lossless (Google: WebP FAQ), so a lossy WebP grows when it is stored losslessly. Convert it to JPG first if size matters.

Troubleshooting

  • A HEIC photo is rejected. The card shows "HEIC/HEIF photos aren't supported here. Convert them to JPG first with the Image Converter." and Create PDF stays disabled until you remove the file. iPhones can capture JPEG instead: Settings, Camera, Formats, Most Compatible (Apple Support: Using HEIF or HEVC media on Apple devices). To convert existing photos, use the Image Converter or see how to convert HEIC to JPG on Windows. My test used a header-only stand-in for a HEIC file, not a real photo, and the check is on the file's first bytes, not its name.
  • The PDF is too big. Because JPG and PNG are embedded as they are, the PDF is about the size of the images together. Shrink big photos first with Compress JPEG, or try Compress PDF afterwards. Re-encoding JPEGs is lossy (Library of Congress: JPEG Image Encoding Family), so check the result.
  • A photo looks small on the page. Small images are never enlarged beyond their size at 96 pixels per inch. Choose Fit page to image or a smaller page.
  • An image is flagged as damaged or too large. The tool checks the file's contents, not its extension, and refuses images over 16,384 pixels on a side. Remove the card and the rest still convert.

Limits of this test

I tested one browser (headless Chromium on Linux), five synthetic images and no real phone photos. The page sizes and embedding results come from the PDFs I inspected. The orientation behaviour comes from the tool's code plus the one tagged sample. Other browsers may handle EXIF differently. To go the other way, see PDF to JPG vs PNG.