Boneyard Tools

Extract URLs and Links From Text

Paste any block of text and this tool lists every web address hidden inside it, one per line. It matches full http and https links along with bare addresses that start with www., then strips the stray full stops and brackets that sentences leave behind. Turn on remove duplicates or sort A to Z to tidy the list before you copy it.

How to extract URLs from text

  1. Paste your text, email, log or document into the 'Your text' box.
  2. Leave 'Remove duplicates' checked to keep only the first copy of each link, or uncheck it to keep every occurrence.
  3. Tick 'Sort A to Z' if you want the links ordered alphabetically instead of in the order they appear.
  4. Watch the count under the 'URLs' heading update as the extracted links fill the lower box.
  5. Click Copy to put the clean, one-per-line list on your clipboard.

Examples

Pull two links from a sentence

Visit https://example.com and http://boneyard.io/tools for more.
https://example.com
http://boneyard.io/tools

Trim trailing punctuation and wrapping brackets

Docs at (https://example.com/path) and www.site.org.
https://example.com/path
www.site.org

Remove duplicates while keeping the first casing

See https://Example.com then https://example.com again.
https://Example.com

Frequently asked questions

What link formats are detected?

Any text that begins with http://, https:// or www. is captured, including the path, query string and fragment that follow. A match ends at the first space, angle bracket, straight quote or apostrophe, so a link that runs to the end of a line is grabbed in full.

Does it add https:// to bare www links?

No. A www. address is returned exactly as written, without a scheme bolted on. If you need a clickable link you can add http:// or https:// yourself after copying.

Why is a trailing full stop or bracket removed?

Sentence punctuation that sits right after a link, such as a period, comma, semicolon, exclamation mark or closing quote, is trimmed so you get the bare address. A closing bracket is only removed when the link has no matching opening bracket, so a Wikipedia style path like /wiki/Foo_(disambiguation) keeps its parenthesis.

How does remove duplicates decide what is a duplicate?

Two links are duplicates when they match after lowercasing, so https://Example.com and https://example.com are treated as one. The first spelling you pasted is the one kept, so its original capitalization survives.

What order are the URLs listed in?

By default they appear in the order they occur in your text. Turn on 'Sort A to Z' to reorder them alphabetically using a case-insensitive comparison, which groups links from the same site together.

Will bare domains or email addresses be picked up?

Only links starting with http, https or www. are matched. A bare domain like example.com with no www. prefix is skipped, and email addresses are ignored because they do not start with those markers. Use a dedicated email extractor for addresses.

Does it check that the links actually work?

No. The tool recognizes the shape of a web address in your text but never visits it, so broken, private or made-up links are listed just the same. It reports what looks like a URL, not what is reachable.

Is there a limit on how much text I can paste?

There is no fixed cap. Extraction runs in your browser, so the practical ceiling is your device memory, and even long logs or exported pages scan almost instantly.

Is my text private?

Yes. Everything runs locally in your browser and nothing is uploaded to a server, so pasted links and the text around them never leave your device.

Learn more

Related tools