Extract URL

Extract valid web URLs from pasted text and summarise their domains and protocols.

freeworks offlinenothing uploaded
ToolURL Extractor
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Candidate strings are trimmed, checked as HTTP(S) or optional www addresses, and passed through the browser URL parser before they are returned. Duplicate URLs are collapsed for the unique view while the original match list preserves the requested output mode.

  • URL parsing validates structure but does not prove that a host exists or that a page is safe.

Worked example

Extract URLs from text
Find all web links in a paragraph
Input
											Visit https://example.com or http://docs.example.com/guide for more info.
										
Output
												URLs: https://example.com, http://docs.example.com/guide
Count: 2
Unique: https://example.com, http://docs.example.com/guide
Domains: example.com, docs.example.com
Protocols: https, http
											

When to use this

README audits, crawler seed lists, and incident reports extract web links.

Edge cases

  • A sentence-ending full stop is removed before parsing.
  • Malformed hosts are rejected rather than treated as links.
  • A protocol-less www address is validated with a temporary HTTPS scheme.

References