Free URL Extractor: Extract Links from Text

Free URL extractor: find every http, https, ftp and www link in text or HTML source, remove duplicates, group by domain or list domains only, and export.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Extract All Links From Text, HTML Source or a Document →

About the URL Extractor tool

Links hide in emails, chat exports, documents, Markdown files and page source code. Whether you are auditing the outbound links of an article, collecting resources shared in a Slack channel, or checking which domains a newsletter links to, copying each URL by hand is slow and error-prone.

This URL extractor finds every http://, https:// and ftp:// link plus bare www. addresses in whatever you paste, including links inside HTML href attributes and Markdown. It trims trailing punctuation that belongs to the sentence rather than the link, such as a final full stop or comma, while keeping balanced brackets, so a Wikipedia URL ending in “(disambiguation)” survives intact.

Then shape the list. Remove duplicates, sort alphabetically, add https:// in front of www. links, and strip query strings and fragments to remove tracking parameters. Group by domain produces headed sections ordered by how many links each site has, and Domains only reduces the output to unique hostnames. A domain filter keeps just the sites you care about. Output can be one per line or comma, semicolon, tab or space separated.

How to use URL Extractor

  1. Paste text, HTML or Markdown into the input box, or click “Sample”.
  2. Choose an “Output format” and optionally type a domain in “Only domains containing”.
  3. Turn on “Group by domain” or “Domains only” for an overview.
  4. Use “Strip ?query and #hash” and “Add https:// to www. links” to normalise URLs.
  5. Copy or download the extracted links.

Features

Smart punctuation trimming

Drops trailing full stops and commas but keeps balanced brackets.

Group by domain

Sections per hostname, busiest domains first.

Domains-only mode

Reduce a list of links to unique hostnames.

Tracking cleanup

Strip query strings and #fragments in one click.

Works on source code

Finds links in HTML attributes, Markdown and plain text.

When to use it

  • Audit all outbound links in a blog post's HTML before publishing.
  • Collect every resource link shared in an exported chat or email thread.
  • List the domains a competitor's page links to.
  • Build a URL list to feed into a link checker or crawler.

Frequently asked questions

Which kinds of links are detected?

Anything starting with http://, https:// or ftp://, and addresses starting with www. Bare domains like example.com without www. or a scheme are not picked up, to avoid matching ordinary words with dots.

Can I extract links from HTML code?

Yes. Paste the page source and URLs inside href and src attributes are found along with any links in the visible text.

How do I get only the domain names?

Switch on “Domains only”. Each URL becomes its hostname, and with “Remove duplicates” on you get a unique list of sites.

Does it check whether links work?

No. It extracts links from text only and does not visit them. Use a link checker for that.

Are relative links like /about extracted?

No. Only absolute links that include a scheme or start with www. are extracted, because relative paths cannot be identified reliably in plain text.

Related tools