Text ToolsA little help for every day

Search by name or task, such as JSON or percentage.

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.

View all tools
ResultUpdates as you type

Found 5 links (4 after removing duplicates) on 4 hosts.

https://example.com
https://docs.example.com/guide?utm_source=newsletter&lang=en#install
www.example.org/path
https://en.wikipedia.org/wiki/Bracket_(disambiguation)

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.

  1. Paste your textPaste an email, a document, Markdown, HTML source or a server log.
  2. Pick the optionsInclude www. links, add https://, remove duplicates, sort A to Z or strip tracking parameters.
  3. 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.

Often Used Together

Next step

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 tools