How-ToMarch 19, 2026·4 min read

How to Convert PNG to PDF Without White Borders

White borders appear when your PNG image is placed on a larger standard-sized PDF page. Here is exactly how to eliminate them.

You convert a PNG to PDF and open the result — only to find your image surrounded by a thick white border. The image is small, centered on a large white page, with empty space on all sides. This is one of the most common frustrations with PDF conversion. Here is exactly why it happens and how to fix it permanently.

Why White Borders Appear When Converting PNG to PDF

The white border issue has one root cause: page size mismatch. When a converter creates a PDF, it uses a standard page size — A4 (210×297mm) or US Letter (8.5×11in). Your PNG image almost certainly has different dimensions than A4 or Letter.

For example, imagine a PNG that is 800×600 pixels (4:3 aspect ratio). When placed on an A4 page (roughly 1:1.41 ratio), the converter scales the image to fit within the A4 dimensions, centering it horizontally and vertically. The leftover space — the parts of the A4 page not covered by your image — appears as white margins.

The bigger the difference between your image's aspect ratio and the page size's aspect ratio, the thicker the white borders.

The Fix: Use "Fit to Image" Page Size

The solution is to create a PDF page that exactly matches your PNG image's dimensions — so there is no leftover space for white borders. This is called "Fit to Image" mode.

Using ConvertToPDF.online's PNG to PDF converter:

  1. Upload your PNG file
  2. In the page size selector, choose "Fit to Image" instead of A4 or Letter
  3. Click Convert to PDF

The resulting PDF will have pages sized exactly to your image dimensions. If your PNG is 800×600px, the PDF page will be 800×600 units — no margins, no white space, no borders. The image fills the entire page perfectly.

When Should You Use A4 vs Fit to Image?

The right choice depends on what you plan to do with the PDF:

  • Use A4 or Letter when the PDF needs to print on standard paper (submitted as a document, printed at an office, etc.). The white margins are actually intentional in this case — they are the paper's print margins.
  • Use Fit to Image when you want the PDF to match your image exactly — for digital sharing, embedding in presentations, portfolios, infographics, screenshots, and any case where you view the PDF on screen rather than print it.

White Borders vs. Transparent Backgrounds

Sometimes what looks like a white border is actually the PNG's transparent background becoming visible. PNG files support transparency (alpha channel), but PDF pages render transparent areas as white by default.

If your PNG has a transparent background (you can check in an image editor — it shows as a checkerboard pattern), the white you see in the PDF is the transparency filling white, not a margin. In this case, Fit to Image will not help — the white comes from inside your image, not from page margins.

To fix this, edit the PNG in an image editor before converting: either add a colored background layer, or crop the image to remove transparent edges.

Summary

  • White borders from page size mismatch → use Fit to Image mode
  • White from transparency → add a background in your image editor first
  • Use Fit to Image for screen-viewed PDFs (infographics, portfolios, screenshots)
  • Use A4/Letter for print-ready documents

Convert PNG to PDF without white borders

Select "Fit to Image" in our free PNG to PDF converter for perfectly borderless output.

PNG to PDF Converter →