How to Extract Images from PDF Files
PDF Guides

How to Extract Images from PDF Files

Michael Foster

Michael Foster

Content Creator & Tutorial Expert

Jul 2, 2026 Aug 10, 2026 7 min
Reviewed by Emma RodriguezFact-checkedEditorial Policy

PDFs can contain valuable images that you may need to use elsewhere. This guide covers every method for extracting images from PDFs in 2026, from online tools to command-line utilities and quality tips.

PDFs often contain images — photographs, diagrams, charts, logos — that you may need to extract for use in other documents, presentations, or projects. While you can always screenshot the images, that approach loses quality and captures surrounding content. This guide covers proper methods for extracting images from PDFs in 2026, preserving original quality and resolution.

Why Extract Images from PDFs?

There are many reasons to extract images from PDFs:

  • Reuse in presentations: Pull charts or photos from a report to use in a PowerPoint deck.
  • Edit in image software: Extract an image to edit in Photoshop, GIMP, or other image editors.
  • Share individually: Send a specific image from a PDF without sharing the entire document.
  • Archive originals: Preserve original high-resolution images from a PDF.
  • Content migration: Move images from a PDF to a new document or website.
  • Analysis: Extract data visualizations for further analysis.

Screenshot vs. True Extraction

  • Screenshot: Captures what is displayed on screen at screen resolution. Quality is limited by display resolution and zoom level. Surrounding content may be included.
  • True extraction: Pulls the original image data from the PDF at its original resolution and quality. No surrounding content. No quality loss.

Always prefer true extraction over screenshots when you need the original quality.

Method 1: Extract Images Online

Online tools are the quickest way to extract images from a PDF.

Step-by-Step: Extracting Images Online

  1. Upload your PDF: Drag and drop the file into the image extraction tool.
  2. Choose extraction mode: Some tools offer:

- Extract all images: Pulls every image from the PDF.

- Extract from specific pages: Limits extraction to selected pages.

  1. Process: Click extract. The tool analyzes the PDF and pulls all embedded images.
  2. Download: You will receive a ZIP file containing all extracted images, typically in their original format (JPG, PNG, etc.).
  3. Verify: Check the extracted images for quality and completeness.

Choosing an Online Extraction Tool

Look for:

  • Original format preservation: The tool should extract images in their original format, not convert them.
  • Original resolution: The tool should preserve the original image resolution, not downsample.
  • Batch extraction: The tool should be able to extract all images at once.
  • No watermarks: The extracted images should not have watermarks added.

Method 2: Desktop Software Image Extraction

Desktop tools offer more control and work offline.

Using Adobe Acrobat Pro

  1. Open the PDF in Acrobat Pro.
  2. Go to File > Export To > Image > JPEG (or PNG).
  3. This exports each page as an image, not individual embedded images.

For extracting individual embedded images:

  1. Open the PDF in Acrobat Pro.
  2. Go to Tools > Edit PDF.
  3. Click on the image you want to extract.
  4. Right-click and choose "Copy" or "Save Image As."
  5. Save the image to your device.

Alternatively, use the "Export All Images" option:

  1. Go to File > Export To > Image > JPEG.
  2. In the settings, choose "Export All Images" instead of "Export All Pages."
  3. Acrobat Pro extracts each embedded image as a separate file.

Using PDFsam Visual

  1. Open PDFsam Visual.
  2. Select "Extract images" from the tool list.
  3. Add your PDF.
  4. Choose output format (JPG, PNG, etc.).
  5. Set the output directory.
  6. Click "Run" to extract all images.

Using GIMP (Free)

  1. Open the PDF in GIMP.
  2. GIMP imports each page as a separate layer.
  3. Select the page containing the image you want.
  4. Use the select tool to isolate the image.
  5. Copy and paste into a new image.
  6. Export the new image (File > Export As).

This method works but is manual and does not preserve original image quality — it captures the rendered page at the import resolution.

Using Preview (macOS)

Preview does not have a dedicated image extraction feature, but you can use a workaround:

  1. Open the PDF in Preview.
  2. Go to the page containing the image.
  3. Use the selection tool to select the image.
  4. Copy (Cmd+C).
  5. Create a new image from clipboard (File > New from Clipboard).
  6. Export the new image.

This method captures the image at screen resolution, not original resolution.

Method 3: Command-Line Image Extraction

For automation and batch processing, command-line tools are the most efficient.

Using pdfimages (poppler-utils)

pdfimages is the best command-line tool for image extraction. It extracts images at their original resolution and format:

# Extract all images as JPEG (converts non-JPEG images to JPEG)
pdfimages -j input.pdf output_prefix

# Extract all images in their original format
pdfimages -all input.pdf output_prefix

# Extract images from specific pages (pages 1-5)
pdfimages -f 1 -l 5 input.pdf output_prefix

# List all images without extracting (to see what is in the PDF)
pdfimages -list input.pdf

The `-all` flag preserves the original format (JPEG, PNG, etc.), while `-j` converts all images to JPEG. The output files are named `output_prefix-000.jpg`, `output_prefix-001.jpg`, etc.

Listing Images Before Extraction

Use `-list` to see what images are in the PDF before extracting:

pdfimages -list input.pdf

This shows:

  • Page number
  • Image number
  • Type (image, mask, stencil)
  • Width and height in pixels
  • Color space
  • Bits per component
  • Encoding (JPEG, PNG, etc.)

This helps you identify which images you want to extract.

Using Ghostscript

Ghostscript can convert PDF pages to images, but it does not extract individual embedded images. It renders entire pages:

# Convert each page to a high-resolution image
gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -r300 -sOUTPUTFILE=page_%d.jpg input.pdf

