Extract URLs from text

Paste text, an HTML snippet or a page copy and this tool extracts every URL: links starting with http://, https:// or www. Remove duplicates and sort the list.

  • Free
  • No sign-up
  • Runs in your browser
Options

0 characters

Runs in your browser — your text is never sent to our servers.

How to use Extract URLs

  1. Paste the text that contains links.
  2. Keep "Remove duplicates" on, and turn on "Sort A–Z" if you want an ordered list.
  3. Copy the extracted links or download them as a text file.

Features

  • Finds links that start with http://, https:// or www.
  • Drops trailing punctuation such as full stops, commas and closing brackets
  • Keeps query strings and brackets that belong to the link
  • Option to remove duplicates and to sort the list
  • Runs in your browser, so your text is not uploaded

Supported formats and limits

  • Maximum input: 5,000,000 characters

Examples

InputResult
Docs: https://example.com/guide, mirror at www.example.org/docs.https://example.com/guide www.example.org/docs (2 links found)
See (https://example.com/a?b=1&c=2) and https://example.com/a?b=1&c=2https://example.com/a?b=1&c=2 (1 link found, duplicate removed)

Limitations

  • It finds links written out in the text. It does not follow them, check that they work, or read links hidden in buttons or images unless the address itself appears in the pasted text. Addresses without http://, https:// or www. are not detected.

Learn more

Links end up buried in emails, chat exports, documents, bookmarks and page source. When you need them as a list, for instance to audit the sources in an article, import them into a spreadsheet or check them with another tool, copying each one by hand is tedious.

The extractor scans the text for addresses that begin with a web scheme or with www. and stops at whitespace or at characters that cannot be part of a link. It then cleans the ends: sentence punctuation is removed, and a closing bracket is dropped only when the address has no matching opening bracket, so links that end in a bracket, such as some encyclopedia pages, stay intact. Because the work happens in your browser, it is safe for text you would rather not upload.

Frequently asked questions

How do I extract all links from text?

Paste the text into the box. Each URL starting with http://, https:// or www. is listed on its own line.

Will it include the punctuation after a link?

No. A full stop, comma, colon or closing bracket right after a link is treated as part of the sentence and left out, unless the bracket belongs to the address.

Can I get links from an HTML page?

Yes, if you paste the HTML source, it finds addresses written in attributes such as href and src. It reads text only and does not open the page.

Does it check that the links work?

No. It does not connect to any website, so it cannot tell whether a link is live.

Should I use Extract URLs or URL Extractor?

Use Extract URLs for ordinary text such as emails, notes or chat exports, because it also catches links written as www.example.com. For HTML source where you want href and src links or only one domain, URL Extractor is the better fit.

Last reviewed: September 30, 2026