Extract URLs and Links From Text
Paste any block of text and this tool lists every web address hidden inside it, one per line. It matches full http and https links along with bare addresses that start with www., then strips the stray full stops and brackets that sentences leave behind. Turn on remove duplicates or sort A to Z to tidy the list before you copy it.
How to extract URLs from text
- Paste your text, email, log or document into the 'Your text' box.
- Leave 'Remove duplicates' checked to keep only the first copy of each link, or uncheck it to keep every occurrence.
- Tick 'Sort A to Z' if you want the links ordered alphabetically instead of in the order they appear.
- Watch the count under the 'URLs' heading update as the extracted links fill the lower box.
- Click Copy to put the clean, one-per-line list on your clipboard.
Examples
Pull two links from a sentence
Visit https://example.com and http://boneyard.io/tools for more.
https://example.com http://boneyard.io/tools
Trim trailing punctuation and wrapping brackets
Docs at (https://example.com/path) and www.site.org.
https://example.com/path www.site.org
Remove duplicates while keeping the first casing
See https://Example.com then https://example.com again.
https://Example.com
Frequently asked questions
What link formats are detected?
Any text that begins with http://, https:// or www. is captured, including the path, query string and fragment that follow. A match ends at the first space, angle bracket, straight quote or apostrophe, so a link that runs to the end of a line is grabbed in full.
Does it add https:// to bare www links?
No. A www. address is returned exactly as written, without a scheme bolted on. If you need a clickable link you can add http:// or https:// yourself after copying.
Why is a trailing full stop or bracket removed?
Sentence punctuation that sits right after a link, such as a period, comma, semicolon, exclamation mark or closing quote, is trimmed so you get the bare address. A closing bracket is only removed when the link has no matching opening bracket, so a Wikipedia style path like /wiki/Foo_(disambiguation) keeps its parenthesis.
How does remove duplicates decide what is a duplicate?
Two links are duplicates when they match after lowercasing, so https://Example.com and https://example.com are treated as one. The first spelling you pasted is the one kept, so its original capitalization survives.
What order are the URLs listed in?
By default they appear in the order they occur in your text. Turn on 'Sort A to Z' to reorder them alphabetically using a case-insensitive comparison, which groups links from the same site together.
Will bare domains or email addresses be picked up?
Only links starting with http, https or www. are matched. A bare domain like example.com with no www. prefix is skipped, and email addresses are ignored because they do not start with those markers. Use a dedicated email extractor for addresses.
Does it check that the links actually work?
No. The tool recognizes the shape of a web address in your text but never visits it, so broken, private or made-up links are listed just the same. It reports what looks like a URL, not what is reachable.
Is there a limit on how much text I can paste?
There is no fixed cap. Extraction runs in your browser, so the practical ceiling is your device memory, and even long logs or exported pages scan almost instantly.
Is my text private?
Yes. Everything runs locally in your browser and nothing is uploaded to a server, so pasted links and the text around them never leave your device.
Learn more
- How a URL extractor finds and cleans links
How this tool recognizes web addresses in messy text, trims sentence punctuation, balances brackets, and de-duplicates the list.
Related tools
Extract Emails
Pull every email address out of pasted text online. Find, de-duplicate and sort emails from lists, logs or pages, then copy. Free and private.
Find and Replace
Find and replace text online with literal or regex search, case sensitivity, and replace first or all. See a live count of changes. Free and private.
Text Statistics
Detailed text statistics: characters, words, sentences, paragraphs, unique words, average word length, longest word and reading time. Free and private.
Acronym Generator
Turn any phrase into an acronym from the first letter of each main word. Skip small words like the and of, keep them, or add dot separators.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
AI Sentiment Analyzer
Analyze the sentiment of any text with AI in your browser. Paste a review or comment, get a positive or negative score plus a per-sentence breakdown.