Text Tools
Extract URLs from Text
Pull every http, https and www link out of text, HTML or logs. Trims trailing punctuation, removes duplicates, strips tracking parameters and counts hosts.
How to use Extract URLs from Text
Paste text that contains links and the list appears as you type, one URL per line. Choose whether to include www. addresses, add https:// to them, remove duplicates, sort, and strip utm_ and other tracking parameters, or switch to the host summary.
- Paste your textPaste an email, a document, Markdown, HTML source or a server log.
- Pick the optionsInclude www. links, add https://, remove duplicates, sort A to Z or strip tracking parameters.
- Copy the listCopy one URL per line, or switch to Count by host name to see which sites appear most.
Where a link ends
A link ends at a space, a quote, an angle bracket or full-width punctuation, and a full stop or comma at the end is dropped. A closing bracket is only dropped when it has no partner, so https://en.wikipedia.org/wiki/Bracket_(disambiguation) survives intact while (see https://example.com) loses its bracket. Chinese text straight after a domain ends the link, and & from HTML source becomes &. The sample yields 5 links, 4 after removing duplicates, on 4 hosts.
Duplicates, tracking parameters and hosts
Duplicate removal compares whole links and keeps the first occurrence in its original position. Strip tracking parameters removes utm_source, fbclid, gclid and similar parameters while keeping the rest of the query and any #fragment, so ?utm_source=newsletter&lang=en becomes ?lang=en. Count by host name lists each host with its number of links, which shows which sites a document relies on. The tool never visits the links, so check unfamiliar ones before opening them.
Accuracy and data handling
Before copying the output, check names, punctuation and the intended meaning against the source text. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
Which links does it find?
Links that start with http:// or https://, plus addresses that start with www. when that option is ticked. Email addresses and bare domains such as example.com are not picked up.
Does it change the links?
Only trailing punctuation is removed by default. https:// is added to www. links and tracking parameters are removed only when you tick those options.
Is the text uploaded?
No. Extraction runs in your browser and the links are never requested.
More Text Tools
Related toolsPull phone numbers out of text and list them in E.164 or national format.
Swap Chinese and English punctuation without breaking URLs or numbers.
Turn full-width ABC123 into ABC123, or convert the other way.
Spell letters as Alpha, Bravo, Charlie, or decode NATO code words.
Capitalise headlines in Chicago, AP/APA, sentence or start case.
Strip common words like the, is and and from text before analysis.