Extract URLs from Text

Paste text, HTML source or a chat export and pull out every link in it.

Input
URLs
Ready

Extract every link from text or HTML

This URL extractor finds every web address in the text you paste and lists them one per line. It understands full links (https://example.com/page), bare www. addresses, and links sitting inside HTML attributes such as href="…" and src="…". Paste a newsletter, a page's source code, a Slack or Discord export, a sitemap, or a document full of references.

Smart clean-up of the results

Links copied from prose usually drag punctuation with them. The extractor removes what clearly is not part of the address:

Strip tracking parameters

Marketing links often carry utm_source, utm_medium, utm_campaign, gclid (Google Ads) or fbclid (Facebook) parameters. They make URLs long and turn one page into many "different" links. Tick Strip utm_ tracking to remove them while keeping parameters that actually change the page, such as ?page=2 or ?id=42. With duplicates removal on, links that only differed by their tracking tags collapse into one.

List domains only

Domains only reduces each link to its host name, such as docs.example.com. That is useful for auditing which sites an article links out to, building a domain allow-list or block-list, or checking which third parties appear in an HTML template.

Who uses a URL extractor

The extraction runs in your browser — nothing you paste is uploaded.

Frequently asked questions

Does it find links without http or https?
Yes, addresses starting with www. are included by default. Bare domains such as example.com without www are not matched, because ordinary words like "file.txt" or "Node.js" would be picked up by mistake.
Can I extract links from a PDF?
Copy the text from the PDF and paste it here. Links that only exist as clickable areas (not visible text) are not included in copied text, so they cannot be extracted that way.
Does the tool open or check the links?
No. It only reads the text you paste. It never visits the URLs, so it cannot tell whether a link is broken.
What tracking parameters are removed?
All parameters starting with utm_, plus gclid and fbclid. Other query parameters are left untouched.

Related tools

Extract Emails, URL Encode/Decode, URL Slug Generator, Remove Duplicate Lines.