GPT Shop · Free seller tools

How to download all images from a list of URLs (bulk, to one ZIP)

Updated 20 October 2026. You have a spreadsheet column, a text file or a scraper export full of image (or PDF) links and you want the files, ideally in one ZIP. Here are four ways to do it, from free command-line tools to a hosted option that needs no code. For a product CSV, jump to the worked Shopify-style example.

1. wget or curl (free, command line)

Save one URL per line in urls.txt, then:

wget -i urls.txt -P images/ --user-agent="Mozilla/5.0" --tries=3 --wait=0.5
zip -r images.zip images/

Good for a few hundred public files. Weak spots: duplicate file names overwrite each other (lots of CDNs call every file image.jpg), and there's no report of which URLs failed.

2. A short Python script (free, flexible)

import requests, zipfile, hashlib, os
urls = [u.strip() for u in open("urls.txt") if u.strip()]
H = {"User-Agent": "Mozilla/5.0", "Referer": "https://the-site-the-images-come-from.example/"}
with zipfile.ZipFile("images.zip", "w") as z:
    for i, u in enumerate(urls):
        try:
            r = requests.get(u, headers=H, timeout=30); r.raise_for_status()
            name = f"{i:04d}-{hashlib.md5(u.encode()).hexdigest()[:8]}-{os.path.basename(u.split('?')[0]) or 'file'}"
            z.writestr(name, r.content)
        except Exception as e:
            print("FAILED", u, e)

The numeric and hash prefixes stop name collisions. Add retries and a size cap before you point it at thousands of URLs.

3. Browser extensions

Extensions such as "Image Downloader" grab the images on the page you're viewing. They're fine for a single gallery page, but they can't take a list of URLs or a dataset, and they stall at a few hundred files.

4. A hosted bulk image downloader (no code, returns one ZIP)

We built Bulk Image Downloader on Apify for this job. Supply explicit file URLs, or use a scraper's datasetId and the matching urlField, with an optional fileNameField. With createZip: true, successfully saved files are collected into OUTPUT.zip; check the status rows and RUN_SUMMARY for failures. Hosted CSV input via csvUrl needs a link the Actor can fetch and the correct URL-column mapping. For a local Shopify CSV, the example below prepares explicit URL objects without publishing the spreadsheet. You can also use the example scripts on GitHub.

Review the Store listing's current Pricing tab, your Apify account usage and the run-cost settings before starting. Successful-file events, Actor-start charges and platform usage are distinct; a failed download does not establish a zero-cost run. maxFiles limits the file count, not spending.

Shopify product CSV → image jobs, without uploading the CSV

Use our free local image-download planner to prepare input before choosing whether to run the downloader. It reads the CSV in your browser, checks URL format and previews filename stems. It does not fetch images or verify reachability.

  1. Download the three-row authored example CSV, then choose it in the planner. It uses two existing GPT Shop SVG illustrations, not merchant data. Keep your original Shopify export unchanged; this small example and the planner's job CSV are not Shopify import files.
  2. Choose Product image URL for image links, SKU for the filename stem and URL handle for the fallback. Leave Skip repeated links off, then choose Check plan. Expect 3 image jobs, 0 missing or invalid links, 1 shared URL and 0 renamed stems.
  3. Download the planner's Apify input and compare it with the expected JSON generated from this example. The JSON contains three explicit URL objects, maxFiles: 3, createZip: true, onlyImages: true and dedupe: false. Creating either local file contacts no Apify API and starts no run.
Expected local plan: filename stems, before the downloader adds image extensions
CSV recordSKUFilename stem
200070007
3Blankgift-set
400100010

The second row represents an additional image for gift-set: its blank SKU falls back to the handle. The same tote illustration is also used by another product, so the shared URL stays as two jobs. Keep SKUs as text when editing a spreadsheet to retain leading zeros.

Shopify's product CSV documentation distinguishes Product image URL from Variant image URL. Choose one image column per plan; the planner does not combine them. Older exports may use Image Src, Variant SKU and Handle. Check the selected columns rather than renaming or removing columns from your original export.

The planner accepts up to 2 MiB, 10,000 records, 50 columns and 1,000 image jobs. When you decide to use Apify, replace the entire JSON input with your reviewed plan so Console demo URLs are not added. Pasting it into Apify shares its URLs and filenames with Apify; starting the run can incur charges. After a successful run, open its Key-value store and download OUTPUT.zip, then inspect the status rows. This example proves local input preparation, not a completed paid download.

Bonus: download every image on a web page (no URL list yet)

If you only have the page, such as a product page, a gallery or an article, you first need the image links. Browser extensions can grab them from the page you have open. For a list of pages, the Bulk Image Downloader has a pageUrls option. It reads each page, collects every <img>, takes the largest srcset size, picks up lazy-loaded data-src images and the og:image, and downloads them all into one ZIP. It reads the page's HTML only, so images added later by JavaScript won't be found.

Fixing 403 / "hotlink" errors

Only download files you have the right to use.

FAQ

How do I download all images from a list of URLs at once?

Put the URLs in a text file and run wget -i urls.txt, use a short Python script with requests, or paste the list into a hosted bulk image downloader that returns one ZIP.

Why do some image URLs return 403 when downloaded in bulk?

Many CDNs block requests without a browser User-Agent or a Referer from their own site (hotlink protection). Send a normal User-Agent and set Referer to the site the images come from.

How do I download product images from scraper output?

Point a bulk downloader at the dataset column that holds the image URLs. On Apify, pass the scraper run's dataset ID and the image field name, and optionally a SKU field to name the files.