Home › Text Tools › Extract Domains from URLs

Extract Domains from URLs

Paste a list of links, a backlink export or any text that mentions websites, and get a clean list of domains. Keep full hostnames like blog.example.com or reduce everything to root domains like example.com (co.uk and other two-part endings handled), with duplicates removed and a count for each domain.

Last updated:

Extract
Enter your values to see the result.
Advertisement
Advertisement

How to use the Extract Domains from URLs

  1. Paste your URLs or any text containing links into the box.
  2. Choose what to extract: full hostnames or root domains.
  3. Set the options for www, duplicates, counts and email addresses.
  4. Pick a sort order and format (one per line, comma-separated or CSV).
  5. Click Copy results to copy the domain list, or download the count table as CSV.

Hostname vs root domain: examples

URLHostname (www stripped)Root domain
https://www.example.com/page?id=7example.comexample.com
http://shop.example.com:8080/cartshop.example.comexample.com
https://news.bbc.co.uk/sportnews.bbc.co.ukbbc.co.uk
https://user.github.io/project/user.github.iouser.github.io
mailto:[email protected]mail.company.com.aucompany.com.au
http://192.168.1.10/admin192.168.1.10192.168.1.10

How a URL is taken apart

A web address follows the pattern scheme://user@host:port/path?query#fragment (defined in RFC 3986). Only the host identifies the website, so the tool drops the scheme, any login part before @, the port, and everything from the first /, ? or #. Host names are not case-sensitive, so they are lower-cased before counting: Example.COM and example.com are the same domain.

To find the root domain, the tool reads the host from the right. The last label is the top-level domain (.com, .org, .de). If the last two labels form a known public suffix such as co.uk, one more label is kept. Everything to the left of the root (like www, blog or shop) is a subdomain.

Common uses

  • Backlink audits: turn thousands of linking URLs into a list of unique referring domains and see which sites link most.
  • Disavow or block lists: collect root domains to add as domain: entries or firewall rules.
  • Analytics and referrer clean-up: group referral URLs by site.
  • Email lists: see which companies or providers your contacts use.

Frequently asked questions

What is the difference between a hostname and a root domain?

The hostname is the full name of the server in the URL, such as blog.example.com or www.example.com. The root (registrable) domain is the part someone actually registers, such as example.com. Choose root domain mode when you want to know which websites link to you, and hostname mode when subdomains matter.

How does it handle domains like bbc.co.uk?

Some country endings have two parts (co.uk, com.au, co.jp, com.br and many more). The tool keeps three labels for those, so news.bbc.co.uk becomes bbc.co.uk instead of the meaningless co.uk. It also treats shared hosting suffixes such as github.io, pages.dev and blogspot.com as endings, so each site on them stays separate.

Do the URLs need to start with http:// or https://?

No. Links like www.example.com/page, example.org/about and even domains written inside a sentence are recognised. URLs with other schemes such as ftp:// work too.

Will it pick up email addresses?

Yes by default: [email protected] gives example.com. Untick “Include domains from email addresses” to skip emails and only count web links.

Why is a line marked as having no domain?

The line did not contain anything that looks like a host name with a valid ending, for example plain words or a file name like report.pdf. Those lines are listed so you can check them; they do not stop the rest of the list from being processed.

Is the root domain list 100% accurate for every country?

It covers the common two-part endings and popular hosting platforms, which handles the vast majority of real link lists. The full Public Suffix List has thousands of rare entries, so a very unusual regional ending may be shortened to two labels. Hostname mode always keeps the exact host.

Is my URL list uploaded anywhere?

No. The extraction runs with JavaScript in your browser, so client lists, backlink exports and private links never leave your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Sitemap URL ExtractorExtract every URL from a sitemap.xml or sitemap index, validate it and export to CSV or TXT.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Extract Phone NumbersFind phone numbers in any text, normalize them to E.164, remove duplicates and export CSV.Plural GeneratorConvert English nouns from singular to plural and back, irregulars included, one word per line.Remove Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.Remove Text FormattingPaste rich text from Word, Google Docs or the web and get clean plain text instantly.Smart Quotes ConverterConvert curly quotes, dashes and ellipses to straight ASCII, or straight quotes to typographic ones.Text to HTML ConverterTurn plain text into clean HTML: paragraphs, line breaks, links, lists and escaped entities.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.WhatsApp Text FormatterFormat WhatsApp messages with bold, italic, strikethrough, monospace, lists and quotes, then copy.Word CombinerBlend two or more words into portmanteaus, compound and clipped names for brands and wordplay.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Word Wrap ToolWrap text at any column width with hard line breaks, indents and prefixes, or unwrap it again.Daily Affirmation GeneratorGet random positive affirmations by theme; save favorites, copy them or make an image card.Business Plan GeneratorFill in a guided form and get a formatted business plan with financial tables, as Word or PDF.Keyword Match Type ConverterTurn a keyword list into broad, "phrase", [exact] and negative match types for PPC ads.Discord Text FormatterFormat Discord messages with bold, spoilers, headers, quotes, lists and code blocks, with live preview.DNA Reverse ComplementGet the reverse, complement or reverse complement of DNA/RNA, FASTA and IUPAC codes supported.Filter Lines Containing TextKeep or remove lines that contain words or match a pattern, with match counts and regex.Focus Reading ConverterBold the first letters of every word for faster, focused reading. Copy as rich text or HTML.Memo GeneratorWrite a business memo in standard To/From/Date/Subject format, then print, copy or save as .docx.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.Pros and Cons List MakerWeigh a decision with a weighted pros and cons list, a score, a verdict and easy export.Remove Numbers from TextStrip all numbers and digits from text, keep MP3-style words or ordinals, and tidy the spaces.Return Policy GeneratorCreate a return and refund policy for your store as text or HTML, with a refund example.Screenplay FormatterType a script in plain text (Fountain) and get a properly formatted screenplay, page count and PDF.Word ChangerSwap words for synonyms in your text, then click any word to cycle through alternatives.Words That End WithFind English words ending in any letters or suffix, filtered by length and sorted by score.Annotated Bibliography GeneratorBuild an APA or MLA annotated bibliography with hanging indents and download it as DOCX.EPUB to Text ConverterExtract plain text from EPUB e-books, pick chapters, count words and download a TXT file.Extract Dates from TextFind every date in text, in any common format, and convert them all to one format you choose.Extract Text Between DelimitersPull out every piece of text between brackets, quotes, HTML tags or your own start and end markers.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.
See all 96 Text Cleaning & Formatting →