Extract images from a PDF

Pull the original pictures out of a PDF as separate files, without screenshots or quality loss.

or drop it here · it never leaves your device

Processed in your browser. Your files are never uploaded. Check it yourself

How to extract images from a PDF

When someone puts a photograph, a logo or a chart image into a PDF, the picture is stored inside the file as a separate object. This tool finds those objects and hands them back to you as ordinary image files, at the size and quality they were stored, so you can reuse a photograph from a brochure or recover the logo from an old invoice.

That is different from PDF to JPG, which draws each whole page as a picture. Use that one when you want the page as it looks; use this one when you want only the photographs inside it.

  1. 1

    Open the PDF

    Press Choose a PDF or drop the file on the panel. The search starts at once; there is no extra button to press. A progress bar shows while the pages are searched, and you can cancel it.

    If the file asks for a password, enter it at the prompt. The pictures are read from a decrypted copy in memory; the original file is not changed.

  2. 2

    Look at what was found

    Each picture appears as a card with a thumbnail, the page it was found on, its size in pixels, its type (JPG or PNG) and its file size. A line above the cards counts the pictures and the pages they sit on, and says how many tiny ones are hidden.

    By default, pictures under 32 pixels on their shorter side are hidden, because they are nearly always bullets, rules and icons. The menu on the right switches to Show everything or to Only large (300 pixels or more).

  3. 3

    Choose and save

    Save on a card downloads that one picture. Tick the boxes on the cards you want and press Download selected for a ZIP of just those, or press Download all to get everything the filter currently shows. Files are named after the PDF, the page and the picture’s order on it, for example report-page02-image1.jpg.

  4. 4

    Check the results

    Open a saved file in any image viewer. A JPEG is the same file that was stored inside the PDF, so its quality is exactly what the PDF’s author supplied. A PNG has been decoded from the form it was stored in, with any transparency kept.

Extract images features

  • Finds every picture stored in the file and shows a thumbnail of each
  • JPEG pictures are saved exactly as they are stored, byte for byte
  • Other pictures are saved as PNG, with transparency kept
  • A picture used on several pages is saved once
  • Hide tiny icons and rules, or show everything
  • Download one picture, a selection, or all of them as a ZIP
  • Tells you if a picture uses a format that cannot be written out

Extracting PDF images without uploading the file

The PDF is read in this browser tab and the pictures are written out on your device. Nothing is uploaded; the thumbnails you see are made from the extracted files in your own browser.

  • JPEG pictures are copied out unchanged. Nothing is decoded and re-saved, so there is no loss of quality.
  • Other pictures are decoded and saved as PNG. Transparency from a soft mask is kept as an alpha channel.
  • Each picture appears once, even if the document draws it on many pages.
  • Drawings made of lines and shapes are not pictures. A chart drawn as vectors has nothing to extract; use PDF to JPG to capture it.
Worked example

Recovering photographs from a two-page report

A two-page photo report holds one landscape photograph used twice, a small transparent graphic and a 12-pixel bullet icon. Open it and three pictures are found: the photograph (listed once, even though it is drawn twice), the graphic and the icon. With the default filter the icon is hidden, so two pictures are listed.

The photograph is a JPEG, so it is saved as a byte-for-byte copy of the file inside the PDF. The graphic is saved as a PNG with its transparency. Download both as a ZIP named after the PDF.

Good to know about extracted images

  • The pixel size shown is the size stored in the file, which can be much larger than the picture looks on the page. Check it before you reuse a picture at print size.
  • A scanned document holds one large picture per page. If that is what you see, OCR PDF is probably the tool you want.
  • Photographs from the web are often compressed and small. Extraction cannot add detail that is not in the file.
  • Check you have the right to reuse a picture before you do. Being able to extract it does not give you permission.

How a PDF stores a picture, and why that matters here

A PDF page does not contain pictures directly. It contains drawing instructions, and a picture is a separate object that those instructions point to by name, along with where to place it and how large to draw it. Several pages can point at the same object, which is why a logo in the footer of a 40-page file is stored once and drawn 40 times.

That structure is what this tool exploits. It follows the page’s list of pictures (including those used inside reusable page parts), finds each distinct picture object and writes it out. A picture used on many pages appears once in the list, labelled with the first page that uses it.

