Skip to main content

URL extractor

Find web addresses inside a block of text, automatically remove duplicates, and get a clean list ready to copy or reuse.

  • Clipboard

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Was this tool useful?

How does this tool work?

This extractor finds every web address starting with http:// or https:// in a text, an email, a chat export or HTML code, then returns a clean, duplicate-free list, one URL per line. Punctuation that follows an address at the end of a sentence is removed, so the list can be reused straight away.

The tool looks for each run of characters starting with http:// or https:// and stops at the first space, angle bracket (< or >) or quotation mark. In HTML, href="…" values are therefore extracted cleanly.

A full stop, comma, semicolon, colon, exclamation or question mark at the end of an address is removed; a closing parenthesis or bracket is removed if its opening one is not in the URL, as in “(see https://example.com)”.

Exact duplicates are removed while keeping the order of first appearance; the Sort result option sorts the list alphabetically.

The counter shows how many unique URLs were found.

How to use this tool

  1. Paste the text

    In the Source text field: plain text, HTML, Markdown or an export.

  2. Choose the order

    Tick Sort result for alphabetical order; otherwise the order of appearance is kept.

  3. Extract

    Click Extract; the number of items found is shown.

  4. Copy the list

    One URL per line, ready for a spreadsheet or another tool.

Use cases

Collect the links from an email or document

Paste a long message or meeting notes and get only the addresses mentioned.

List a page’s outgoing links

Paste the source code and extract every absolute URL to check or redirect it.

Prepare a checklist

Build a list to run through the URL validator or a crawler afterwards.

Examples

Sentence with punctuation and a duplicate

The final full stop is removed from both mentions of the pricing page, which now count only once; sorting puts the documentation first.

Input

Source text: See https://example.com/tarifs. Docs: https://docs.example.com/api (v2) and https://example.com/tarifs.
Sort result ✓

Result

2 item(s) found
https://docs.example.com/api
https://example.com/tarifs

Tips and best practices

  • Addresses without a scheme (www.example.com, example.com) are not detected: add https:// or use your editor’s search.
  • Relative links in HTML (/contact) are not extracted; only absolute URLs are.
  • Two URLs that differ only in case or a trailing slash remain two separate entries.
  • When a URL is stuck to a word with no space, the address may include that word: check unusually long lines.

Sources and references

Frequently asked questions

Are email addresses extracted?

No. Only URLs starting with http:// or https:// are kept; mailto: links and bare email addresses are ignored.

Why is the final full stop missing from the URL?

Because a full stop, comma or exclamation mark at the end of an address almost always belongs to the sentence. The tool removes them, as well as a closing parenthesis with no opening one in the URL.

Is a URL that contains parentheses kept?

Yes, if the opening parenthesis is part of the address, as in https://en.wikipedia.org/wiki/URL_(disambiguation): the closing parenthesis is then kept.

Is there a size limit?

The tool sets no limit: everything is processed in memory by your browser, which handles texts of several megabytes.

Is my text sent to a server?

No. The extraction runs in your browser.

Related tools

Tools similar or complementary to this one.

Similar tools

Encode or decode a URL, its parameters, and any special characters it contains.

Web & SEOUse this tool

Turn a title or phrase into a clean slug that is ready to use in a URL.

Web & SEOUse this tool

Validate, normalize and inspect web addresses locally.

Web & SEOUse this tool
TutorialBest practicesBeginner

Optimize images for the Web without losing quality

Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.

30 August 20264 min