PNG to PDF converter
Turn PNG screenshots and exports into one PDF. At Maximum quality the PNG is embedded byte-for-byte, so transparency survives instead of being flattened.
PNG and PDF agree on more than people expect. PNG stores every pixel exactly and can mark pixels transparent; PDF can carry that same lossless image and reproduce the transparency with a soft mask. So at Maximum quality this page does not flatten anything: the PNG is embedded as it is, alpha included, and a page is drawn around it. That matters for the two things people actually convert — screenshots, where crisp text must stay crisp, and logos or UI exports with a transparent background that would otherwise turn into a white rectangle. Page size, orientation, margin, scaling and page order are all yours to set, and the whole document is written by JavaScript in this tab.
Key facts about PNG to PDF converter
| Transparency | Kept at Maximum quality — pdf-lib embeds the alpha channel as a PDF soft mask (SMask), so a transparent background stays transparent |
|---|---|
| Lossless path | Maximum embeds the PNG's own deflate-compressed pixels; nothing is re-sampled and no text edge is softened |
| Lower quality settings | Low 60, Medium 80 and High 92 re-encode to JPEG through a canvas — which flattens transparency onto white and blurs sharp text edges |
| One page per image | Every PNG becomes exactly one page, in list order |
| Page sizes | A4, US Letter, US Legal, A3, A5, Fit to image (the page takes the PNG's pixel dimensions), or a custom box from 100 to 2000 pt |
| Orientation | Portrait, Landscape, or Auto, which decides per image — useful for a mix of wide screenshots and tall mobile captures |
| Margins | None (0 pt), Small (18 pt), Medium (36 pt), Large (54 pt) or a typed value; not applied when the page size is Fit to image |
| Scaling | Fit keeps the ratio inside the margins, Fill covers the page and clips the overflow, Stretch distorts to the box, Original draws 1 pixel per point |
| Screenshot sizing | At Original, a 1920 px wide screenshot is 1920 pt wide — wider than A4's 595 pt. Fit is what keeps a full-width screenshot on the page |
| File size | A PDF of PNGs is roughly the sum of the PNGs; PNG does not compress screenshots as hard as JPEG does, so these files are larger than the JPG equivalent |
| This page takes PNG only | Other formats are rejected with a message; Images to PDF handles a mixed folder including HEIC, WebP, BMP, GIF and TIFF |
| Not included | OCR, a selectable text layer, page numbering, or merging with an existing PDF — those are separate tools |
What happens to your file
pdf-lib, a JavaScript library, writes the document inside this tab. Your PNGs are read with the File API, passed to pdf-lib's PNG embedder — which is what builds the soft mask that preserves alpha — and the finished bytes become a Blob and a temporary object URL for the download. Choosing a quality below Maximum adds one local step: a 2D <canvas> in the same tab paints the PNG onto white and re-encodes it as JPEG. Neither path makes a network request. No upload endpoint, no Pages Function, no queue. Disconnect from the internet after the page loads and it still works, which is the simplest way to check the claim. Nothing is kept after you close the tab.
About this tool
- 1
Add the PNG files
Drop them in or browse. Each one appears as a thumbnail in the order it will appear in the PDF.
- 2
Set the page order
Drag a thumbnail to move it, or hover and use the arrows. The X removes one without clearing the rest.
- 3
Pick the page size
A4 or Letter for print; Fit to image when the PDF is for screen only and you want the page to be exactly the screenshot. Auto orientation handles a mix of wide and tall captures.
- 4
Adjust margin and scaling
Margins are under Advanced options. Fit with a Small margin keeps a full-width screenshot readable and inside the printable area.
- 5
Leave quality at Maximum
That is the setting that keeps the PNG lossless and its transparency intact. Only drop it if the PDF has to fit a size limit — and expect a white background where the alpha was.
- 6
Preview, then download
The finished PDF is rendered in the page. Check a page with fine text at full zoom before you download it.
| Input | .png (image/png), including 8-bit and 16-bit RGBA. Other extensions are refused before anything is written |
|---|---|
| Output | A single application/pdf file, PDF 1.7, named png-to-pdf.pdf |
| Engine | pdf-lib 1.17 — embedPng for the lossless path (alpha becomes an SMask), drawImage for page geometry |
| Page units | PDF points: 1 pt = 1/72 inch. A4 is 595.28 × 841.89 pt, Letter 612 × 792 pt |
| Transparent pages | PDF has no page background of its own, so a transparent PNG shows whatever the viewer paints behind the page — white in most readers |
| Large screenshots | The lossless path has no size ceiling beyond memory; a re-encode is capped by the browser's canvas limit, roughly 16,384 px a side on Chromium |
| Browser support | Chrome, Edge, Firefox and Safari on desktop and mobile; no extension, no install |
| Offline | Works with the network off once the page has loaded |
- Screenshots are the classic case for PNG to PDF: the lossless path keeps one-pixel text strokes sharp, where a JPEG re-encode gives them the fuzzy halo everyone recognises.
- If your PDF looks like it has a white background where you wanted transparency, the quality setting is below Maximum — that path flattens onto white by definition.
- PNG files are big. If a screenshot bundle comes out too large to email, converting the screenshots to JPG first usually beats dropping the quality here.
- For a UI logo sheet, Fit to image with no margin produces pages exactly the size of each asset, which is easier to review than a page of A4 white space.
- A 16-bit PNG from a design tool embeds fine, but the file is twice the size for a difference you cannot see in a PDF viewer — export 8-bit if size matters.
- Mobile screenshots are tall and narrow. Auto orientation will still give them a portrait page, so combine that with Fit and a small margin rather than Fill.
- Lossless PNG embedding with transparency preserved as a PDF soft mask
- A4, Letter, Legal, A3, A5, fit-to-image or custom page boxes
- Portrait, landscape or per-image automatic orientation
- Margin presets plus a typed value, and four scaling modes
- Drag-to-reorder thumbnails and an optional title page
- In-page PDF preview before download
- Turning a sequence of screenshots into a step-by-step PDF for a bug report or a hand-over document.
- Packaging exported UI assets or logos into one file for a client review, with the transparent backgrounds intact.
- Building a PDF of charts exported as PNG from a notebook or BI tool, at print page size.
- Collecting scanned pages saved as PNG into a single document in the right order.
- Making a printable A4 version of a long web capture, scaled to fit inside the margins.
- Preparing PNG design proofs as one attachment instead of a folder someone has to unzip.
Related tools
View allWorks well with this5
Other PDF tools12
Updated