# PDF to Image

> Render PDF pages to PNG or JPEG, then download one image or a ZIP.

Free PDF to image tool. Pick PNG or JPEG, a DPI from 72 to 216, and a page range. One page downloads as an image. Several pages download as a ZIP. The render runs in this browser.

- Page: https://benchline.fabwaseem.com/t/pdf-to-image
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: One PDF, a format, a DPI from 72 to 216, a page range, and a JPEG quality.
- Output: A PNG or JPEG, or a ZIP when more than one page is rendered.
- Keywords: pdf to jpg, pdf to png, pdf to image
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Add a PDF.** Drop one PDF. It stays in this browser.
2. **Choose the format.** Pick PNG or JPEG, a DPI, and a page range.
3. **Download.** One page is an image. Several pages arrive as a ZIP.

## Use it from an AI agent

MCP tool name: `render_pdf_pages`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/pdf-to-image with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Render PDF pages to PNG or JPEG. DPI is 72 to 216. A page range such as 1-3,5 is optional. At most 24 pages and 25 MB of images. Send base64 or a public URL. Private addresses are refused. Returns image base64 and a ZIP when there is more than one page.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "description": "PDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url.",
      "type": "string"
    },
    "url": {
      "description": "Public URL of a PDF. Private and local addresses are refused. Provide data or url.",
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "mimeType": {
      "type": "string"
    },
    "format": {
      "default": "png",
      "type": "string",
      "enum": [
        "png",
        "jpeg"
      ]
    },
    "dpi": {
      "default": 72,
      "type": "integer",
      "minimum": 72,
      "maximum": 216
    },
    "range": {
      "default": "",
      "description": "Pages to render, such as 1-3,5. Blank renders every page, up to 24.",
      "type": "string"
    },
    "quality": {
      "default": 82,
      "description": "JPEG quality from 1 to 100. Ignored for PNG.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "format",
    "dpi",
    "range",
    "quality"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "render_pdf_pages",
    "arguments": {
      "url": "https://example.com/file",
      "format": "png",
      "dpi": 72,
      "range": "",
      "quality": 82
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Which pages are rendered?

A blank range renders every page, up to 24. 1-3,5 keeps those pages.

### Why is there a page limit?

Each page becomes a bitmap. Twenty-four pages, or 25 MB of images, is the cap so the tab stays responsive.

### Is the PDF uploaded?

No. The pages are drawn in this browser.

### What is the ZIP?

One page is a single PNG or JPEG. More than one page is packed in a ZIP.

## Related tools

- [PDF to Text](https://benchline.fabwaseem.com/t/pdf-to-text): Read the selectable text of a PDF, with a markdown heading when the type is larger.
- [Split PDF](https://benchline.fabwaseem.com/t/pdf-split): Extract a page range, or split a PDF into single pages or chunks, then download a PDF or a ZIP.
- [Image format converter](https://benchline.fabwaseem.com/t/image-convert): Convert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.
- [Compress PDF](https://benchline.fabwaseem.com/t/pdf-compress): Shrink a PDF in the browser. Pick a preset or a target size and compare the file before and after.
