Advertisement
Text Tools

URL Extractor

Paste text or HTML to extract every URL in it. Links in href and src attributes are found and relative links resolved, bare www addresses included, duplicates removed and tracking parameters stripped. Output full URLs, domains, Markdown, HTML or CSV.

  • Text, HTML and Markdown
  • Resolves relative links
  • Strips UTM and click IDs
  • URLs, domains or CSV
  • Runs in your browser

Runs in your browser. Nothing you type is sent to our server.

Links found

      
    
Advertisement
How to use

How to use the URL extractor

  1. 1

    Paste your content

    Text, an email, chat logs, HTML source, Markdown or a CSV export.

  2. 2

    Add a base URL

    For HTML with relative links like /about/, enter the page address so they become full URLs.

  3. 3

    Choose the output

    Full URLs, domains only, root URLs, Markdown links, HTML links or CSV.

  4. 4

    Copy or download

    Copy the list or download it for the next tool.

Extract URLs

How the URL extractor works

The URL extractor looks for links in three ways. First it reads href and src attributes in HTML, so links in anchors, images, scripts and stylesheets are all found, and relative paths such as /blog/post/ or ../img/a.png are resolved against the base URL you enter. Then it finds every http:// and https:// address in plain text. Finally, with Include www.example.com ticked, it also catches addresses typed without a protocol.

Trailing punctuation that ends a sentence is trimmed, & in HTML is decoded to &, and invalid addresses are dropped. Every URL is normalised by the browser's own URL parser, so the output is always well formed.

Output formats

Output formats and clean-up options

OutputExampleUse it for
Full URLshttps://example.com/blog/post/Checking links, building lists
Domains onlyexample.comOutreach lists, competitor research, disavow files
Root URLshttps://example.com/Site-level checks such as SSL or robots.txt
Markdown links[example.com](https://...)Docs, GitHub, notes
HTML links<a href="...">example.com</a>Web pages and emails
CSVurl,domain,pathSpreadsheets

Remove query strings and fragments keeps only the clean page address. Remove only UTM and click IDs keeps meaningful parameters like ?page=2 but strips utm_, gclid, fbclid, msclkid and similar tracking codes. Only URLs containing filters by any text, such as /blog/, .pdf or a domain.

Advertisement
Examples

URL extractor examples

Here is how the extractor handles a typical mixed paste. Given this input:

Read our guide at https://example.com/guide?utm_source=mail, or the PDF at www.example.org/files/report.pdf.
<a href="/pricing/">Pricing</a> <img src="../img/logo.png">

with the base URL https://example.com/blog/post/ and Remove only UTM and click IDs ticked, the output is:

https://example.com/pricing/
https://example.com/blog/img/logo.png
https://example.com/guide
https://www.example.org/files/report.pdf

The relative /pricing/ and ../img/logo.png links were resolved against the base URL exactly the way a browser would resolve them, the tracking parameter was removed, the trailing comma and full stop were trimmed from the plain-text links, and the bare www. address gained https://. Switch the output to Domains only and the same input gives just example.com and www.example.org.

Two details are worth knowing. Links inside JavaScript code or JSON are found only when they are written out in full with http or https. And protocol-relative links such as //cdn.example.com/app.js are resolved using the protocol of your base URL, so always enter the base URL with https:// when you work with HTML source.

FAQ

URL Extractor: frequently asked questions

How do I extract all URLs from text?

Paste the text into the box. Every link is extracted instantly and listed on the right.

Can I extract links from HTML source code?

Yes. Links in href and src attributes are found, and relative links are turned into full URLs using the base URL you enter.

How do I get a list of domains from links?

Choose Domains only as the output. Tick Remove duplicates to list each domain once.

Can it remove UTM parameters from links?

Yes. Tick Remove only UTM and click IDs, or Remove query strings to strip all parameters.

Does it find links without http, like www.example.com?

Yes, when Include www.example.com without http is ticked.

Can I export links to Excel?

Choose CSV output and download the file, or copy the list and paste it into a column.

Is there a limit on text size?

No fixed limit. It runs in your browser, so it depends on your device.

Is my content uploaded?

No. Everything is processed in your browser.

About Text Tools

More about our text tools

Text tools for writers, editors, marketers and anyone cleaning up lists: change case, remove duplicate lines, compare two versions of a document, and generate placeholder copy.

Built for lists and long documents

These tools are designed for pasted lists of thousands of lines and full-length documents, not just a sentence or two. Line-based tools keep your original order unless you ask for sorting.

Unicode-aware

Case conversion, de-duplication and comparison use multibyte-safe functions, so accented letters, non-Latin scripts and emoji are handled correctly instead of being mangled.

Nothing is stored

Your text is processed for the current request only. Close the tab and it is gone.