# PDF to PNG — Convert Selected PDF Pages to Lossless PNG

> Convert PDF pages to PNG images locally in your browser. Select exact pages, set DPI or pixel width, trim margins, rotate and export lossless page images.

[Canonical page](https://www.pdftolongimage.com/pdf-to-png)

PNG is the better default for text-heavy pages, diagrams, UI captures and line art when you want lossless output instead of JPEG compression.

## Features

- **Lossless page rendering**: Keep sharp text edges, diagrams and flat graphics without JPEG compression artifacts.
- **Exact resolution**: Use 96, 150 or 300 DPI, a custom DPI, or an exact pixel width.
- **Clean page edges**: Automatically trim white margins while keeping a configurable amount of padding.

## How to use

1. **Add the PDF**: The browser opens the file and creates page thumbnails locally.
2. **Select pages**: Choose the whole document or only the page ranges you need.
3. **Choose resolution**: Set DPI or exact width, then optionally trim margins or convert to grayscale.
4. **Export PNG**: Download one PNG directly or multiple PNG files together in a ZIP.

## Questions and answers

### Is PNG better than JPG for PDF text?

Often yes. PNG is lossless, so small text and line art avoid JPEG compression artifacts, though the output files are usually larger.

### Can I set a maximum KB size for PNG?

Not in this tool because PNG is lossless and a simple quality slider would be misleading. Use a smaller output width or JPG/WebP when strict file size matters.

### Can I export only selected PDF pages as PNG?

Yes. Use thumbnail selection or a range such as 2-5, 9, 12-14.
