PDF to Images (URL)
Render pages of a remote PDF as PNG or JPEG images
GET
10 credits
/v1/convert/pdf-to-images-url
curl "https://convert.toolkitapi.io/v1/convert/pdf-to-images-url?url=https://toolkitapi.io/report.pdf&pages=1-3&format=png&dpi=200"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/pdf-to-images-url?url=https://toolkitapi.io/report.pdf&pages=1-3&format=png&dpi=200",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/pdf-to-images-url?url=https://toolkitapi.io/report.pdf&pages=1-3&format=png&dpi=200", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
{
"images": [
{
"page": 1,
"image": "<base64-png>",
"width": 1654,
"height": 2339,
"format": "png"
},
{
"page": 2,
"image": "<base64-png>",
"width": 1654,
"height": 2339,
"format": "png"
},
{
"page": 3,
"image": "<base64-png>",
"width": 1654,
"height": 2339,
"format": "png"
}
],
"total_pages": 18,
"rendered_pages": 3,
"format": "png",
"dpi": 200
}
Description
Render pages of a remote PDF as PNG or JPEG images
How to Use
1
1. Pass the PDF URL as the `url` query parameter.
2
2. Optionally restrict to a page range with `pages` (e.g. `1-3,5`).
3
3. Pick `format` (`png` or `jpeg`) and `dpi` (72–600).
4
4. Iterate `images[]` for per-page Base64 images; when storage is enabled a ZIP `file_url` is returned instead.
About This Tool
Fetches a remote PDF and rasterizes selected pages into PNG or JPEG images without needing to Base64-encode the source locally. Useful for building thumbnail galleries of public PDFs.
Why Use This Tool
- Public PDF thumbnails — Generate page previews of publicly hosted PDFs
- Research pipelines — Render academic papers to images for visual analysis
- Content indexing — Feed pages into vision models for search/OCR
- Preview modals — Show a few-page preview before allowing the full download
Frequently Asked Questions
Why does my response contain `file_url` instead of `images[]`?
When object storage is enabled the server returns a ZIP download URL for the rendered images rather than a large Base64 payload.
Can I request every page of a huge PDF?
Yes but watch memory — 300 DPI renders of a 500-page PDF produce hundreds of MB. Consider async jobs.
Does it work with password-protected PDFs?
No — the PDF must be publicly accessible without authentication.
Start using PDF to Images (URL) now
Get your free API key and make your first request in under a minute.