Guides

How to Extract All Images from Excel (Named by Cell or Product Code)

Updated 2026-10-18

A product list with a photo next to every row, an inspection report full of site photos, a staff sheet with headshots: sooner or later you need the pictures as separate files, ideally named after the product code or person they belong to.

Method 1: save pictures one at a time

In Excel for Microsoft 365, right-click a picture and choose Save as Picture. It works, but only one picture at a time, and you type every file name yourself. Fine for three pictures, not for three hundred.

Method 2: rename the file to .zip

An .xlsx file is a ZIP archive.

  1. Make a copy of the workbook and change the extension from .xlsx to .zip (turn on file name extensions in File Explorer first).
  2. Open the zip and go to xl/media.

Every embedded image is there in its original quality. The catch: they are named image1.png, image2.jpeg and so on, in the order they were added, with no hint of which row or cell they belong to. Mapping them back means reading the drawing XML by hand.

Method 3: save as a web page

File → Save As → Web Page (*.htm) writes a folder next to the page with the images in it. The names are again generic (image001.png), and Excel may save resized copies rather than the originals.

Method 4: export them all, named by cell or code

xlszip's image export does the mapping for you:

You can pick several workbooks at once and download everything as a zip.

WPS in-cell images

If the workbook came from WPS Office and Excel shows =DISPIMG("ID_…",1) instead of pictures, the images are still in the file. Export them as above, or convert them into regular Excel pictures that stay anchored in their cells. See =DISPIMG in Excel for details.

Tips

More guides