Extracts, parses, and cleans URLs, domains & text lists—strips HTML, bullets & protocols, decodes URLs, builds disavow files.

Bulk URL to Domain Extractor, Link Parser & Text List Cleaner

INPUT DATA

Search Operators: # line 1 filter; separate multiple terms with | for containsany / notcontainsany (e.g. a|b|c)
0 lines
Presets: Sponsor-Link - contact us to advertise!
Domain Options# ignored with search (unless Extract domains is on)
URL Options# ignored with search (except Extract & Strip params)
# keep only matching full URLs / IPs
Strip URL params: # keeps full URL/path (utm_*, gclid, fbclid...)
Output & Export Options
# hostnames only
# e.g. site:, ||...^
Other OptionsRaw lines (domain extraction off)
Trim after first:
Trailing /: # end of each line
Mode: Extract hosts & subdomains (strips protocol, www. & path) · ignore IPs · deduplicate

FREQUENTLY ASKED QUESTIONS

Extracting Domains, Comparing Lists & Formatting

What does URLtoDOMAIN do, and who is it for?

URLtoDOMAIN.com is a free bulk URL-to-domain extractor, link parser, list comparator, and text cleaner. It parses domains, root domains, subdomains, and full paths from standard URI schemes (http://, https://, ftp://, ssl://, file://, and //), pulls links or bare domains out of messy prose or raw HTML, subtracts or intersects two lists (A − B and A ∩ B), strips all ?query/#fragment strings or removes ad/campaign tracking parameters only (utm_*, gclid, fbclid, msclkid, etc.), validates hostnames and IPv4/IPv6 addresses, deduplicates or keeps only duplicate entries (2+), counts domain frequency, converts internationalized domains to or from Punycode (xn--), filters lines with keyword search operators, upgrades http:// to https://, decodes percent-encoded URLs, strips HTML tags/entities, bullets/numbering, custom delimiters, and extra whitespace, wraps lines with a custom prefix/suffix, numbers result lines, and formats output for Google Search Console disavow files, Apache/LiteSpeed .htaccess referer rules, or single-quoted code arrays.

It is built for webmasters, SEO professionals, writers, editors, developers, security analysts, and researchers who need to clean, compare, and export thousands of links or text lines quickly—with one-click workflow presets, bookmarkable setup links (Copy Setup Link), and a Send to Input ↑ button for multi-step pipelines.

How does List Compare / Subtract (A − B, A ∩ B) work?

Click Compare Lists ▾ in the top bar to open List B (hidden by default so single-list tasks stay uncluttered) and choose one of two comparison modes:

- Subtract (A − B): Removes every entry from List A that also appears in List B—ideal for subtracting your existing Google Disavow file from a fresh Search Console export so you only review new referring domains, or excluding known safe/internal URLs.
- Common (A ∩ B): Keeps only entries present in both List A and List B—ideal for finding overlapping referring domains across competitors, link audits, or sitemap exports.

How matching works:

- Automatic option-aware normalization: List B is parsed through the exact same active options as List A (root domain extraction, www. handling, URL param/tracking stripping, Punycode, delimiter trimming, HTML/bullet cleanup, etc.) and matched case-insensitively across UTF-8.
- Disavow-friendly: # comment lines in List B are ignored automatically, and domain: prefixes in List B are recognized even when using Root Domains or default extraction—so you can drop an existing disavow file directly into List B without reformatting it.
- Works with every output & filter option: Pair freely with Keep only duplicates (2+), Count occurrences & sort by frequency, Remove duplicates, Sort results (0 to Z), Wrap (prefix/suffix), Number each result line, .htaccess rules, or #= search operators (where #= filters List A while List B supplies the exclude/common set). Use Swap A ⇄ B anytime to flip the comparison direction (B − A) in one click.

How does root domain vs. subdomain extraction work (Public Suffix List)?

By default, URLtoDOMAIN extracts the full host while stripping www. and validating the TLD against the Public Suffix List (so https://a.b.google.co.uk/search?q=test becomes a.b.google.co.uk, while typos like .htm are dropped). When you check Root domain only (strip subdomains), the parser trims subdomains down to the registrable root domain (google.co.uk).

Matching uses both ICANN and private suffixes from Mozilla's official Public Suffix List (publicsuffix.org/list/public_suffix_list.dat), including multi-part and wildcard suffixes such as .co.uk, .com.au, *.compute.amazonaws.com, blogspot.com, and googleapis.com—so shared platform hosts like site.blogspot.com or fonts.googleapis.com keep their platform subdomain (preventing accidental disavows of an entire shared host). You can also preserve www. or filter/ignore IPv4 and IPv6 addresses.

How do I extract URLs, strip tracking parameters, or find duplicates?

Use Extract valid domains / subdomains from messy text to pull bare and linked domains out of tables, logs, prose, or HTML (even without http:// or www., and even glued inside non-Latin text). Use Extract URLs from messy text or raw HTML to pull explicit links (http(s)://, ftp://, //, and www.) directly in your browser—stripping HTML tags and trailing punctuation, decoding &, and ignoring JS // comments.

By default, Extract URLs from messy text or raw HTML keeps full PSL-validated URLs (including protocol, www., and path). Under URL Options, choose Strip URL params: All ?# to remove the entire query string and fragment, or Tracking only to strip ad/analytics tags (utm_*, gclid, fbclid, msclkid, ttclid, twclid, srsltid, mc_*, _ga, _gl, hsa_*, etc.) while preserving functional parameters like ?id=42, ?page=2, ?ref=main, and #fragments—or pair with any Domain Option or .htaccess to convert extracted links into domains.

Under Output & Export Options, check Keep only duplicates (2+ occurrences) to isolate repeated URLs or domains (pair with Count occurrences & sort by frequency for a 2+ frequency report like example.com (12), or uncheck Remove duplicates to view every repeated instance), add Number each result line for ranked reports, or click Send to Input ↑ below Results for multi-step pipelines.

How does IDN / Punycode (xn--) conversion work?

Use the two Punycode checkboxes under Output & Export Options to convert internationalized domain names (IDNs) cleanly without altering URL paths, ports, or query strings:

- IDN → Punycode (xn--): Encodes Unicode hostnames into RFC 3492 / UTS #46 ASCII form (e.g., https://café.com/menu → https://xn--caf-dma.com/menu, łąka.pl → xn--ka-ola7v.pl)—required for Google Disavow files, .htaccess rules, and DNS/firewall lists.
- Punycode → Unicode: Decodes xn-- hostnames back into readable UTF-8 (e.g., xn--mnchen-3ya.de → münchen.de) for manual backlink reviews and audits.

How do string search operators (#=) work?

Click any operator chip above the input box—or type one directly on line 1—to filter lines before formatting:

#=contains:{STRING} — keeps lines containing the text anywhere
#=notcontains:{STRING} — keeps lines that do not contain the text
#=containsany:{A|B|C} — keeps lines containing any pipe-separated term (e.g., #=containsany:.pl|.de|.fr)
#=notcontainsany:{A|B|C} — excludes lines containing any pipe-separated term (e.g., #=notcontainsany:facebook|twitter|linkedin|youtube)
#=startswith:{STRING} — keeps lines starting with the text
#=notstartswith:{STRING} — keeps lines not starting with the text
#=endswith:{STRING} — keeps lines ending with the text
#=notendswith:{STRING} — keeps lines not ending with the text

Things to consider:

- The operator must be on the first line (only one operator per run).
- For #=containsany: and #=notcontainsany:, separate multiple terms with | (up to 200 unique terms; empty segments and spaces around | are trimmed automatically). The other 6 operators treat | literally so you can still match an actual pipe character.
- All string searches are case-insensitive and skip URL format validation.
- Domain Options and URL Options (except Extract valid domains / subdomains from messy text—plus its compatible Root domain only, Keep 'www.', and Add 'domain:' prefix options when checked—Extract URLs from messy text or raw HTML, and Strip URL params) are dimmed and ignored during string search, while Output & Export Options (deduplicate, keep only duplicates, frequency count, lowercase, http:// to https://, Punycode, sort, remove comments, line numbering, custom prefix/suffix wrap, .htaccess), Other Options (URL decoding, HTML/bullet/space cleanup, delimiters, trailing slashes, quotes), and List Compare (A − B, A ∩ B) still apply—for example, you can filter specific HTML lines with #=contains:, strip their tags, and subtract an exclusion list in one pass.

How do I clean text lists, wrap lines (prefix/suffix), or bookmark custom presets?

Use Other Options to clean and reshape raw lines without domain extraction or IP/URL validation, and use Output & Export Options to format results in any mode (Domain, URL, or Raw):

- Wrap (prefix / suffix): Under Output & Export Options, prepend and/or append up to 64 bytes to every result line (skipping # comments)—works directly after domain or URL extraction in one pass, e.g. site: for Google index queries (site:example.com), https:// + /robots.txt, AdGuard/Pi-hole blocklists (||example.com^), or HTML/Markdown tags.
- Bookmarkable workflow URLs (Copy Setup Link): Click Copy Setup Link in the Presets bar to copy a shareable URL (e.g. /?opts=subdomains,punyenc,lowercase,alphabetize—including any active cut, pre/suf wrapper, or cmp compare mode) and update your address bar so you can save multiple 1-click bookmarks for recurring tasks.
- Trim after first delimiter (space/tab, ,, ;, |, :, #, or custom text): Strips everything after the earliest match (combinable across multiple delimiters, up to 64 bytes for custom text)—ideal for pulling the first column out of server logs or CSV/TSV exports, removing inline # comments, stripping :port values, or trimming title suffixes like | Brand or - Site.
- Trailing / (Add / Remove): Normalize trailing slashes at the end of every line in one click.
- Decode URL encoding: Safely decodes percent-encoded UTF-8 sequences (such as %20 or %C5%81%C3%B3d%C5%BA → Łódź) without turning + signs into spaces or injecting control characters.
- Strip HTML tags & decode entities: Removes <script>/<style> blocks, HTML comments, and tags while separating block/table cells cleanly and decoding HTML entities (&amp;, &quot;, &nbsp;)—ideal for extracting plain anchor text, headings, or CMS copy.
- Strip leading bullets & numbering: Removes list prefixes pasted from Word, Docs, PDFs, or Markdown (1., 2), 1.2., (a), IV., -, *, •, - [x]) without touching dates, decimals, or negative numbers.
- Collapse extra spaces & tabs: Normalizes multiple spaces, tabs, and Unicode spaces into a single space per gap.
- Single quotes + comma & Number each result line: Wrap each line as 'value', (without doubling existing quotes) for SQL IN (...) clauses, PHP arrays, or JavaScript lists—or check Number each result line to add sequential 1. , 2. prefixes (skipping # comments, and cleanly reversible with Strip leading bullets & numbering).

Google Disavow Files & .htaccess Blocking

How do I create or update a Google Search Console disavow file?

Export your incoming links from Google Search Console (Links → Top linking sites or External links), paste or drop the file above, and click the Google Disavow preset (checks Root domain only, Add 'domain:' prefix, and Remove duplicates—preserving any existing domain: lines too). If your list contains internationalized domains, also check IDN → Punycode (xn--). Download the UTF-8 .txt export to get clean domain:example.com lines (with any # comments preserved, or strip them via Remove '#' comment lines) ready for Google's Disavow Links tool, which supports UTF-8 .txt files up to 100,000 lines and 2 MB on URL-prefix properties.

Updating an existing disavow file: Click Compare Lists ▾, paste or drop your previous disavow file into List B with Subtract (A − B) selected, and submit—already-disavowed domains are removed automatically so you only review new links.

Important: Always review links manually before uploading a disavow file and include only spammy or unnatural links—disavowing healthy links can hurt rankings. Note that Microsoft retired the Bing Webmaster Tools Disavow Links feature in October 2023, so disavow files apply to Google Search Console.

How do I block referral spam or unwanted backlinks with the .htaccess generator?

Click the .htaccess Block preset (or check Generate .htaccess HTTP_REFERER rules to deny backlinks) to convert extracted domains, subdomains, or URLs into ready-to-paste Apache/LiteSpeed rules. Add IDN → Punycode (xn--) if blocking internationalized referers, or use Compare Lists (A − B) to exclude trusted domains before generating rules. The tool escapes regex metacharacters automatically, chains each entry with RewriteCond %{HTTP_REFERER} ... [NC,OR] (ending the final line with [NC]), and appends RewriteRule .* - [F] to return a 403 Forbidden response to matching referers. If your .htaccess does not already enable rewriting, uncomment RewriteEngine On in the generated header.

Limits, Privacy & About

Batch limits, invalid-line preview, auto-save, drag-and-drop, and .txt / .csv exports

There is no strict entry cap, though we recommend keeping each run under 250,000 lines (monitored by the live line counters above both input boxes) so processing stays fast and within server memory limits. You can drag and drop .txt, .csv, .log, or .html files directly onto Input A or List B (List A files 2 MB and larger switch to fast Direct File Mode automatically) and press Ctrl+Enter (or Cmd+Enter) to submit.

Invalid-line inspection: Any rejected lines are listed in a scrollable box capped at the first 100 samples—shown open for small lists (1–10 invalid lines) and auto-collapsed above 10 so your Results box stays immediately visible on large runs. Drafts up to 1 MB (for both Input A and List B) are auto-saved in browser sessionStorage so an accidental refresh will not lose your work, and automatically clear when you close the tab or click RESET. All output is UTF-8 encoded, ready to copy or download as .txt or .csv files (with large on-page previews capped at 50,000 results while exports always contain 100% of your data) before temporary exports are automatically and permanently deleted after several hours.

Why choose URLtoDOMAIN over other URL extractors?

Link lists often reveal client sites, internal paths, or sensitive campaigns. URLtoDOMAIN is built as a fast, zero-tracking utility so your data stays private:

ComparisonURLtoDOMAINOthers
Secure - HTTPS/TLS encryption; temporary export files automatically and permanently deleted✓⚠
Powerful - processes thousands of URLs in one run; supports multiple URI schemes, Public Suffix List root extraction, list comparison/subtraction (A − B, A ∩ B), HTML/domain extraction, tracking-parameter stripping, duplicate-only filtering, custom prefix/suffix wrapping, URL decoding, HTML/bullet/space cleanup, custom delimiter trimming, frequency counts, line numbering, Punycode, IPv4/IPv6, string search, and bookmarkable workflow links✓⚠
Legally Protected - service based in the U.S. and bound by strong laws and regulations✓⚠
No Tracking - no third-party cookies, no external JavaScript, no embedded trackers✓⚠
No Conflict of Interest - we are not an SEO or data-mining company; we do not store, share, sell, or analyze your links✓⚠
URLtoDOMAIN Advantage✖
Reporting a parsing issue, Terms of Use & Privacy Policy

If a valid URL is parsed unexpectedly, click Report a problem below the Results box so we can inspect that edge case and improve the parser.

- Privacy: The tool is anonymous and does not permanently collect or store submitted URLs (except samples explicitly sent via the Report a problem link).
- Abuse prevention: Basic operational metrics (such as request counts or IP addresses) may be used to maintain service stability, and abusive automated traffic may be blocked.
- Contact: Questions, suggestions, or inquiries can be sent to info ~ urltodomain.com.