How-to
How to extract embedded images from a PDF
Extracting an embedded image and rendering an entire PDF page are distinct tasks. This guide explains how to pull raster image objects from inside a document right in your browser. When you select JPEG output, unmasked DeviceRGB and DeviceGray /DCTDecode JPEG streams are copied directly byte-for-byte without canvas re-encoding. PNG, WebP, CMYK, soft-masked, and non-JPEG encodings fall back to PDF.js decoding, and SHA-256 byte hashing filters out duplicate logos or repeated assets across pages. If you need a picture of the complete page layout as rendered, use PDF to JPG instead. Both tools run client-side in your browser, so your files are never uploaded.
Step by step
- Open the PDF image extractor and drop your file in. The tool reads the PDF locally in your browser tab without sending bytes over the network.

- Choose your output format (PNG, JPEG, or WebP), quality setting (for re-encoded JPEG or WebP), optional page range, minimum dimension and area filters, and optional JSON or CSV manifest, then run the extraction. Unmasked RGB and grayscale /DCTDecode streams export losslessly when JPEG is selected, while other streams decode through PDF.js and identical outputs are deduplicated by SHA-256 digest.
- Download your extracted PNG, JPEG, or WebP files (and optional manifest). Each unique image is offered with a sequential filename and optional page-number prefix. Check dimensions and appearance before reusing assets in a layout or archive.

Embedded images vs pages turned into pictures
An embedded raster image is one object placed on a PDF page, such as a photograph or scan. The extractor isolates those raster objects without rendering surrounding text and vector paths. PDF to JPG instead paints the complete page into one image at a selected DPI. Choose extraction when you need separate image assets, and page rendering when layout and surrounding content matter. For unmasked DeviceRGB and DeviceGray /DCTDecode streams exported as JPEG, the original compressed JPEG bitstream is preserved unchanged; other formats and color spaces decode to pixels first and re-encode cleanly.
| Feature | Embedded Raster Object | Full-Page Rasterization | Screenshot / Crop |
|---|---|---|---|
| Reference | Direct /DCTDecode JPEG + PDF.js Fallback | Render Page @ 300–600 DPI | Display DPI (72–96 DPI) |
| Output & limits | Original JPEG Bytes or Decoded Pixels (≤ 200 MB PDF) | High Resolution (5–15 MB) | Screen Resolution Loss |
| Lossless compression | Lossless JPEG Stream / Re-encoded PNG & WebP + SHA-256 Dedup | Re-encoded PNG / JPEG / WebP | Lossy Screen Capture |
Why doing this locally matters
The images buried in a PDF are often the most sensitive part of it: scanned ID photos, signed pages, internal screenshots, private artwork. Sending the document to an online extractor hands all of that to a server you do not control, along with the text layer and any metadata. The extractor here inspects and decodes the PDF inside your browser with pdf-lib and PDF.js, so the document and extracted assets stay on your machine.
| Feature | CMYK to sRGB Conversion | Vector Artwork (/Path) | SMask / Alpha Transparency |
|---|---|---|---|
| Reference | DeviceCMYK Falls Back to PDF.js Color Transform | Vectors Require Page Raster | Soft Mask Falls Back to PDF.js Composite |
How PDF image extraction works
PDF image objects store dimensions, color space, filter type, and encoded stream data separately from page text and vector commands. When JPEG output is requested, the extractor inspects page and Form XObject resources via pdf-lib and extracts eligible single-filter /DCTDecode streams (DeviceRGB or DeviceGray without /SMask or /Mask) directly as raw JPEG bytes. Non-JPEG encodings like /FlateDecode or /JPXDecode, CMYK or ICCBased streams that need color conversion, masked images, and PNG or WebP conversions fall back to PDF.js decoding and OffscreenCanvas encoding. Every emitted image is hashed with SHA-256 so repeated watermarks or logos across pages appear once while distinct images with identical dimensions are preserved.
The tools used in this guide
- Extract images from PDFExtract embedded photos and figures from PDF documents as PNG, JPG, or WebP with size filtering and page selection.
- Split PDFExtract PDF pages by custom ranges or split a document into chunks, equal parts, halves, or odd/even files locally.
- PDF to imagesConvert PDF pages into PNG, JPG, or WebP images at 72, 150, or 300 DPI with page range selection.
Frequently asked questions
Will I get the original images or screenshots of the pages?
You get isolated raster image files rather than full-page screenshots. When you choose JPEG, unmasked RGB and grayscale /DCTDecode streams are extracted losslessly byte-for-byte from the PDF. PNG, WebP, CMYK, and masked images decode through PDF.js at their original pixel dimensions. For an image that includes page text and vector layout, use PDF to JPG.
Why did it find fewer images than I expected?
Text and vector drawings are not raster image objects, so the extractor does not turn them into image files. In addition, SHA-256 byte deduplication emits repeated logos or headers across pages only once, and minimum dimension or area filters skip small icons and tracking pixels. Distinct images with identical dimensions are kept whenever their bytes differ.