PDF to Image
Convert PDF pages into high-resolution PNG, JPEG, or WebP images (1× to 3× DPI) directly in your browser.
Output format
Resolution (DPI)
Pages (e.g. 1-3, 5 or blank for all)
Use from the terminal (JSON)
This tool also runs outside the site: the cli.js script uses the same logic as this page and returns the result as JSON. Parameters are the same as this page's URL — copy the command below with the values on screen.
Deno
deno run -q "https://tools.thecodecodex.com/cli.js?tool=pdf-to-image"
Node.js / Bun
curl -s https://tools.thecodecodex.com/cli.js | node --input-type=module - pdf-to-image fmt=…
| Parameter | Description | Default |
|---|---|---|
| fmt | png | jpeg | webp | png |
| scale | escala: 1 (72 DPI) | 2 (144 DPI) | 3 (216 DPI) | 2 |
| q | qualidade JPEG/WebP (10-100) | 92 |
| pages | intervalo de páginas (ex.: 1-3, 5) | — |
Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.
More in PDF & Files
- PDF StudioMerge multiple PDFs, split or reorder pages, rotate, add page numbers, stamp watermarks, edit metadata, and export pages as images.
- Images to PDFConvert photos and images (PNG, JPG, WebP, GIF, BMP, SVG) into a single PDF document with page size, orientation, and margin controls.
- Image StudioConvert between WebP, JPEG, and PNG, compress, resize proportionally, and strip EXIF metadata locally.