This is useful if you need page-level images, not individual embedded images.

Batch Extraction Script

#!/bin/bash
# Extract all images from all PDFs in the directory
for pdf in *.pdf; do
  name=$(basename "$pdf" .pdf)
  mkdir -p "images_$name"
  pdfimages -all "$pdf" "images_$name/img"
  echo "Extracted images from $pdf to images_$name/"
done

This script processes every PDF in the current directory and creates a folder for each with the extracted images.

Understanding Image Quality in PDFs

Original vs. Rendered Resolution

Images in PDFs have two relevant resolutions:

  • Original resolution: The pixel dimensions of the image as stored in the PDF. This is what extraction recovers.
  • Rendered resolution: The DPI at which the image is displayed on the page. This depends on the image size on the page and the original pixel dimensions.

For example, a 3000x2000 pixel image displayed at 5 inches wide on the page has a rendered resolution of 600 DPI. Extraction recovers the original 3000x2000 pixel image, regardless of how it is displayed on the page.

Image Formats in PDFs

PDFs can contain images in several formats:

  • JPEG: Most common for photographs. Lossy compression.
  • PNG: Used for images with transparency or sharp edges. Lossless.
  • TIFF: Less common but used for high-quality images. Lossless.
  • JBIG2: Used for monochrome images (especially in scanned documents). Very efficient.
  • JPEG2000: Advanced compression, used in some PDFs.
  • Inline images: Small images embedded directly in the content stream.

The `pdfimages -all` command preserves the original format. The `pdfimages -j` command converts all to JPEG.

Tips for Best Extraction Results

Use the Right Tool

  • pdfimages: Best for extracting individual embedded images at original quality.
  • Adobe Acrobat Pro: Best for GUI-based extraction with preview.
  • Online tools: Best for quick, one-time extraction without installing software.

Check the List First

Before extracting, use `pdfimages -list` to see what images are in the PDF. This helps you:

  • Identify the images you want.
  • Check image dimensions and formats.
  • Avoid extracting unnecessary images.

Handle Large PDFs

Large PDFs with many images can produce hundreds of output files. To manage this:

  • Extract to a dedicated directory.
  • Use the `-f` and `-l` flags to limit extraction to specific pages.
  • Use the `-list` flag first to identify which pages have the images you want.

Deal with Masked Images

Some PDF images have associated masks (stencil or explicit masks) that control transparency. pdfimages extracts masks as separate files. To reconstruct the original image with transparency, you may need to combine the image and mask in an image editor.

Watch for Duplicate Images

PDFs sometimes contain duplicate images (e.g., a logo that appears on every page). pdfimages extracts each instance. Use the `-list` command to identify duplicates and keep only the ones you need.

Common Problems and Solutions

Problem: Extracted Images Are Small

If the extracted images are smaller than expected, the PDF may contain low-resolution images. Check with `pdfimages -list` to see the original dimensions. If the dimensions are small, the images were stored at low resolution in the PDF.

Problem: Images Are in Unexpected Format

Use `pdfimages -all` to preserve original formats. If you use `-j`, all images are converted to JPEG, which may not be what you want for PNG images with transparency.

Problem: Some Images Are Missing

Some "images" in a PDF may actually be vector graphics, not raster images. pdfimages only extracts raster images. Vector graphics cannot be extracted as image files — they need to be rendered to images using a tool like Ghostscript or a PDF viewer's export function.

Problem: Extracted Images Have Wrong Colors

Color spaces in PDFs (CMYK, RGB, Lab, etc.) can cause color shifts when extracting. Use a tool that handles color space conversion, or convert the extracted images in an image editor.

Conclusion

Extracting images from PDFs is a straightforward process with the right tool. For most users, an online extraction tool is the quickest option. For offline or frequent use, pdfimages (command-line) or Adobe Acrobat Pro (desktop) are the best choices. The key to good results is using a tool that preserves the original image format and resolution, rather than rendering or screenshotting. With pdfimages, you can extract all images at their original quality with a single command, making it the most efficient option for batch processing.

Share

About the Author

Michael Foster

Michael Foster

Content Creator & Tutorial Expert

Michael creates in-depth tutorials and guides that make complex tools accessible to everyone. He has a passion for teaching and clear communication.

5+ years creating educational content for tech products
Skills & Expertise
Technical WritingTutorial DesignUser EducationContent Strategy

Frequently Asked Questions

Can I extract images from a PDF without losing quality?
Yes. Use a tool that extracts the original image data rather than rendering or screenshotting. pdfimages (command-line) and Adobe Acrobat Pro extract images at their original resolution and format, preserving full quality.
What is the best tool for extracting images from PDFs?
pdfimages (part of poppler-utils) is the best command-line tool for image extraction. It preserves original format and resolution. For GUI users, Adobe Acrobat Pro offers image extraction. For quick one-time use, online extraction tools work well.
How do I extract all images from a PDF at once?
Use pdfimages: pdfimages -all input.pdf output_prefix. This extracts all images in their original format, naming them output_prefix-000.jpg, output_prefix-001.jpg, etc. Online tools also extract all images and provide them as a ZIP file.
Why are some images missing when I extract from a PDF?
Some visual elements in PDFs are vector graphics, not raster images. pdfimages only extracts raster images. Vector graphics need to be rendered to images using a PDF viewer's export function or a tool like Ghostscript.
Can I extract images from specific pages only?
Yes. With pdfimages, use the -f (first page) and -l (last page) flags: pdfimages -all -f 1 -l 5 input.pdf output. This extracts images only from pages 1 through 5.

Start working smarter today

Join 500,000+ users who trust VisualDocs for their daily image and PDF workflows.