About this URL extractor
This extractor collects every link from a block of text: an email, a document, a chat export, a server log, or the HTML of a page. It finds addresses that start with http://, https://, ftp://, or www., removes punctuation that ends a sentence rather than the link, and keeps brackets that belong to the URL, as in Wikipedia links. Give it the address of the page the HTML came from, and relative links such as /pricing or images/logo.png become complete URLs. Filter to HTTPS or HTTP, remove duplicates, sort, and see how many links point to each domain.
How to extract URLs
- Paste your text or HTML. Paste anything that contains links, or press an example. An example only fills the box.
- Set the options. Add a base URL to resolve relative links, and choose whether to remove duplicates, sort, or keep only HTTPS or HTTP links.
- Press Extract URLs. The links appear one per line, with counts and a breakdown by domain.
- Copy or download. Press Copy URLs, or Download to save the list.
Frequently asked questions
Why is the period at the end of a link removed?
A period, comma, colon, or exclamation mark right after a link almost always ends the sentence, so it is trimmed. A closing bracket is kept only when the link itself opened one.
What happens to links that start with www.?
They are found and given https:// in front, so www.example.com/blog becomes https://www.example.com/blog and works when pasted into a browser.
How are relative links resolved?
Relative paths are only read from href and src attributes, and only when you enter a base URL. /pricing is joined to the domain, and docs/start.html is joined to the folder of the base URL, the same way a browser would.
Are email and phone links included?
No. mailto:, tel:, and javascript: links are skipped. Use the Email Extractor to collect email addresses.
Are URLs checked to see if they work?
No. The tool only extracts them from your text; it does not visit any link.