PDFCloak
LOCAL
HomePNG to PDF

PNG to PDF

Convert PNG images into clean, properly sized PDF documents.

In-browserNo upload

PNG is the format you reach for when quality matters absolutely. Screenshots, diagrams, logos with transparent backgrounds, UI mockups, digital art — anything where lossy compression would smear edges or introduce artifacts. Converting these to PDF preserves that quality completely. The tool wraps your PNG pixel data in a PDF container using lossless compression, keeping every pixel intact. It runs in your browser. Nothing gets uploaded.

Local-only session
Files processed inthis browser tab
Bytes sent to server0 / 0
Tab close discardseverything
Enginepdf-lib · client-side

PNG is the format you reach for when quality matters absolutely. Screenshots, diagrams, logos with transparent backgrounds, UI mockups, digital art — anything where lossy compression would smear edges or introduce artifacts. Converting these to PDF preserves that quality completely. The tool wraps your PNG pixel data in a PDF container using lossless compression, keeping every pixel intact. It runs in your browser. Nothing gets uploaded.

When to use this tool

PNG to PDF conversion is the right choice in a specific set of situations where the qualities of the PNG format matter:

  • Archiving screenshots and UI captures. Screenshots contain text rendered at screen resolution with pixel-perfect edges. JPEG would blur those edges. PNG-to-PDF keeps them sharp.
  • Packaging design assets for review. Logos, icons, and illustrations with transparent backgrounds are commonly PNG files. Converting to PDF lets you distribute them in a universally viewable format without losing the alpha channel.
  • Submitting technical diagrams. Flowcharts, architecture diagrams, and engineering schematics have fine lines and small text that degrade badly under lossy compression. PNG preserves them; PDF packages them.
  • Creating documents from scanned line art. If you scanned black-and-white line drawings or handwritten notes at high resolution, the scanner likely produced PNG files (or TIFF, which you would convert to PNG first). PDF gives you a single portable file.
  • Compiling evidence or documentation. Legal proceedings, insurance claims, and quality assurance records often require lossless image documentation in PDF form.

If your images are photographs and you do not need transparency, JPG to PDF will produce smaller files with no perceptible quality difference for photographic content.

How PNG embedding in PDF works

PNG and PDF both support lossless compression, but they achieve it differently. Understanding the mechanics explains why file sizes may shift and how transparency is handled.

A PNG file compresses pixel data using the deflate algorithm (the same one behind gzip and zip files), but with a preprocessing step: each row of pixels is filtered relative to adjacent rows using one of five prediction methods (None, Sub, Up, Average, Paeth). This row-level filtering exploits spatial redundancy in images — neighboring pixels tend to be similar — and dramatically improves compression ratios for images with large areas of uniform color.

When embedding a PNG into a PDF, the tool performs the following steps:

  1. Decodes the PNG. The image's pixel data is decompressed from the PNG's IDAT chunks into raw pixel values. The row filters are reversed.
  2. Separates the alpha channel. If the PNG has transparency (an alpha channel), it is stripped out of the pixel data and stored separately. The RGB (or grayscale) pixel data goes into the main image stream. The alpha data becomes a soft mask — a separate image stream referenced by the main image via an /SMask entry in its dictionary.
  3. Recompresses with FlateDecode. The raw pixel data is compressed using the deflate algorithm (FlateDecode in PDF terminology). This is the same core algorithm PNG uses, but without the row-level prediction filtering. The result is still completely lossless, but the compression ratio may be somewhat lower than the original PNG achieved with its filters.
  4. Constructs the image XObject. The compressed data is wrapped in a PDF image XObject with metadata: width, height, bits per component (typically 8), color space (DeviceRGB or DeviceGray), and the FlateDecode filter declaration.
  5. Builds the page. A page object is created with dimensions matching your chosen page size. A content stream places the image at the correct position and scale.

The alpha channel handling deserves extra attention. PDF does not have a native RGBA image type the way PNG does. Instead, it uses a soft mask: a separate grayscale image that acts as a per-pixel opacity map. Where the mask is white (255), the image is fully opaque. Where it is black (0), the image is fully transparent. Values in between produce partial transparency. This mechanism is formally specified in the PDF transparency model introduced in PDF 1.4 and supported by all modern viewers.

Common issues

Large file sizes from high-resolution PNGs. A 4000x3000 pixel screenshot at 32 bits per pixel (RGBA) is 48 MB of raw data. PNG compresses this efficiently with its row filters, often to 2-5 MB. The PDF's FlateDecode recompression (without row filters) may yield a somewhat larger compressed size, and the soft mask for the alpha channel adds additional data. If the resulting PDF is too large, our Compress PDF tool can downsample the image resolution, or you can reduce the source image's dimensions before converting.

Transparent areas appearing white. This is the single most common point of confusion with PNG-to-PDF conversion. Your PNG had a transparent background, but the PDF shows white where transparency should be. The transparency data is present — it is stored in the soft mask. The white comes from your PDF viewer, which composites every page onto a white backdrop by default. If you import the PDF into a design application (InDesign, Illustrator, Figma) or layer it over other content, the transparency works as expected.

Color appearance shifting slightly. PNG files can embed ICC color profiles or specify a gamma value. Our tool extracts the raw pixel data and maps it to PDF's DeviceRGB or DeviceGray without embedding the original ICC profile. On a color-managed display, this can cause subtle shifts — slightly warmer, slightly cooler, marginally more or less saturated. For web screenshots and digital art viewed on standard sRGB monitors, the difference is invisible. For color-critical print work, you may need to assign the correct ICC profile in a professional tool after conversion.

Interlaced PNGs processing slowly. Interlaced (Adam7) PNGs store pixel data in a non-sequential order to allow progressive display in web browsers. Decoding them requires reassembling pixels from seven sub-images. This takes longer than decoding a standard non-interlaced PNG of the same dimensions. The output PDF is identical either way; the interlacing only affects processing time.

Grayscale PNGs with alpha. Some PNGs use a grayscale-plus-alpha color type. These are handled correctly — the gray channel becomes a DeviceGray image in the PDF, and the alpha channel becomes its soft mask. The output is compact because there is only one color channel instead of three.

What to expect from our tool

Add your PNG files and they appear as draggable thumbnails. Choose a page size — match the image dimensions exactly, or place images onto A4, Letter, or another standard size with margins. Click convert and download the PDF.

Conversion speed scales with total pixel count. A few screenshots convert in under a second. A dozen high-resolution images may take a few seconds as the tool decompresses, separates alpha channels, recompresses, and assembles the PDF structure.

The output is a standards-compliant PDF with lossless image data. Transparency is preserved via soft masks. Text and line edges remain pixel-sharp. The tool adds nothing to your file — no watermarks, no metadata stamps, no tracking pixels. What you put in is what you get out, wrapped in a PDF container.

Related tools
What the tool does

Built for documents you can't afford to lose.

Runs in your browser
No server round-trip. Your file is processed by WebAssembly right in this tab.
Preserves quality
No re-encoding by default. Structure, links, and metadata survive intact.
Nothing to leak
Files never leave your device. Close the tab and everything is gone.
PNG to PDF · FAQ

About this tool, specifically.