Convert PNG to PDF
Screenshots, diagrams and scanned line art are usually PNGs, and this page accepts PNG files only. Each one is decoded, stored in the PDF with lossless compression on a page the size of the image, and saved with the rest as images_combined.pdf.
Start here
Every one of these runs entirely in your browser.
Choose PNG images
Click to select or drag and drop PNG files to combine into a PDF
Drag files onto the area, or drag images to reorder after you add them
How to convert PNG to PDF
- Add the PNG filesA file is accepted when it begins with the eight-byte PNG signature. A JPEG renamed to .png is refused, and the line above the thumbnails names it.
- Set the page orderPages follow the numbered badges. Drag one thumbnail over another to change places; hover a thumbnail and press × to remove it.
- Create the PDFLeave the size box blank so nothing is turned into JPEG, then press Create PDF. images_combined.pdf downloads with one page per PNG.
About this page
How a PNG is stored in the PDF
A PNG cannot be dropped into a PDF as it is, the way a JPEG can, because PDF has no PNG filter. pdf-lib decodes each file to 8-bit red, green, blue and alpha values and writes the colour into the document with Flate, the same deflate compression PNG uses inside. The picture on the page matches the decoded pixels exactly.
Two side effects follow. A 16-bit PNG, as some scientific and photo-editing exports are, is reduced to 8 bits per channel. A palette PNG, the compact kind with 256 colours or fewer, is expanded to full colour, so its page can take noticeably more bytes than the original file. An animated PNG stops the conversion with the message Animated PNGs are not supported.
Transparent areas
If any pixel is less than fully opaque, the alpha values are written into the PDF as a soft mask next to the colour, so see-through areas stay see-through. Nothing is painted behind them; what shows there is whatever the PDF viewer draws under the page, which in most viewers is white. A PNG with no transparent pixels gets no mask at all.
PNG or JPG for this PDF
For screenshots, text and flat colour, PNG keeps edges crisp. For photographs it usually makes a far heavier PDF than the same pictures as JPEG, so convert those with the image format converter and use JPG to PDF instead.
The optional size box turns every page into JPEG to reach its ceiling, which undoes the reason for choosing PNG. Use it only when the size limit matters more than exact pixels.
Frequently asked questions
Is PNG to PDF lossless?
For ordinary 8-bit PNGs, yes: the decoded pixels are stored with lossless compression. There are two exceptions. A 16-bit image is reduced to 8 bits per channel, and filling in the size ceiling re-encodes every picture as JPEG.
Does transparency survive in the PDF?
Yes. Partly or fully transparent pixels are written as a soft mask, so nothing is filled in. The PDF adds no background colour of its own; most viewers show a white page underneath.
Why is the PDF bigger than my PNG files?
PNG encoders choose a prediction filter for each row and often use a colour palette. The PDF stores plain 8-bit colour with deflate and neither of those tricks, so screenshots with few colours grow the most.
My file was rejected as not a PNG. Why?
Its first bytes are not the PNG signature. Phone photos and many web downloads are JPEG or WebP even when they are named .png. Use JPG to PDF for JPEGs, or Images to PDF for a mix of formats.
Do my screenshots leave the device?
No. Decoding and building the PDF both run in this tab. What the site does send is visit analytics: a page view when the page loads, and an Umami event called tool-run once a PDF has been made, with only two fields, tool and slug, here images-to-pdf and png-to-pdf. File names, sizes and contents are not part of either.