Extract URLs From Text
About this tool
About URL Extractor
Pull every link out of a newsletter, a chat export, a document, a page's HTML source, a Markdown file or a server log. Addresses starting with https://, http://, ftp:// and www. are found wherever they appear, including inside HTML attributes and Markdown links. Each one is cleaned the way a careful person would: the full stop, comma or closing bracket that ends a sentence is trimmed off, while brackets that belong to the link, as in Wikipedia addresses, are kept. Duplicates are merged and counted, the list can be sorted, and a domain summary shows which sites are linked most. Copy the links one per line for a spreadsheet or a link checker, or as a comma-separated list. Nothing is opened, requested or checked online; the links are only read from the text you pasted, so it is safe to use on suspicious messages when you want to see where links lead without clicking them. To extract links from a PDF file, there is a dedicated PDF tool.
Built and maintained by Abhi JainUpdated
How to Extract URLs From Text
- 1
Paste the text
Paste text, HTML, Markdown or a log into the Text box.
- 2
Review the links
URLs is selected. Keep Remove duplicates on and tick Sort to order them.
- 3
Copy
Choose the Output format and Copy or Download the list.
URL Extractor: questions and answers
Does it find links without http, like example.com?
Addresses starting with www. are found. Bare domains such as example.com are not, because too many ordinary words with dots (file.txt, e.g.) would be mistaken for links.
Can I extract links from a PDF?
Yes, with Extract Links, which reads the clickable links stored in a PDF file.
Are the links visited or checked?
No. The tool only reads text; it never opens or requests a URL, so it's safe for checking suspicious messages.
How do I list links in a Markdown file with their text?
Use the Markdown Link Extractor, which shows link text, line numbers and broken anchors.
More Text Extractor presets
Related tools
- Regex Match ExtractorExtract every regex match or capture group from text into a clean list, JSON array or CSV, with presets, de-duplication and sorting.
- Text CleanerRemove duplicate and empty lines, extra spaces, line breaks, HTML tags, curly quotes and invisible characters in one pass.
- Sort LinesSort lines alphabetically, naturally, by number or by length; reverse or shuffle them, and remove duplicates.
- Hashtag Generator & ExtractorTurn words into clean hashtags, or pull every hashtag or @mention out of posts, with platform limits.
- Text RedactorMask emails, phone numbers, card numbers, IDs and API keys in text before you share it.