How to extract URLs from text
- Paste your text into the box: an email, a chat, notes, a spreadsheet column, Markdown or HTML. Or click Paste.
- Your links appear below it straight away, once each, in the order they appear in the text.
- Pick the options you need: sort them, keep one site's links, remove tracking, or switch the format to CSV or Markdown.
- Copy all, download the file or open them all in new tabs with the Bulk URL Opener.
Example: the links in a messy message
Here's a message as you might copy it from an email or a team chat, with a bit of HTML at the end. Click Try an example above to load it into the tool.
Pasted
Hi all, here are the links from Friday's call: 1. The URL standard: https://url.spec.whatwg.org/?utm_source=newsletter&utm_medium=email 2. MDN on URLs: https://developer.mozilla.org/en-US/docs/Web/API/URL. 3. www.rfc-editor.org/rfc/rfc3986 (the older spec) In Markdown: [What is a URL?](https://en.wikipedia.org/wiki/URL) From our page: <a href="https://developer.mozilla.org/en-US/docs/Web/API/URL">MDN again</a> · <a href="/about">About us</a> · <a href="mailto:team@example.com">Email the team</a>
Extracted, in this order
https://url.spec.whatwg.org/?utm_source=newsletter&utm_medium=emailhttps://developer.mozilla.org/en-US/docs/Web/API/URLhttps://www.rfc-editor.org/rfc/rfc3986https://en.wikipedia.org/wiki/URL
4 links · 1 duplicate removed · https:// added to 1 · 1 relative link skipped
The full stop after the MDN link isn't part of it, and the www. link gets https://
in front. The Markdown link loses its closing bracket, the HTML link to MDN repeats link 2 so it's listed once,
and the email link is left out. /about is a relative link: type the page's address in the box that
appears and it's listed too. Switch on Remove tracking and link 1 becomes
https://url.spec.whatwg.org/.
How to extract links from a web page
The tool works on the text you paste. It doesn't open web pages itself, so nothing is fetched from other sites. There are two ways to get a page's links into it:
- Copy the page. Select the part you want, or press Ctrl+A (Cmd+A on a Mac) for all of it, copy it and paste it here. When your browser copies the links along with the words, the tool writes each link after its words, in brackets.
- Copy the page's code. For every link, menus and footer included, right-click the page and
choose View page source (Chrome, Edge and Firefox). Select all, copy and paste it here.
Pages often use relative links like
/about: type the page's address in the box that appears to complete them.
What the options do
- Remove duplicates: each address is listed once, the first time it appears.
http://andhttps://, or a link with and withoutwww., count as different links. - Remove tracking: takes
utm_source,fbclid, YouTube'ssi=and other tracking parameters out of each link, with the same rules as the Link Cleaner. Google and Facebook redirect links become the page they lead to. - Order: as found keeps the order of your text. A to Z sorts by address, ignoring
https://andwww.. By domain groups the links from each site together. - Domains: type one or more sites, like
youtube.com, youtu.be, to keep only their links, or switch to All links except to leave them out. A domain covers its subdomains, soyoutube.comincludeswww.youtube.comandm.youtube.com. - Format: one link per line, CSV with a url and a domain column, or Markdown links for notes apps. Up to 10,000 links per paste.
More for your links
Got a list to go through? The Bulk URL Opener opens them in new tabs, a batch at a time. Links full of tracking codes? The Link Cleaner shows what it takes out of each one. And for the links you want to keep, here's how to save links from any app on your phone.
Frequently asked questions
How do I extract URLs from text?
Paste the text into the box above: an email, a chat, notes, a spreadsheet column, Markdown or the HTML of a page. Every web link in it is listed below the box straight away, once each, in the order it appears. Then copy them all, download them as a .txt, .csv or .md file, or open them with the Bulk URL Opener.
Can it extract links from a web page?
Yes, from what you copy. Select the page (Ctrl+A, or Cmd+A on a Mac), copy it and paste it here. When your browser copies the links along with the words, the tool writes each link after its words. For every link in the page’s code, menus and footer included, right-click the page, choose View page source, then copy all of it and paste it here. The tool never opens or downloads the page itself.
Does it pick up email addresses?
No. It extracts web links: addresses that start with http://, https:// or www., and lines that hold nothing but a domain, like example.com. Email addresses and mailto: links are left out, and so are tel:, javascript: and any other links that don’t lead to a web page.
What happens to relative links like /about?
A relative link holds only a path, not the site, so it can’t be opened on its own. The tool counts them and shows a box for the address of the page they came from. Type it, like https://example.com/blog, and /about comes out as https://example.com/about. Links that only jump within a page, like #top, are skipped.
Can I get the links as a CSV or in Markdown?
Yes. Pick CSV and you get a url column and a domain column, ready for Excel or Google Sheets; Download saves links.csv. Markdown links gives a list like - [example.com/page](https://example.com/page) for notes apps, saved as links.md. One per line downloads as links.txt.
Is it private? Is my text uploaded?
No, nothing leaves your browser. The text you paste is never sent to a server or saved, and it’s gone when you close the tab. The tool doesn’t visit the links it finds, either.