Menu
Advertisement

PNG to PDF Converter

Turn screenshots, diagrams and other PNG images into a PDF, one image per page. Runs in your browser.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to convert PNG to PDF

PNG is the format screenshots, charts and diagrams usually come in. It is lossless, which keeps text and thin lines crisp, so it is worth keeping when you make a PDF from one. Put each PNG on its own page and you have a document you can print, sign or send.

With Quality set to Original, a PNG is placed in the PDF as a PNG, with nothing redrawn. Transparent areas stay transparent, so what shows behind them is the paper of the page. If a PDF built from big PNGs is too heavy for an upload, switch to Smaller file, which redraws the pictures as JPEG at up to 2000 pixels.

The conversion happens in your browser. Your files are never uploaded: the work happens in your browser, so nothing leaves your device. There is no watermark and no sign-up.

What to know about PNG and PDF

  • PNG is lossless: it stores every pixel exactly. That makes it ideal for screenshots and text, and also makes photos in PNG very large.
  • PNG can have an alpha channel, which records how transparent each pixel is. A PDF page is not transparent, so the page color shows through.
  • A screenshot at 1920 by 1080 pixels has a different shape from an A4 page. Fitting it means scaling it down and centring it, which leaves white space above or below.
  • If you do this often, a few lines of Python with the Pillow library can convert a whole folder, and the example below shows the safe way to handle transparency.

How to turn PNG images into a PDF

  1. Add the PNG files

    Drop them on the page or choose them from your device. Use Add more images for more.

  2. Set the order

    Each PNG becomes one page. Use the arrows to move a page earlier or later.

  3. Pick page size and quality

    Choose A4, US Letter or Same as image. Keep Original for sharp text, or Smaller file for a lighter PDF.

  4. Convert to PDF

    Press Convert to PDF and download the result.

PNG to PDF settings

Good starting points for common PNG jobs.

JobPage sizeQuality
Screenshots to shareSame as imageOriginal
A report with charts to printA4 or US Letter, Small marginOriginal
A one-page diagramSame as imageOriginal
Many large screenshots under an upload limitA4Smaller file

PNG to PDF examples

Screenshots of a bug report

Settings

Page size: Same as image Orientation: Auto Margin: None Quality: Original

Each page matches its screenshot exactly, so no part is shrunk and text stays sharp.

Slides saved as PNG, to print

Settings

Page size: A4 Orientation: Landscape Margin: Small Quality: Original

Slides are wide, so landscape pages use the paper well. A small margin keeps the print safe from the edge.

Do the same in Python

Python (Pillow)
from PIL import Image
shot = Image.open("screenshot.png").convert("RGBA")page = Image.new("RGB", shot.size, "white")page.paste(shot, mask=shot.getchannel("A"))page.save("screenshot.pdf")

The image is pasted on a white page using its own transparency as a mask, so see-through areas come out white instead of black.

Common PNG to PDF mistakes

  • Converting a photo saved as PNG with Original quality. The PDF can become huge, so use Smaller file for photos.
  • Expecting the text in a screenshot to be selectable. It is a picture of text, not text.
  • Printing a screenshot with Same as image. The page size is odd, so choose A4 or US Letter for paper.
  • Forgetting that transparent areas show the white page, so a logo with a white design may disappear.

PNG to PDF FAQ

How do I save a screenshot as a PDF?

Add the screenshot PNG, choose Same as image for the page size and press Convert to PDF. You get a PDF with the screenshot on one page.

Does PNG to PDF keep transparency?

With Original quality the PNG is placed as a PNG, so transparent areas stay transparent and the white page shows through them. Smaller file redraws on a white background.

Can I combine several PNG files into one PDF?

Yes. Add them all, put them in order and each one becomes a page of the same PDF.

Is the PNG quality reduced in the PDF?

No, not with Original: the PNG goes in untouched. Only the Smaller file setting changes the picture.

Are my PNG files sent to a server?

No. Everything runs in your browser and your files never leave your device.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started