Report

Help us improve this tool

URL Extractor

Extract every URL and domain from text with automatic cleanup, unique filtering, alphabetical sorting, link statistics, and copy or download of the results.

O M T

What the URL Extractor Does

The URL Extractor pulls every link out of a block of text and lists them cleanly, one per line. Paste an email thread, a chat export, a log file, or a scraped page, and the tool finds full links, www addresses, and bare domains such as docs.example.com. It also counts how many links were found, how many are unique, which domains they point to, and which protocols appear.

Everything happens in your browser. Your text is never uploaded, so it is safe to paste internal notes, customer emails, or private documentation into the extractor.

How to Extract URLs from Text

  1. Paste text containing links into the left panel, or load the sample to try it out.
  2. Review the extracted URL list and the four statistics: total found, unique URLs, unique domains, and protocols.
  3. Switch on "Unique only" to collapse repeated links, or "Sort alphabetically" to order the list.
  4. Copy the list or download it as a .txt file for use in your workflow.

What Counts as a URL

The extractor recognizes three shapes of link. Protocol links like https://northwind-labs.com/start are matched in full, including paths and query strings. Addresses that begin with www are captured even without a protocol prefix. Bare domains such as status.example.com are matched when they end in a common top level domain, including com, org, net, io, dev, app, ai, and many country codes. Email addresses are deliberately ignored, so a contact line like [email protected] will not pollute the list.

Cleanup and Filtering Options

  • Trailing punctuation: periods, commas, and closing brackets stuck to the end of a link are trimmed automatically.
  • Unique only: keeps one copy of each URL so a link repeated ten times appears once.
  • Sort alphabetically: orders the output A to Z, which makes it easy to eyeball duplicates across different spellings.

Practical Uses

  • Collect source links from research notes before building a bibliography.
  • Audit marketing copy for broken or outdated domains.
  • Pull endpoints from API documentation and log dumps.
  • Extract every link from an email thread when migrating content.
  • Build a quick list of resources to check with a link checker.

Related Tools

To pull other data from text, the Email Extractor grabs addresses and the Number Extractor picks out digits. To take a single link apart, use the URL Parser. Once you have a list, the Broken Link Checker verifies which links respond, and the Sitemap URL Extractor handles links that come from an XML sitemap. If you need a custom pattern instead, the Regex Tester lets you experiment with your own rules.

Frequently Asked Questions

Is my text uploaded anywhere?

No. Extraction runs entirely in your browser with JavaScript. Nothing is transmitted to a server, and the tool keeps working after the page loads even without an internet connection.

Does it find links without http or https?

Yes. Addresses that start with www are captured as-is, and bare domains like docs.example.com are matched as long as they end in a recognized top level domain such as com, org, net, io, dev, or a common country code.

Why is an email address not listed as a URL?

Email addresses contain a domain but are not links. The extractor detects the @ sign before a domain and skips it, so a text containing both contact addresses and links keeps the two separate.

What happens to punctuation at the end of a link?

Trailing periods, commas, semicolons, and closing brackets are trimmed, because they are almost always part of the surrounding sentence rather than the URL. The cleaned link is what appears in the output.

How is the unique count calculated?

Total found counts every match, including repeats. Unique URLs collapses matches that are identical character for character, and unique domains counts the distinct hostnames after removing a leading www.

Can I download the list?

Yes. The output panel includes copy and download buttons, and the download saves a plain urls.txt file with one link per line. Turn on sorting first if you want the file alphabetized.