Images to PDF
A hand-written minimal PDF writer: embed JPG / PNG as XObjects on A4 / Letter / image-sized pages with 1, 2, 4, 6 or 9 images per page, producing real openable PDF bytes.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Images are embedded into the PDF locally in your browser and never uploaded.
Pick JPG / PNG images and each one is listed with its size and format.
Result
Images: 0
What this tool does
- Turn photos into a booklet: pick a dozen JPGs, two per page, and the PDF is ready to send.
- Prepare paperwork: lay scanned pages one per A4 page so printing does not rescale them.
- Build a thumbnail index: nine per page shows everything at a glance for a handover list.
- Need the original size? Choose "Match image size" and the page equals the first image pixel size.
Example
Input
One 8 × 8 PNG, A4 pages, one image per page
Output
Images: 1 Pages: 1 Per page: 1 Page size (pt): 595 × 842 PDF size: 767 B
Images are embedded as /XObject image objects (PNG uses a FlateDecode stream) and placed with a cm transform; the file has a complete xref and trailer and opens in browsers and readers.
Frequently asked questions
Is the generated PDF a real file or a placeholder string?
A real file. The writer assembles PDF 1.4 structure — header, object table, xref cross-reference table and trailer — so browsers, Preview and common readers can open it.
Does it support WebP or HEIC?
Input is decoded by the browser and embedded as PNG. Browsers decode WebP, so that works; HEIC is not decodable in most browsers and is reported as a read failure.
Why is a JPEG-based PDF a bit larger than the source?
Inputs are re-encoded as PNG (lossless and consistent across browsers) before embedding, so JPEG sources usually grow. Compress the images first if size matters.
How many images fit on a page?
The UI offers 1, 2, 4, 6 and 9 per page, corresponding to 1×1, 1×2, 2×2, 3×2 and 3×3 grids.
Keywords:img-to-pdfimages to pdf