Skip to content
XUtilHub

URL Extractor – Extract Links from Text

Extract all URLs and links from text or HTML. Remove duplicates, sort, or extract domains only. Free and private.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded
Input
Output

About the URL Extractor

Find every web link in a block of text, including http, https and www. addresses. Trailing punctuation is trimmed, duplicates removed, and you can list domains only.

Key features

  • Finds http, https and ftp links in any text
  • Optionally includes www. links without a scheme
  • Trims trailing punctuation but keeps balanced parentheses
  • Domains-only mode
  • Removes duplicates and sorts A–Z
  • Private: runs entirely in your browser

Collect all the links from an article, an email, a chat export, a sitemap, a log file or HTML source code. The extractor finds URLs, cleans off trailing punctuation and gives you a de-duplicated list.

Example

Input:

Read the docs at https://xutilhub.com/json/json-formatter, and see
https://en.wikipedia.org/wiki/JSON_(file_format). Mirror: www.example.org/files!

Output:

https://xutilhub.com/json/json-formatter
https://en.wikipedia.org/wiki/JSON_(file_format)
www.example.org/files

The comma, period and exclamation mark are removed, while the parentheses that are part of the Wikipedia URL are kept.

Options

OptionEffect
Include www. linksAlso finds www.example.com without https://
Domains onlyhttps://en.wikipedia.org/wiki/JSON → en.wikipedia.org
Remove duplicatesEach link appears once
Sort A–ZAlphabetical order

Common uses

  • SEO audits: list outbound links in a page or document.
  • Research: collect sources cited in a long text.
  • Security reviews: see which domains an email or file points to.
  • Migrations: find hard-coded URLs before moving a site.

Extract email addresses with the Email Extractor, convert HTML to readable text with HTML to Text, or decode encoded links with the URL Decoder.

How to use the URL Extractor

  1. Type or paste your text into the input box.
  2. Choose the options you want.
  3. The result updates instantly as you type.
  4. Copy the output or download it as a .txt file.

Frequently asked questions

Does it work with HTML source?

Yes. Links inside href attributes are found because the URL itself appears in the text. Quotes and angle brackets end a URL.

How does it handle punctuation after a link?

Trailing periods, commas, colons and question marks are removed, since they usually belong to the sentence. Closing parentheses are kept only when the URL contains a matching opening one, as in Wikipedia links.

What does 'Domains only' do?

It reduces each link to its hostname, such as en.wikipedia.org, which is useful for auditing which sites a document links to.

Are links checked or visited?

No. The tool only reads your text. It never opens or checks the links.

Is my text sent anywhere?

No. All text tools run locally in your browser.

Do these tools support Unicode?

Yes. They handle Unicode text, including emoji and accented characters.

Last updated:

Related Text tools