Pictures can also be hidden in two places this tool does not look: tiny pictures written straight into a page’s drawing instructions (an old, rarely used form, mostly seen for very small items), and pictures that were never stored as pictures at all because they are drawn from lines and shapes. The second kind covers most charts, maps and logos exported from vector programs.

The file you get: JPEG, PNG, and what cannot be written

Stored in the PDF asSaved here asNotes
JPEGJPG, the stored bytes unchangedNo decoding and no re-saving, so no loss. We checked that the saved file is identical to the file inside the PDF.
Uncompressed or losslessly compressed pixelsPNGDecoded and re-written without loss.
A picture with a transparency mask, a JPEG includedPNG with an alpha channelThe mask becomes the picture’s transparency, so a cut-out logo keeps its clear background.
A CMYK JPEG (print-style colour)PNGDecoded so it does not show as a negative in an ordinary image viewer.
JPEG 2000, JBIG2 and CCITT fax picturesNot writtenUsed by some scanners and fax-style archives. The page says how many were left out.

JPEG 2000 is the one to know about. Some scanners and archiving programs use it for page scans. In our test of a six-page scanned letter, 11 pictures used it, and every one was reported as not written out rather than silently dropped. If that happens to your file, PDF to JPG will still give you each page as a picture.

Pixel size is not print size: reading the numbers on each card

The size shown on a card, such as 3000 × 2000 px, is how many pixels the stored picture has. It says nothing about how large the picture is printed on the page. To find how sharp it was in the original document, divide the pixels by the printed width in inches.

A 3000-pixel-wide photograph printed 15 cm wide (5.9 inches) is about 508 pixels per inch, which is crisp. The same photograph printed full width on an A4 page (8.27 inches) is about 363 pixels per inch, still comfortably sharp. A 600-pixel picture on that A4 page is about 73 pixels per inch and will look soft in print.

Use this to judge whether a picture is worth reusing. Extracting cannot add detail that was never there: a small picture stretched across a page in the PDF is still a small picture when you save it.

When every page is one big picture

A scanned document is usually stored as one picture per page, and nothing else. If the number of pictures matches the number of pages and each is large, the tool says so, because the result is rarely what you want: you would get the scanner’s page images, with no text in them as text.

Two things are more likely to be useful. OCR PDF reads the letters and adds a searchable text layer to the scan. PDF to JPG gives each page as a JPG at a resolution you choose. Extracting the scanner’s own images is still the right move if you want the originals exactly as scanned, for example to re-process them in another program. In a test with a two-page image-only scan of 1.1 MB, both page pictures came out as JPEGs, together about the size of the PDF itself.

Extract images, PDF to JPG, or a screenshot

You wantBest choiceWhy
The photographs from a brochure at their stored qualityThis toolTakes the stored picture, not a redrawn copy.
A logo that was placed as a pictureThis toolYou get the picture with its transparency.
A page exactly as it looks, text and layout includedPDF to JPGDraws the whole page at the resolution you set.
A chart or diagram drawn with lines and shapesPDF to JPGIt is not a stored picture, so there is nothing to extract.
Just a few words as textPDF to textPictures are the wrong tool for words.
A quick look, quality not importantA screenshotFast, but capped by your screen and re-compressed.

Command-line users may know pdfimages from the Poppler tools, which does the same job from a terminal. This tool needs no installation and shows you thumbnails before you save anything.

What it found in real documents, and how long it took

These are results from running the engine behind this tool on public documents, on a four-core laptop. They show the range, not a promise.

DocumentPictures foundTime
15-page academic paper, 2.2 MB3, all saved as PNG1.3 s
130-page planning policy document, 1.3 MB2, saved as PNG0.08 s
198-page government guidance, 1.8 MBNone (text and vector graphics only)0.01 s
One-page scanned letter, 0.4 MB1 JPEG, saved unchanged (394,583 bytes)0.001 s
Six-page scanned letter, 0.3 MB0 saved, 11 reported as JPEG 20000.001 s

Documents with no pictures are the surprise for many people. A long report can be entirely text and vector drawing, and the tool says so plainly instead of returning an empty ZIP.

Being able to extract a picture is not permission to reuse it

