PNG to PDF
A PNG to PDF converter that runs inside your browser: add PNG (or JPG) files of up to 50 MiB each, put them in order, and download one PDF with one image per page. Transparent pixels are written as a soft mask rather than filled with white, and nothing is uploaded.
How to use
- Add your PNG files: Drop the images onto the box or click to choose them. You can add several at once or drop a whole folder, and the box stays on screen afterwards, so more images join the end of the list. Each file can be up to 50 MiB (52,428,800 bytes); JPG files are accepted alongside PNG.
- Order the pages: Each row shows a thumbnail, the file name and the file size. Use ↑ and ↓ to move an image one place, ✕ to drop one, or Clear all to empty the list. The PDF follows the list from top to bottom, one image per page.
- Pick a page size: Fit to image (no border) gives each page the pixel size of its own image. A4 portrait (centered, for printing) puts every image on the same A4 sheet, scaled down and centered with a margin of at least 36 pt.
- Convert and save: Click Convert to PDF, scroll through the preview, then download converted.pdf. On a phone, Save to device opens the system share sheet when the browser offers file sharing and downloads the PDF when it doesn't.
How this PNG to PDF converter works
This PNG to PDF converter combines PNG and JPG files into one PDF, with one image per page in list order. Each file can be up to 50 MiB. Conversion runs locally in your browser without uploading the images.
Inside the page, each file is read from your own disk into memory, the document is assembled there with the pdf-lib library — which the page only requests when you press Convert to PDF — and the finished PDF is handed straight to the download button. There is no server step and no upload, which is why screenshots of a bank transfer, a chat thread or an ID card are safe to convert here.
Nothing is kept afterwards. The result lives only in the page's memory, so reloading or closing the tab clears both the image list and the PDF — download it before you leave. Nothing in the code caps how many images you add; the count sits on the Convert to PDF button. The real ceiling is memory, because the whole batch is read in at once and each PNG is expanded to four bytes per pixel while it is being embedded. Where that ceiling falls on a given phone or laptop is not something we have measured, so split a very large pile into two or three PDFs if a conversion stalls.
Because PNG is the format screenshots are saved in, this doubles as a screenshot to PDF converter: phone screenshots, a sequence of desktop captures, or a logo exported from a design app all go in the same way. Files in other formats are turned away as you add them, with a message saying how many were skipped, and the drop box only disappears while a conversion is running, so an image dropped at that moment cannot sneak into a batch the converter has already read.
What happens to transparency, grayscale and 16-bit PNGs
Transparency survives. When the decoded image contains any pixel whose alpha is below 255, the alpha channel is written next to the picture as a separate grayscale image and linked to it as a soft mask, so transparent areas stay transparent instead of being flattened onto white. That decision is made from the decoded pixels, not from the PNG's color type, so a palette PNG with a tRNS chunk and a grayscale-plus-alpha PNG get a mask too. A fully opaque PNG gets no mask, and the choice is made image by image — in a mixed batch, each page carries only what its own picture needs.
One detail to expect when you open the result: a PDF page has no background of its own here, because only the image is drawn on it. Transparent areas therefore show whatever color your reader paints behind the page, which in most readers is white. They look white; they have not been turned white, so the same file dropped onto a colored slide or printed on tinted paper still shows through.
What does change is the way the pixels are stored. Every PNG is decoded and written back as an 8-bit DeviceRGB pixel stream, whatever it was before. A grayscale PNG becomes three channels, so one byte per pixel turns into three. A 1-bit black-and-white scan is expanded the same way, which multiplies its pixel data by 24. A 16-bit PNG keeps only the high byte of each channel, and that is a genuine loss of precision — 0x8080 comes out as 0x80. The RGB values of an ordinary 8-bit PNG are copied across as they are, with no re-coloring, but the file's side chunks are not: gAMA, sRGB, pHYs, tEXt and embedded ICC profiles are read by the decoder and then left behind. The stream only declares DeviceRGB, so colors can be interpreted slightly differently by different readers, and the DPI recorded in the PNG has no effect on the page.
HEIC photos from an iPhone, WebP downloads, GIF, BMP, TIFF and SVG need a PNG or JPG copy first — make one with Image Converter, then add it here.
Fit to image or A4 portrait: which page size to pick
Fit to image (no border) is the one to use for screens, chat apps and upload forms. Each page takes the pixel dimensions of its own image, so a 1080 × 2400 phone screenshot becomes a 1080 × 2400 pt page with no white edges, and pages inside one PDF can be different shapes — a PDF stores a size per page rather than one for the document. A long screenshot stays on a single very tall page; it is never sliced across several.
A4 portrait (centered, for printing) gives every page the same 595.28 × 841.89 pt sheet and scales each image down into a content box of 523.28 × 769.89 pt, which is A4 minus a 36 pt margin on all four sides. The scale factor is the smaller of the two ratios, capped at 1, and which of them wins decides where the extra white space goes. A tall screenshot is limited by its height: a 720 × 1280 capture ends up with exactly 36 pt above and below and 81.11 pt down each side, which is the wide white border people notice after printing. A wide image is limited by its width instead, with exactly 36 pt left and right and more space above and below. Only an image whose proportions match the content box exactly lands on 36 pt all round.
The cap at 1 matters for small images: a 300 × 300 logo is not blown up to fill the sheet. It is drawn at its own size in the middle of the page, so both pairs of margins come out wider than 36 pt. The margin itself is fixed — there is no A4 landscape, no US Letter, no custom paper size and no margin setting, and the two buttons above are the whole list of choices. Switching between them barely touches the file size, since only the page geometry changes: the same photo PNG produced 616,520 bytes in Fit to image and 616,557 bytes in A4 portrait in our measurements.
| Option | Page size | Margins |
|---|---|---|
| Fit to image (no border) | That image's pixel size, at 1 pixel = 1 pt | None; the picture reaches all four edges |
| A4 portrait (centered, for printing) | 595.28 × 841.89 pt on every page | At least 36 pt, and more on one pair of sides unless the proportions match exactly |
The two page-size buttons and what each does to a page.
Will the PDF be bigger than the PNG files?
It can go either way, and the mechanism explains why. The PDF holds the decoded pixels compressed with Flate, without the per-row prediction filters a PNG encoder uses, so whether the document grows or shrinks depends on how efficiently the original PNG was encoded rather than on anything you can set here.
Both directions showed up in our measurements. An 800 × 600 photographic PNG of 214,657 bytes became a 616,520-byte PDF in Fit to image mode — about 2.87 times the input. A 400 × 400 flat-color PNG went the other way, from 1,682 bytes to 1,422 bytes, about 0.85 times its size. A mixed pair — one JPG plus that PNG, 756,198 bytes together — came out at 1,158,404 bytes. Those are single measurements of specific sample files, taken in the same conversion code the page runs; a byte or two moves between runs because the conversion timestamp is written into the document. Treat them as examples of the two directions, not as a ratio to expect from your own images.
There is no quality slider and no target size in this tool, so it cannot promise a smaller file — and saving a PNG as JPG before converting is usually the bigger lever on photographic images, because JPG bytes are embedded without being decoded at all.
If the finished document is too heavy for an email or an upload form, shrink it with Compress PDF.
Limits, and what makes a conversion fail
Only PNG and JPG get through, and they are checked twice: the file picker filters by type, and the converter then reads the first bytes of each file — the 8-byte PNG signature or the JPG start marker — so renaming a WebP or a HEIC to .png does not fool it. A file that passes neither check stops the run with "This file isn't a PNG or JPG image", prefixed with its name.
Animated PNGs are the surprising case. The signature and header are perfectly normal, so they pass both checks, but the PDF writer refuses an image that decodes to more than one frame: the run stops, no PDF is produced, and nothing is taken from the first frame. A file that merely carries animation chunks but still decodes to a single frame is converted normally. A damaged or truncated PNG lands on the same message as an animated one, since both are reported as an image that cannot be read.
A failure stops the whole batch — there is no partial PDF with the good pages in it. The message names the file that failed whenever that image also fails on its own, which is what you want in a list of twenty screenshots; when every image converts individually and the batch still fails, usually because memory ran out, the message appears without a file name. Remove the offending row with ✕, or convert fewer images at a time, and run it again.
Two more boundaries worth knowing. There is no text layer in the result: words inside a screenshot stay pixels, so they cannot be selected, copied, searched or read out by a screen reader, because nothing here performs OCR. And nothing from the images becomes document metadata — no bookmarks, no page labels, no file names printed on the pages. The document properties name pdf-lib as the producer, the creation date is your device's clock at the moment you convert, and there is no title, author or capture date. Page numbers, watermarks, passwords and background colors are all outside what this tool does.
Going the other way — pulling pictures back out of a PDF — is a separate job: use PDF to Image.
How this tool is checked
- The logic behind this tool is covered by 21 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- Does PNG to PDF keep a transparent background?
- Yes. If the decoded image has any pixel that is not fully opaque, its alpha channel is embedded as a soft mask, so transparent areas are not filled with white. The page itself is drawn without a background, so those areas show your reader's page color — usually white — while the transparency itself stays in the file.
- Can I combine multiple PNG images into one PDF?
- Yes, and there is no fixed limit on the number of images. Each one becomes its own page, in the order of the list from top to bottom. Add files in batches, drop a folder, reorder rows with ↑ and ↓, and remove any you don't want with ✕ before converting.
- Can I convert PNG to PDF without losing quality?
- For ordinary 8-bit PNGs, RGB pixel values and transparency are preserved; 16-bit precision and embedded color profiles are not. The RGB values of an 8-bit PNG are copied into the PDF unchanged and are never run through lossy compression, and the pixel dimensions are kept. A 16-bit PNG is reduced to 8 bits per channel, which is a real loss, and embedded color profiles such as ICC or sRGB are not carried over, so colors can be interpreted slightly differently by different readers.
- Why is my PDF larger than the PNG files I added?
- Because the pixels are decoded and re-compressed without PNG's per-row filters, so a well-compressed PNG can need more bytes inside a PDF. Our 214,657-byte photographic sample became 616,520 bytes, about 2.87 times its size, while a flat-color sample shrank from 1,682 to 1,422 bytes. The direction depends on the image, and this tool has no compression setting.
- Can I convert screenshots to PDF and still search the text in them?
- No. The result is a picture-only PDF with no text layer, because nothing here runs OCR. Words in a screenshot stay visible but cannot be selected, copied or searched. If the person receiving the file needs to search it, send the original document instead of pictures of it.
- Why does my animated PNG fail to convert?
- Because the PDF writer rejects any PNG that decodes to more than one frame, and the whole batch stops rather than using the first frame. You'll see the message about an image that can't be read, with the file's name in front of it. Export a single still frame as a normal PNG and convert that instead.
- Which page size should I use for phone screenshots?
- Fit to image (no border) if the PDF is for reading on a screen, since each page takes the screenshot's own pixel size and nothing is cropped or padded. A4 portrait (centered, for printing) if it is going on paper — expect side margins, because a tall capture is scaled by its height: a 720 × 1280 screenshot keeps 36 pt top and bottom and 81.11 pt on each side.
- Does it work on a phone, and are my images uploaded?
- It works in any modern mobile browser, and nothing is uploaded — the PDF is built on your own device. When you tap Save to device, the system share sheet opens if the browser supports sharing files, and otherwise the PDF downloads straight to the phone. Very large batches are limited by the phone's memory, so convert them in groups if one stalls.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). PNG to PDF [Online tool]. Retrieved November 22, 2026, from https://gingertool.com/en/pdf/png-to-pdf/
“PNG to PDF.” Gingertool, November 22, 2026, https://gingertool.com/en/pdf/png-to-pdf/. Accessed November 22, 2026.
@misc{gingertool-png-to-pdf,
author = {{Gingertool}},
title = {PNG to PDF},
year = {2026},
url = {https://gingertool.com/en/pdf/png-to-pdf/},
note = {Accessed: 2026-11-22}
}