URL Extractor

Get a clean list of every link in a block of text, an email or the HTML source of a page. Links beginning with http or https are found anywhere, including inside href and src attributes, HTML entities such as & are decoded, and you can reduce the list to the unique domains that are linked.

Extractors Runs in your browser

Extract URLs from Text

How to Use the URL Extractor

  1. Paste text or HTML source.
  2. Choose whether to include www links without http, remove duplicates and sort.
  3. Tick Show unique domains for a list of the sites linked rather than every link.
  4. Copy or download the list.

About This Tool

SEO specialists auditing outbound links, editors checking the sources in an article, and developers collecting URLs from logs or exported data.

Input: Plain text or HTML  ·  Output: List of URLs or domains.

Features and Limitations

Features

  • Finds http and https links and, optionally, bare www. addresses.
  • Trims punctuation that ends a sentence and unmatched closing brackets, while keeping brackets that belong to the URL (as in Wikipedia links).
  • Decodes & in links taken from HTML.
  • Unique-domain mode lists each host name once.

Limitations

  • Relative links in HTML (href="/about") are not included, because the site they belong to is unknown.
  • Bare domains without www or http, such as example.com, are not detected, to avoid matching file names and sentences.
  • The tool does not check whether links work.
  • Results are computed in your browser; nothing you enter is sent to a server.

Example

From “See https://example.com/page?a=1&b=2, or www.test.org.”, it extracts https://example.com/page?a=1&b=2 and www.test.org.

Frequently Asked Questions

Does it find links in HTML attributes?

Yes. Any absolute http or https address is found, whether it is in visible text or in an href, src or other attribute.

Why is a trailing full stop or bracket missing?

Sentence punctuation after a link is not part of it. A closing bracket is kept only if the link also contains an opening bracket.

What does the unique domains option do?

It replaces each link by its host name (such as www.example.com) and lists each host once.

Are mailto: links included?

No. Use the Email Address Extractor to collect email addresses.

Related Tools

More like this: all Extractors tools, all Text & Writing tools or the TinySandy home page.