URL Extractor

Pull every web address out of any text instantly, right in your browser.

URL Extractor Online

Paste any text, document content or HTML source and extract every web address hidden inside it.
It catches http://, https:// and ftp:// links, www addresses, ports, query strings and fragments - then deduplicate, sort and filter the list.


Load an example

Settings
Alphabetical order.
Keeps the first occurrence of each address.
Converts every URL to lowercase.

Turns www.example.com into https://www.example.com.
Removes utm_*, fbclid, gclid and similar click IDs.

How URLs are joined in the list.
Comma separated domains - leave empty to keep every domain.
Ready to extract.


Overview

Our URL Extractor scans any text, document content or HTML source you paste and pulls out every web address it can find in one click. It catches links written with a scheme (http://, https:// or ftp://), shorthand addresses that start with www., URLs with port numbers, query strings and fragments, and links buried inside HTML attributes such as href.

Once extracted, the list can be deduplicated, sorted alphabetically, cleaned of tracking parameters, filtered by domain and downloaded as a .txt file. Everything runs locally in your browser, so your data never leaves your device.


What this Tool Does?

The tool reads your input from left to right looking for anything shaped like a web address - a scheme followed by a valid domain, or a shorthand address starting with www. Sentence punctuation around links is ignored, so see https://example.com/page. still yields a clean https://example.com/page without the final dot.

Because it works on raw text, it happily processes forum exports, comment sections, CSV files, JSON blobs, Markdown documents or full HTML page sources. Lookalikes that are not links - bare domains like example.com written without www or a scheme, or mailto: addresses - are left alone.


Features and Settings

Detection engine: Catches scheme'd links (https://example.com/page.html), shorthand www addresses (www.example.com), ports (localhost:8080/admin), query strings (?page=2), fragments (#comments) and links inside HTML attributes like href="https://example.com". Pasting Docs at https://example.com/guide, mirror at www.mirror.example.net extracts both addresses cleanly.

Sort results (A to Z): Arranges the extracted URLs alphabetically instead of the order they appear in the text. With zoe.org, mike.net and anna.com in your input, the output lists anna.com, mike.net, zoe.org.

Unique only: Removes duplicate URLs so each one appears once, no matter how often it occurs in the text. Matching is case-insensitive, so https://X.com/page and https://x.com/page count as one entry, and the result message reports how many duplicates were removed. The option starts unchecked, so by default you get every URL in the order it was found.

Lowercase output: Converts every extracted URL to lowercase for consistent lists. Note that URL paths can be case-sensitive on some servers, so Example.com/Page and example.com/page may be different pages - uncheck this option if exact casing matters.

Add missing scheme: Rewrites shorthand www addresses into full clickable links. With this option checked, www.shop.example.com/deals becomes https://www.shop.example.com/deals. Unchecked (the default), shorthand addresses are extracted exactly as they were written.

Strip tracking parameters: Removes marketing click-tracking from query strings - utm_source, utm_medium, utm_campaign and friends, plus click IDs like gclid, fbclid, msclkid, dclid, twclid, igshid, mc_cid and mc_eid. For example https://shop.example.com/sale?utm_source=newsletter&utm_medium=email becomes https://shop.example.com/sale. Combine with Unique only so tracked variants of the same link collapse into one entry.

Domain filter: Enter one or more domains, comma separated, then choose Keep only to hold on to those domains or Exclude to throw them away. Domains match with or without the leading www., so filtering for github.com keeps both github.com/texttoolz and www.github.com/texttoolz. Leave the field empty to disable filtering.

Separator: Controls how the results are joined. New line puts each URL on its own row, Comma gives a.com,b.com, Space gives a.com b.com and Comma+Space gives a.com, b.com.

Upload a file: Load a .txt, .html, .csv or similar text file straight into the input area instead of copy-pasting. The file is read locally by your browser and never uploaded anywhere.

Load an example: Inserts sample text containing a mix of links - different schemes, a shorthand www address, ports-free marketing URLs with tracking parameters, a fragment, a duplicate and lookalikes that are not links - then extracts the list immediately using the default settings.


FAQs

FAQ 1: Is this URL extractor free?
Answer: Yes, it is completely free with no sign-up, and there are no limits on how much text you can scan or how often you can use it.

FAQ 2: Is my text or my extracted URLs stored anywhere?
Answer: No. The extraction runs entirely in your browser - nothing you paste, upload or extract is sent to or saved on any server. Once you close or refresh the page, everything is gone.

FAQ 3: Why was example.com not extracted?
Answer: A candidate must either start with a scheme (https://, http://, ftp://) or with www. Bare domains are skipped on purpose, because plain words like report.doc or file.zip look almost identical and would flood the results with false positives. Add a scheme or www. to the address and it will be found.

FAQ 4: Can this tool crawl a website by URL?
Answer: No, it works on text you provide rather than live web pages, because browsers block cross-site reading of other websites. To use it on a web page, open the page, view its source (Ctrl+U in most browsers), copy the markup and paste it into the tool.

FAQ 5: Why do some extracted URLs look different from the input?
Answer: Two options rewrite URLs on purpose: Add missing scheme prepends https:// to www addresses, and Strip tracking parameters removes click-tracking from query strings. Both start unchecked - uncheck whichever you do not want and the URLs stay exactly as they appear in your text.

FAQ 6: Does this tool also extract email addresses?
Answer: No, mailto: links and bare email addresses are ignored here. Use our Email Extractor for addresses - it catches them along with obfuscated forms and Gmail aliases.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.