Skip to content

PNG to PDF: lossless, with transparency kept or flattened

Turn screenshots, logos, diagrams and scans saved as PNG into one PDF. PNGs without transparency are placed in the PDF as they are, without being decoded or compressed again, so text and fine lines stay exactly as sharp. Transparent PNGs keep their transparency, or you can flatten it onto white or any colour. Everything happens in your browser.

Quick answer

Add your PNG files, drag them into order, choose whether transparent areas stay transparent or become white or another colour, pick A4, Letter or the image's own size, and press Convert. Opaque PNGs are copied into the PDF unchanged and transparent ones are stored without loss. Nothing is uploaded.

Files never leave your device

Editor: Abuzar, founder of NeedMyToolsHow we check facts

Or drag and drop them here. PNG screenshots, logos, diagrams and scans. Your files stay on this device.

How to use the PNG to PDF

  1. Tap "Choose PNG files" or drop them onto the box. Each file shows its size, DPI and whether it has transparency.
  2. Drag the rows into order, use the arrows, or press "Sort by file name" for numbered screenshots.
  3. Choose what happens to transparent areas: keep them, make them white or pick a colour. Then choose the page size and margin.
  4. Name the file and press Convert. The PDF downloads straight away, one PNG per page.

What this page does that JPG to PDF does not

Both tools share the same PDF engine, and JPG to PDF also accepts PNG files. This page is built around what PNG files have and photos do not: transparency, exact pixels and a saved print resolution. Here you decide what happens to transparent areas, the page size can follow the DPI stored in each file, you can drag pages into order or sort them by file name, and every file shows its pixel size, DPI and transparency before you convert. Damaged files and files that are not really PNG are named and refused. For phone photos and HEIC files, JPG to PDF is the better choice because it turns sideways photos upright.

Lossless: what happens to your pixels

PNG and PDF use the same Deflate compression and the same row filters, so the compressed image data of a PNG without transparency can go into the PDF unchanged, with a note telling the PDF reader how to undo the PNG filters. Nothing is decoded or squeezed again, which is why even an 8000 × 8000 px PNG converts in about a second. In our tests the image extracted back from the PDF with Poppler matched the source pixel for pixel, at 8 and 16 bits per channel. A PDF keeps transparency as a separate mask, so transparent PNGs are split into colour and mask row by row and compressed again without loss. Two honest limits: transparent 16-bit PNGs are stored at 8 bits per channel, and an embedded colour profile is not carried over.

Transparency: keep it, make it white or pick a colour

"Keep transparent" stores the PNG's transparency as a soft mask. On screen most PDF readers show it on white paper, but if you place the PDF in a design program or over a coloured background, the see-through areas stay see-through. "White" blends every transparent and semi-transparent pixel with white, so the PDF has no transparency at all; choose it if a printer or another program shows black boxes or rough edges around a logo. "Colour" does the same with any colour you pick, for example a dark slide background, so anti-aliased edges blend smoothly into it.

Page size and the DPI saved in a PNG

A4 (210 × 297 mm) is the default, US Letter is there for North America, and "Same size as image" makes each page exactly as large as its picture. Many PNGs record a resolution in DPI. With that option on, a 2480 × 3508 px scan saved at 300 DPI comes out exactly A4 size, and a screenshot from a high-density screen saved at 144 DPI appears at the size it had on screen. Files without a DPI are placed at 1 pixel per point, 1/72 inch. On A4 and Letter, images are scaled down to fit the margins but never enlarged, so small logos are not blurred.

Messy files and limits

A PNG that is cut off, damaged or fails its checksum is refused with its name, so you know which file to replace, and a JPG renamed to .png is pointed to the JPG tool. For an animated PNG only the first frame is used. Each image can be up to 100 megapixels and the files together up to 300 MB; above that a phone browser can run out of memory. Adam7 interlaced PNGs, which are rare, are converted through a slower decoder but come out the same. The PDF is built in your browser with the open-source pdf-lib library and saved straight to your device. To make the finished file smaller, use compress PDF; to join it with other PDFs, use merge PDF.

Frequently asked questions

Does converting PNG to PDF reduce quality?

No. PNGs without transparency are copied into the PDF unchanged, and transparent ones are stored without loss. Only 16-bit transparent PNGs are reduced to 8 bits per channel.

Will my transparent PNG logo stay transparent in the PDF?

Yes, if you choose "Keep transparent". Most PDF readers show it on white paper, but design programs keep the see-through areas. Choose White or a colour to flatten it instead.

How do I combine many screenshots into one PDF in the right order?

Add them all at once, press "Sort by file name" if they are numbered, drag any row to move it, then press Convert. Each PNG becomes one page.

What page size will my PNG have in the PDF?

A4 by default, or US Letter. "Same size as image" uses the DPI saved in the PNG when there is one, otherwise 1 pixel per point.

Is anything uploaded when I convert PNG to PDF here?

No. The files are read and the PDF is built inside your browser, then saved to your device. Nothing is sent to NeedMyTools or anyone else.