URL Extractor
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free URL extractor. Pull every link out of text or HTML, without trailing punctuation, then remove duplicates or list just the domains.
- Links found
- 0
- In the list
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the URL extractor
Paste text or HTML that contains links: an article, an email, a document, a page's source code, a list of messages or a social media export. The URL extractor finds every web address immediately and lists them one per line, ready to copy.
It finds:
- full addresses starting with
http://orhttps://, - addresses starting with
www., even withouthttps://, - links inside HTML attributes such as
href="…", with&turned back into&.
And it cleans them up:
- Trailing punctuation is removed, so a link at the end of a sentence doesn't include the full stop, comma or exclamation mark.
- Brackets are handled sensibly. In "(www.crumbandco.example/order)" the closing bracket isn't part of the link, but in
https://en.wikipedia.org/wiki/Rye_(grain)it is, because the link opened it.
Options let you remove duplicates, list domains only (with or without www.) and sort A to Z. The counts show how many links were found and how many are in your list. Everything runs in your browser.
Common uses
SEO and site checks
- List every link on a page: paste the page source to see which pages and sites it links to.
- Check outbound links in an article before publishing, to make sure each one goes where it should.
- Find links to old addresses after a site move, so you can update them or add redirects with the redirect generator.
- Build a list of pages for an XML sitemap from an export or a navigation menu.
- Collect the domains an article links to, for a quick look at your outbound linking.
Content and research
- Gather sources from your notes or a long document into a reference list.
- Pull links out of an email thread or chat export, where they're mixed in with messages.
- Collect the links shared in a newsletter, to check them or reuse them.
- Turn a messy bookmark export into a clean list.
Marketing
- Check campaign links in an email draft, to make sure each one has the right UTM parameters.
- Audit social posts: paste a month of captions to see which pages you've promoted most.
- Review competitor content: see which resources a public article links to.
Domains only
Tick Domains only to reduce each link to its domain: https://crumbandco.example/blog/?tag=rye becomes crumbandco.example. Port numbers are removed and domains are made lowercase. With Keep www. unticked (the default), www.crumbandco.example and crumbandco.example are treated as the same domain; tick it if you need to keep them apart.
With duplicates removed, the domain list shows every different site your text links to, which is useful for checking outbound links or spotting links to sites you didn't expect.
How the URL extractor decides where a link ends
Links in plain text don't have a clear end, so every URL extractor has to make a sensible guess. This one:
- ends a link at a space, a line break, a quote mark,
<,>or a backtick, - then removes punctuation that usually ends a sentence:
.,,,;,:,!,?, quotes and*, - then removes a closing bracket only if the link doesn't contain a matching opening bracket.
That handles nearly every real case. If a link in your text genuinely ends with a full stop or comma (rare), add it back by hand.
Links written without http or www, such as crumbandco.example/menu, aren't detected, because ordinary text is full of words with dots in them (like file names and abbreviations), and guessing would give many false results.
Extracting links from different sources
- Web pages: right-click, choose View page source, select everything and paste it in. You'll get every link, including stylesheets, scripts and images. To get only the readable links, convert the page first with the HTML to text converter with its links option on.
- Word documents and PDFs: copy the text and paste it. Links that appear only as underlined words (with the address hidden) won't come through as text; in Word, press Alt+F9 to show field codes, or export the document as HTML first.
- Spreadsheets: copy a column and paste it; each cell becomes a line.
- Emails: in most email apps, viewing the original message or source shows every link address.
Checking the links you extracted
Once you have the list:
- Remove duplicates to see each destination once.
- Sort it so links to the same site sit together.
- Look for problems:
http://links that should behttps://, links to staging or test sites, and links with tracking parameters that shouldn't be there. - Decode any odd-looking addresses with the URL encoder and decoder, which turns
%20and similar codes back into readable characters.
For lists of contacts rather than links, the email extractor works the same way.
What the parts of a link mean
When you check a list of extracted links, it helps to know what each part does. Take https://crumbandco.example/blog/?tag=rye&page=2#recipe:
https://is the protocol. Links should use https wherever the site supports it.crumbandco.exampleis the domain (host). With "Domains only", this is what you keep./blog/is the path: which page on the site.?tag=rye&page=2is the query string, often used for filters, page numbers, search terms and tracking codes likeutm_source.#recipeis the fragment, which points to a section of the page and isn't sent to the server.
Two links that differ only in the query string or fragment usually lead to the same page. If you're counting how many different pages you link to, keep that in mind: the URL extractor treats them as different links, because they are different addresses. A canonical tag tells search engines which version is the main one; the canonical tag generator writes it.
Links and SEO
Links are how search engines discover pages and judge what they're about. A few good habits:
- Link to helpful, relevant sources. Outbound links to trustworthy pages are useful for readers.
- Use descriptive link text, such as "our guide to sourdough starters", not "click here".
- Fix broken links. They frustrate readers and waste search engines' time.
- Link between your own pages, so readers and search engines can find related content.
Duplicates: exact matches only
With "Remove duplicates" on, the URL extractor removes links that are exactly the same. Links that differ in any way, even only by a trailing slash (/menu and /menu/) or by http and https, are both kept, because they're technically different addresses and may not lead to the same page. Sort the list to put near-duplicates next to each other so you can spot them.
Privacy
Text you paste into a URL extractor often contains private material: internal documents, customer emails, unpublished drafts. Because this tool runs entirely in your browser, nothing you paste is uploaded, logged or stored, and it keeps working even if you go offline after the page has loaded. Close the tab and the text is gone.
A worked example
A bakery is moving its blog to a new address structure. The owner wants to know which posts link to the old menu pages. Pasting the HTML of the ten most-read posts into the URL extractor gives 64 links. With duplicates removed and sorted, 22 are left, and the owner spots seven links to https://crumbandco.example/menu.html, the old menu page.
Those seven get a redirect to /menu/, and the posts are updated to link directly to the new address. With Domains only ticked, the same text shows the posts link out to just three other sites, all still working.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Frequently asked questions
How do I extract all links from text?
Paste the text into the URL extractor. Every link starting with http, https or www is listed below, one per line, without trailing punctuation.
Can it extract links from HTML?
Yes. Paste the page source and links in href and other attributes are found, with & changed back to &.
Can I get just the domains?
Yes. Tick Domains only to list each link's domain, and keep duplicates removed to see each site once.
Why is a link missing?
The URL extractor finds links that start with http://, https:// or www. Addresses written without those, such as example.com/page, aren't detected.
Does it check whether the links work?
No. It lists the links in your text; it doesn't visit them. Open them or use a link checker to test them.
Is the URL extractor free?
Yes. It's free, needs no sign-up, and runs entirely in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.