Toolvist

Extract URLs from Text

Extract all URLs from any block of text.

Free Online Extract URLs Tool

The Extract URLs tool finds every web link inside a block of text and lists them one per line. Useful for pulling links out of articles, emails, or scraped content — all processed.

A link list pairs naturally with the Broken Link Checker List workflow, and Remove Duplicate Lines strips the repeats before you review. To turn the URLs back into readable markdown, the HTML to Markdown Converter does the opposite job.

How to use the Extract URLs

  1. 1 Paste the text, markup, or document containing the links you want pulled out.
  2. 2 Choose whether to include bare domains such as example.com or only full URLs with a scheme.
  3. 3 Enable deduplication if the same link appears many times in the source.
  4. 4 Copy the list, or the markdown-formatted variant if you need links for a document.

Auditing where a page sends people

A link inventory is the starting point for almost every onsite audit. Extracting every URL from a page tells you how many external destinations it carries, which ones are competitors rather than references, and whether a count you thought was modest is actually twenty-five. Doing this by eye on a long page is unreliable, because links embedded in tables and footers are easy to overlook.

It also helps when you are consolidating content. If you are merging four blog posts into one, extracting the URLs from all four gives you the union of everything they cited, which is a much faster way to build a reference list than reading them again.

Cleaning the extracted list

  • Turn on deduplication — navigation and footer links repeat on every page and will dominate the output otherwise.
  • Sort the list so links to the same domain sit together, making the external-link count obvious.
  • Watch for tracking parameters; the same destination may appear three times under different campaign tags.
  • Check for unresolved relative paths, which indicate a page that will break if moved.

Frequently asked questions

Should bare domains count as URLs?

Only if you switch that option on. Text such as "visit example.com" contains a domain but not a fully qualified URL, since there is no scheme and no path. Treating it as a link produces false positives on filenames and version numbers, so the stricter full-URL mode is the sensible default and the relaxed mode is for cases where you know the text is a link list.

Why are some links shown without their trailing punctuation?

Because sentence-ending periods and commas are stripped so the URL stays usable. A link at the end of a sentence is written "see https://example.com/page." in prose, and pasting that into a browser produces a 404 on a path ending in a dot. Trimming the punctuation gives you a link that actually resolves.

Can this extract links from HTML source?

Yes, and it works on the raw markup without needing to render the page. It finds both href attribute values and URLs written in plain text, so pasting a saved page or a view-source dump is an efficient way to inventory every destination a page points at. Note that it reports the target, not the anchor text.

Related Text Tools

Browse all Text Tools →

You might also need

Tools from other categories that people pair with the Extract URLs:

Browse the full tool directory →