Skip to content
Search

img2dataset

An open source tool that downloads large lists of image URLs, with their captions, and packages them as image datasets. People use it to build training sets for image and text models such as CLIP.

In short. img2dataset is an open source tool that turns lists of image URLs into datasets for AI training. img2dataset does not read robots.txt, so the opt-out that works is an X-Robots-Tag header such as noai on the image response. By default it skips images with those headers. Each operator can turn the check off, and the default user agent does not name the tool.

On this page 7 sections

Facts

Training
Operator
iimg2dataset
Purpose
An open source tool that downloads large lists of image URLs, with their captions, and packages them as image datasets. People use it to build training sets for image and text models such as CLIP.
robots.txt token
img2dataset
Obeys robots.txt
No
User agent
Not published by img2dataset. Match on the token, then check the IP address.
IP addresses
Not published by img2dataset.
If you block it
img2dataset does not read robots.txt, so a Disallow rule has no effect. By default it skips images whose response carries an X-Robots-Tag header with noai, noimageai, noindex or noimageindex, unless the operator turns that check off.

Does your site block img2dataset? The robots.txt checker shows the rule that decides it.

Verified Nov 22, 2026 against img2dataset on GitHubNext check due Feb 22, 2027

The evidence

Confirmed

By default img2dataset skips images whose response has the header X-Robots-Tag: noai, noindex, noimageai or noimageindex.1

1img2dataset on GitHub
Confirmed

An operator can turn the header check off with --disallowed_header_directives '[]'.1

1img2dataset on GitHub
Confirmed

The README documents no robots.txt support, and the download code fetches each image URL without a robots.txt check.2

2img2dataset on GitHubChecked in the README and img2dataset/downloader.py on Nov 22, 2026.
Confirmed

The default user agent is a Firefox string. If the operator sets user_agent_token, the tool adds that token and a link to the img2dataset repository.2

2img2dataset on GitHub
Confirmed

LAION's FAQ suggests img2dataset to download the images that LAION's URL datasets point to.3

3LAION

#What blocking it does

A robots.txt rule does not reach img2dataset. The tool downloads a list of image URLs that someone already collected. It does not crawl a site to find them. The img2dataset README documents no robots.txt support, and the download code fetches each image URL without a robots.txt check.2 LAION's FAQ suggests img2dataset to download the images that LAION's URL datasets point to.3

The opt-out that works is a response header. The README says img2dataset skips images whose response has the header X-Robots-Tag: noai, noindex, noimageai or noimageindex. It says the opt-out lets creators keep their art out of indexing and training.1 An operator can turn the check off with --disallowed_header_directives '[]'.1 The header protects only images downloaded after you add it.

#robots.txt rules

img2dataset does not read robots.txt. Third-party lists show this rule, but the tool ignores it:

User-agent: img2dataset
Disallow: /

Send the opt-out on your image responses instead. For example, in the HTTP response headers:

X-Robots-Tag: noai, noimageai

#Verify a request

You cannot verify an img2dataset request. The default user agent in the code is "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0", which does not name the tool.2 If the operator sets user_agent_token, img2dataset adds that token and a link to its GitHub repository to the string.2 img2dataset is not a service, so there is no IP list.

All AI crawlers

Crawler directory
  • Training
  • Fetches for a user
  • Mixed
  • Control token (sends no requests)

Notes

  1. 1
    img2dataset READMEimg2dataset on GitHub · Checked Nov 22, 2026 · Primary source
  2. 2
    downloader.pyimg2dataset on GitHub · Checked Nov 22, 2026 · Primary source
  3. 3
    FAQLAION · Checked Nov 22, 2026 · Secondary source

About this page

Researched and reviewed by Promptly Found. Verified Nov 22, 2026. Next review due Feb 2027.

Cite this page
Citation style

Promptly Found. (2026, November 22). img2dataset https://promptlyfound.com/crawlers/img2dataset

Revisions 1
First published. Facts verified against the img2dataset README and source code.