Image to PDF
Convert JPEG, PNG, and WebP images to a single PDF document with customizable page sizes.
Combine one or multiple images (JPEG, PNG, WebP) into a single high-resolution PDF document. Reorder slides and customize page margins in your browser.
Drop images here to convert to PDF
JPEG, PNG, WebP supported — select multiple files
How do I use Image to PDF?
Upload JPG, PNG, or WebP images, or click "Load Sample Data" to generate sample pages.
Configure page size (`Fit to Image`, `A4`, `US Letter`), orientation (`Portrait`, `Landscape`), and margin width.
Drag cards to reorder sequence and click "Generate PDF" to download your compiled document.
What features does Image to PDF offer?
Multi-format batch ingestion: Merge JPEG, PNG, and WebP images into a single cohesive PDF
Adaptive page geometry: Choose standard ISO A4, US Letter, or dynamic 'Fit Image' aspect ratios
Customizable page margins: Zero-margin full bleed (0pt), Standard (20pt), or Wide print borders (40pt)
Intuitive sequence controls: Reorder your image queue before compiling multi-page documents
High-resolution fidelity: Preserves native pixel clarity without forced lossy re-compression
100% private in-browser compilation powered by pdf-lib — zero server uploads
PDF Image XObject Embedding & Page Geometry Specs
Embeds raster images as `/Subtype /Image` XObjects scaled inside an ISO 32000-1 page coordinate frame.
| Page Preset / Format | Dimensions (Points @ 72 DPI) | Physical Size | PDF XObject Stream Filter |
|---|---|---|---|
| ISO A4 Portrait | 595.28 × 841.89 pt | 210 × 297 mm | Scales image to fit within margin box |
| US Letter Portrait | 612.00 × 792.00 pt | 8.5 × 11.0 in | Centers image with aspect-ratio lock |
| Fit to Image Dimensions | Width_px × Height_px pt | Exact 1:1 pixel-to-point map | Zero margin / zero whitespace border |
| JPEG / PNG Source | Native resolution retained | Lossless stream injection | JPEG → DCTDecode; PNG → FlateDecode + SMask |
Frequently Asked Questions about Image to PDF
Are JPEG images re-compressed (losing quality) when embedded into a PDF?
No. Standard baseline JPEG byte streams are injected directly into the PDF `/XObject` dictionary using the `/DCTDecode` filter without decoding and re-encoding pixels, preserving 100% original quality and file size.
How is PNG alpha transparency handled inside a PDF document?
The PDF specification does not embed raw PNG files directly; instead, the RGB color channels are compressed with `FlateDecode` and the 8-bit alpha channel is extracted into a separate Soft Mask (`/SMask`) stream.
Why does a smartphone photo sometimes appear rotated 90 degrees if EXIF orientation is ignored?
Smartphones often record sensor pixels in landscape and set EXIF tag `0x0112` (`Orientation: 6` for 90° CW). Drawing via browser `createImageBitmap` / `<canvas>` normalizes EXIF orientation before PDF embedding.
When should I choose "Fit to Image" instead of "A4" or "US Letter"?
Choose **Fit to Image** for digital comics, long screenshots, or mixed-aspect slide decks so no white letterbox bars appear. Choose **A4** or **US Letter** when preparing documents for physical office printing.
Explore Related PDF Tools
JPG to PDF Converter
Combine one or multiple JPG/JPEG photos into a single A4, US Letter, or Fit-to-Image PDF document in your browser.
PDF to Image
Convert PDF pages to high-quality PNG, JPEG, or WebP images with customizable DPI resolution.
PDF to JPG Converter
Convert PDF pages into high-resolution JPG images (72, 150, or 300 DPI) locally in your browser with single or ZIP download.
PDF to Text
Extract all text content from a PDF document, organized page by page.
PDF Merge
Combine multiple PDF files into a single document. Drag to reorder pages before merging.
Rotate PDF
Rotate PDF pages by 90°, 180°, or 270°. Select all pages or specific ones.