Home › Text Tools › URL Extractor

URL Extractor

Paste plain text, an email, a document or a page's HTML source and get a clean list of every link in it. Remove duplicates, keep only http and https links or certain domains, strip tracking parameters and export the result.

Last updated:

Filters
0links shown
0found in total
0domains

Domains

Advertisement
Advertisement

How to use the URL Extractor

  1. Paste your text or HTML into the box. Use Choose file to load an .html, .txt, .csv or other text file.
  2. Optionally add a base URL such as https://example.com/blog/ to turn relative links like /about into full URLs.
  3. Pick the filters: which protocols to keep, domains to include or exclude, and whether to remove duplicates or tracking parameters.
  4. Click a domain in the summary to keep only links to that site.
  5. Copy or download the list as plain lines, Markdown, HTML or CSV.

How links are detected

  • Links in text: anything that starts with http://, https://, ftp:// or www. and runs until a space, quote or angle bracket. Each candidate is checked with the browser's URL parser, so broken fragments are dropped.
  • Trailing punctuation: a final . , ; : ! ? or quote is treated as part of the sentence, not the link. Brackets are removed only when unbalanced, so (see https://example.com) loses its ) while /wiki/Mercury_(planet) keeps it.
  • HTML attributes: href, src, srcset, action, poster and data-src values are read, & is decoded to &, and relative paths such as /blog/post-1 or ../img/a.png are resolved against the base URL you enter, the same way a browser does. Anchors (#top), mailto:, tel: and javascript: links are skipped.
  • Duplicates: two links are the same when the full URL matches after cleaning. http:// and https:// versions of a page count as different links, because they are.

Common tracking parameters that can be removed

ParameterAdded by
utm_source, utm_medium, utm_campaign, utm_term, utm_contentGoogle Analytics campaign tagging (used by most newsletters and ads)
gclid, gbraid, wbraid, dclidGoogle Ads and Display click IDs
fbclidFacebook and Instagram outbound links
msclkidMicrosoft Advertising (Bing Ads)
mc_cid, mc_eidMailchimp campaign and subscriber IDs
igshid, twclid, yclidInstagram shares, X (Twitter) ads, Yandex ads
_hsenc, _hsmi, mkt_tokHubSpot and Marketo email tracking

Other parameters such as id, page or q are left alone because they usually change what the page shows.

Frequently asked questions

How do I extract all links from a web page?

Open the page, view its source (Ctrl+U or Cmd+Option+U), copy everything and paste it here. The extractor reads every href and src attribute as well as links written in the text. Enter the page address as the base URL so relative links become full URLs.

Which kinds of links are found?

Links that start with http://, https://, ftp:// or www., plus href, src and srcset attributes in HTML. With the bare-domain option on it also finds addresses written without a prefix, such as example.com/page, for common top-level domains.

How does it handle punctuation at the end of a link?

A period, comma, colon, quote or closing bracket at the end of a link is usually sentence punctuation, so it is removed. Closing brackets that belong to the URL, as in Wikipedia links like /Mercury_(planet), are kept because they are balanced.

What does removing tracking parameters do?

It deletes query parameters that only exist for analytics, such as utm_source, utm_medium, utm_campaign, fbclid, gclid and msclkid, so the same page shared from different campaigns becomes one clean link.

Does the tool visit or check the links?

No. It only reads the text you paste. Nothing is fetched or uploaded, so it is safe to use with private documents and internal links.

Can I extract only links to one website?

Yes. Type the domain in Only these domains, for example example.com, or click it in the domain summary. With the subdomain option on, links to blog.example.com are included too.

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

Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.CSS Selector TesterTest CSS selectors on your HTML: highlighted matches, match count and specificity.Extract Links from PDFList every hyperlink and URL in a PDF with page numbers; copy them or export as CSV.Meta Tag AnalyzerPaste page HTML to audit title, description, canonical, robots, Open Graph and hreflang tags.Query String to JSONConvert URL query strings to JSON with nested brackets and arrays, and JSON back to a query string.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.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.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.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.
See all 96 Text Cleaning & Formatting →