A picture inside a PDF still belongs to whoever made it. Stock photographs, newspaper images, a company’s brand artwork and pictures in a licensed report may all carry restrictions. Extracting your own photographs back out of your own document is fine. For anyone else’s, check the licence or ask first.

The tool does not read or strip any copyright information. JPEG pictures are copied out byte for byte, so any camera or copyright data stored in the picture itself comes with it. If you plan to publish an extracted photograph, check that data first, as it can include where and when the picture was taken.

Limits and edge cases

  • Very large documents. The pictures are held in memory while you choose. A report with hundreds of high-resolution photographs needs a computer with plenty of memory; cards load in batches of 60.
  • The ZIP is not compressed further. JPEG and PNG files are already compressed, so the ZIP just gathers them in one download.
  • One copy per picture. If the same picture is drawn on many pages, you get it once, named after the first page that uses it.
  • Picture order. Numbers in the file names follow the order the pictures are listed on that page, which is not always the reading order on screen.
  • Masks and layers. Pictures are taken as stored. Effects applied by the page itself, such as a blend or a clip, are not baked into the saved file.

Extract images: troubleshooting

“No embedded pictures in this file”
The file holds only text and vector drawing, or its pictures are in a form this tool does not read. To capture the pages as pictures use PDF to JPG.
“N pictures in this file use a format that can’t be written out here”
Those pictures use a format such as JPEG 2000. The rest of the pictures are listed as normal. PDF to JPG can still give you each page as a picture.
The list is much shorter than I expected
The default filter hides pictures under 32 pixels. Choose “Show everything” on the right to include icons and rules.
The picture I want is blurry
Check its pixel size on the card. The picture is stored at that size, and stretching it across a page in the PDF made it look larger than it is.
A saved photograph looks different from the page
The page may crop, rotate or recolour the picture when it draws it. The saved file is the picture as stored, before those adjustments.
“This PDF needs a password”
Enter the password at the prompt. Without it the pictures cannot be read.
“This PDF looks damaged”
Run Repair PDF first, then extract the pictures from the repaired copy.
The page runs slowly or the tab runs out of memory
Close other tabs, and try a smaller file or fewer pages. Very large photographs take a lot of memory to display as thumbnails.

Glossary

Image object
A picture stored once inside a PDF and drawn by name from one or more pages.
JPEG
A lossy photo format. A PDF can store a JPEG as it is, so it can be copied out unchanged.
PNG
A lossless picture format that supports transparency.
Alpha channel
The part of a picture that records how transparent each pixel is.
Soft mask
A PDF’s way of storing transparency for a picture as a second, grey-scale picture.
Pixels per inch
How many picture pixels fit into one inch of the printed page. More means sharper.
JPEG 2000
A different, newer picture format used by some scanners and archives. Not supported for saving here yet.
Vector graphics
Lines, curves and shapes drawn by instruction rather than stored as pixels. They are not pictures to extract.

Extract images from a PDF: frequently asked questions

Does extracting reduce image quality?

No. JPEG pictures are copied out exactly as stored, and other pictures are saved as lossless PNG files.

How is this different from PDF to JPG?

PDF to JPG draws each whole page, text included, as one picture. This tool pulls out the separate pictures stored inside the file, at their own size.

Are my files uploaded?

No. The file is read and the pictures are written on your device. See how to check it yourself.

Why did it find no images?

The file may be only text and vector drawing. Logos, charts and maps are often made of lines and shapes, not stored as pictures.

Why is the same photograph listed only once?

A PDF stores a picture once and draws it wherever needed. The tool lists each stored picture once, under the first page that uses it.

Can it save pictures with transparent backgrounds?

Yes. A picture stored with a transparency mask is saved as a PNG with its transparency kept.

Why are some pictures missing from the list?

Small ones are hidden by default, and a few formats, such as JPEG 2000, cannot be written out yet. The page says how many were left out.

Can I get all the pictures at once?

Yes. Press Download all to get everything the filter shows in one ZIP, or tick some cards and download only those.

Does it work on scanned PDFs?

It will give you the scanner’s page pictures if they are in a supported format. For searchable text, use OCR PDF.

Can I reuse the pictures I extract?

Only if you have the right to. Extracting a picture does not change who owns it, so check the licence for anyone else’s work.

Page updated · By the PDFMagpie team