Pull every image out of a Doc or Slides deck. Rename in bulk, convert to WebP or AVIF, keep the alt text.
By Noman Ahmed · Updated November 14, 2026 · 5 min read
The zipped web page download names images image1.png, image2.png and so on, and people report that the numbers do not always match the order in the Doc. The HTML file in the same ZIP lists the images in the right order. You can rename the files by hand from it, run a short script, or use Pluckr.
Pluckr lists the images in the order of the Doc and names them image-01, image-02 and so on, on the free plan. Pro adds bulk rename from one pattern, such as {doc}-{n}.
When you choose File > Download > Web Page (.html, zipped), Google Docs saves each image as image1.png, image2.png and so on. Google does not document how it picks the numbers, and a report on the CodeProject forum says that they do not follow the order in which the images appear in the Doc. So image1.png is not always the first picture.
The order matters when the images go into a blog post, a CMS or a design file in sequence. The good news is that the same ZIP has the answer. The HTML file shows the images in the order of the Doc, because it is the Doc, written top to bottom.
This method is free and needs no code. It suits a Doc with a few images.
images/. Each match is one image, in the order of the Doc.01-hero.png, 02-chart.png. On a Mac, Finder can rename many files at once. On Windows, PowerRename in Microsoft PowerToys can.This method is free and fast for a long Doc, but it needs Python. The script reads the image order from the HTML file and copies each image to a new in-order folder as image-01, image-02 and so on. It keeps the original files.
order.py in the unzipped folder, next to the HTML file.python3 order.py.import pathlib, re, shutil
html = next(pathlib.Path(".").glob("*.html")).read_text(encoding="utf-8")
out = pathlib.Path("in-order")
out.mkdir(exist_ok=True)
order = []
for src in re.findall(r'src="(images/[^"]+)"', html):
if src not in order:
order.append(src)
for n, src in enumerate(order, start=1):
shutil.copy(src, out / f"image-{n:02d}{pathlib.Path(src).suffix}")
print(f"Copied {len(order)} images to the in-order folder.")If the same image appears twice in the Doc, the script keeps it once, at its first place.
Pluckr reads the images from the Doc itself, so the list is in the order of the Doc. That includes images in tables, and every document tab, in the order of the tabs. Pluckr names the files image-01, image-02 and so on in that order, so the ZIP is in order on the free plan.
With Pro, open Bulk rename and type one pattern. {n} is the number, {doc} the file name of the Doc, {alt} the alt text and {name} the current name. The default pattern {doc}-{n} turns the images of a Doc called Spring launch into spring-launch-01, spring-launch-02 and so on. You can set the start number, and Pluckr shows a preview of the first names before you apply them. Pro costs $12 once.
In Google Slides, Pluckr names the pictures by slide, such as slide-03-image-01, so they sort in the order of the deck. See how to extract images from Google Slides.
Renaming by hand is free but slow. The script is free and fast, but needs Python. Pluckr names the files in order with no extra step, and Pro lets you choose the names.
| Feature | Rename by hand | Script | Pluckr |
|---|---|---|---|
| Files in the order of the Doc | Yes | Yes | Yes |
| Needs code | No | Yes | No |
| Your own names | Type each one | Edit the script | One pattern (Pro) |
| Cost | Free | Free | Free for 50 images, then Pro ($12 once) |
To give each file a name that helps search, see how to export Google Docs images to WordPress.
Google does not document how it numbers the files, and people report that the numbers do not always follow the Doc. The HTML file in the same ZIP lists the images in the right order, so use it to rename the files.
Yes. Pluckr lists the images in the order of the Doc, including images in tables. It goes through the document tabs in the order of the tabs.
Yes, with Pro. In Bulk rename, set the start number. The pattern {doc}-{n} then counts up from it.
No. Bulk rename changes the names in the sidebar and in the download. The Doc stays as it is.
Yes. The free plan names the files image-01, image-02 and so on in the order of the Doc, for up to 50 images per Google account. Custom names from a pattern need Pro.
Google Docs has no button to save all images. Learn four ways to download every image from a Google Doc, and what each method costs you.
November 6, 2026 · 5 min read
Pasting from Google Docs creates broken image links. Learn how to export Google Docs images to WordPress with clean file names and WebP files.
November 6, 2026 · 4 min read
Google Slides has no button to save images. Learn three ways to extract all pictures from a presentation as a ZIP file.
November 6, 2026 · 4 min read
Pull every image out of a Doc or Slides deck. Rename in bulk, convert to WebP or AVIF, keep the alt text.