Extract URLs

Extract HTTP and HTTPS links from text, filter by exact hostname, remove duplicates, and copy or download a plain-text URL list.

← Developer Tools

Extract HTTP and HTTPS URLs from pasted text, remove duplicates, filter by exact hostname, and copy or download a list with one URL per line.

DeveloperURL extractionBrowser processing

Exact hostname only. Subdomains are separate; leave blank to include all hosts.

Result: Paste text, then extract URLs.

What this tool extracts

The extractor looks for explicit http:// and https:// URLs. It does not automatically treat bare domains such as example.com as URLs because that can create more false positives in ordinary text.

Parsing limitation

URLs embedded in unusual markup, escaped strings or malformed text can require manual cleanup. Common sentence punctuation at the end of a detected URL is trimmed.

Privacy

Extraction happens in your browser. The tool does not visit or verify the URLs it finds.

How to extract a list of links

  1. Paste notes, a log excerpt or plain HTML source containing complete HTTP or HTTPS addresses.
  2. Keep Remove duplicates enabled for one copy of each exact address.
  3. Use Trim trailing punctuation for ordinary prose. Turn it off if punctuation at the end is part of a URL you need to preserve.
  4. Select Extract URLs, review the list and use Copy Results or Download TXT. Changing input or options clears the previous result; extract again before exporting. Reset clears the source, filter and output.

Example and cleanup rules

Text containing https://example.com/a twice produces one result when duplicate removal is enabled. With it disabled, both occurrences are kept in their original order. Addresses with different paths, query strings, fragments or letter casing are not merged automatically.

Cleanup removes common sentence endings and unmatched closing brackets. Balanced parentheses inside a URL are retained. These rules are heuristics: a period or question mark can sometimes be a meaningful part of an address. Turn cleanup off and review the original text when exact preservation matters.

Keep links from one hostname

Enter example.com in the optional filter to keep URLs whose parsed hostname is exactly that value. It also matches that hostname on different ports, but excludes sub.example.com, www.example.com and notexample.com. Enter a subdomain explicitly when that is the host you need. Hostname matching is case-insensitive and uses the browser URL parser for international domain names.

The filter accepts a hostname only, without a scheme, port, path or IPv6 literal. It does not change the extracted addresses. Leave it blank to retain all valid HTTP/HTTPS matches, including IPv6 URLs. The result message shows valid occurrences, filter matches and exact duplicates removed. TXT export uses UTF-8 text with one URL per line, keeping the original order.

Common questions

Will this find links in a website?

It extracts from text you paste. It does not crawl a website, fetch a page, follow redirects or check response codes. Paste the relevant source text if you need to inspect it.

Why is a bare domain or relative path missing?

The detector requires an explicit HTTP or HTTPS prefix. A bare domain, email address, relative path or other protocol is outside its scope. Detected strings must also parse as URLs with a host, but that does not prove the host exists.

What about HTML entities and escaped JSON?

This is not a full HTML or JSON parser. Encoded separators such as & and escaped slash sequences can require manual decoding first. Check extracted query strings before using them in another system.

Input is limited to 100,000 characters. For related tasks, use Markdown Editor, Regex Tester or Developer Tools.

Related tools