Free online text tool

Extract Image URLs

Extract Image URLs finds every image URL in your HTML or text and lists each one on its own line. Paste your HTML, click the button and copy the result. It is free and runs in your browser.

Extract Image URL Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Image URL Extract Example

Before
<a href="http://example.com/page1"><img src="http://example.com/images/image1.jpg" width="100" height="50" alt="One"></a>
<a href="http://example.com/page2"><img src="http://example.com/images/image2.gif" width="100" height="50" alt="Two"></a>
After
http://example.com/images/image1.jpg
http://example.com/images/image2.gif

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Extract Image URLs do?

This tool finds the image URLs in your HTML or text and puts each one on its own line. Everything else is removed from the result.

It returns the src value of every img tag, and any link that starts with http:// or https:// and ends with an image file type such as jpg, png, gif, webp or svg. A query string after the file name is kept. Data images and links to normal pages are skipped.

Use it to list the images of a web page, collect links for a download, or check which images an email or template uses. Repeated URLs can be listed once.

Extract image URLs examples

Each example shows the HTML or text before and after extracting. Duplicates are removed unless the option is off.

CaseBeforeAfter
HTML example
<a href="http://example.com/page1"><img src="http://example.com/images/image1.jpg" width="100" height="50" alt="One"></a>
<a href="http://example.com/page2"><img src="http://example.com/images/image2.gif" width="100" height="50" alt="Two"></a>
http://example.com/images/image1.jpg
http://example.com/images/image2.gif
Links in plain text
Logo: https://cdn.site.com/logo.png and https://cdn.site.com/hero.webp
https://cdn.site.com/logo.png
https://cdn.site.com/hero.webp
Query string is kept
Photo: https://site.com/photo.jpg?w=600&h=400.
https://site.com/photo.jpg?w=600&h=400
Relative img src
<img src="/images/a.png"><img src='b.jpg'>
/images/a.png
b.jpg
Pages and data images are skipped
See https://site.com/page.html and https://site.com/icon.svg <img src="data:image/gif;base64,R0lGOD">
https://site.com/icon.svg
Duplicates removed
https://x.com/a.png https://x.com/b.png https://x.com/a.png
https://x.com/a.png
https://x.com/b.png
Duplicates kept (option off)
https://x.com/a.png https://x.com/a.png
https://x.com/a.png
https://x.com/a.png

How to extract image URLs from HTML or text

  1. 1
    Add your HTML or text
    Paste your HTML or text into the box, or import a text file.
  2. 2
    Choose duplicates
    Keep Remove duplicate URLs ticked to list each URL once, or untick it to keep every match.
  3. 3
    Click Extract Image URLs
    Every image URL is found and put on its own line. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the list where you need it.

When to extract image URLs

Good for

Listing the images of a web page, collecting links to download or check, and finding which images an email, template or article uses.

Check first

Relative paths such as /images/a.png are returned as written, not turned into full links. Images set in CSS with url() or in srcset are only found when they are full links with an image file type. The result replaces your text, so use Undo if you need the original.

Other tools

To get all links try Extract Urls. To get link and anchor pairs try Extract Links and Anchors.

Extract image URLs FAQ

What does the Extract Image URLs tool do?

It finds every image URL in your HTML or text and puts each one on its own line. Everything else is removed from the result.

How do I extract image URLs from HTML?

Paste your HTML or text, or import a text file, then click Extract Image URLs. The URLs replace the text in the box. Click Copy to use them, or Undo to go back.

What counts as an image URL?

Two things are found. The first is the src value of every img tag, which can be a full link or a relative path such as /images/photo.png. The second is any link that starts with http:// or https:// and ends with an image file type: jpg, jpeg, png, gif, webp, svg, bmp, ico, avif, tif or tiff.

Does it keep the part after the question mark?

Yes. A link such as https://site.com/photo.jpg?w=600 is returned in full, including its query string.

Does it remove duplicate URLs?

Yes, by default. A URL used more than once is listed once. Untick Remove duplicate URLs to keep every match.

Are inline data images and non-image links skipped?

Yes. An img src that starts with data: is skipped, and so are links to pages such as .html or .php. Only img src values and links with an image file type are returned.

What if my text has no image URL?

The text is left as it is and you see the message No image URLs found.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Extract Tools

Last updated: 8 November 2026