Extract URLs — Find All Links and URLs in Any Text Instantly
Paste any text — a web page's source code, a document full of links, a backlink report, or a scraped sitemap — and this extract URLs tool pulls every hyperlink into a clean list instantly. Feed the output straight into a link checker, a crawler, or a spreadsheet for analysis. No hunting through hundreds of lines of source code manually. Runs entirely in your browser.
What Is Extract URLs?
A URL extractor scans any block of text and pulls out all web addresses — detecting http://, https://, and www. prefixed URLs and presenting them as a clean, copyable list. Paste web page source code, a document full of links, a social media post with embedded URLs, or any text containing web addresses, and the tool identifies and extracts every URL in one pass.
URL extraction is essential for link auditing, SEO analysis, broken link checking, and content migration. Manually finding all links in a long document or web page source is time-consuming and error-prone. This tool automates the extraction so you can immediately feed the link list into a link checker, a crawler, or a spreadsheet for analysis. It's particularly useful for auditing backlinks in exported reports, extracting references from research documents, and finding all linked resources in a web page's HTML.
Visit https://example.com or https://test.org→https://example.com
https://test.orgBefore & After: Extract URLs Examples
Real input → output pairs showing exactly what this tool does to your text.
| Input | Extract URLs Output |
|---|---|
Visit https://example.com/page for more. | https://example.com/page |
<a href="https://site.com/product?id=123">Link</a> | https://site.com/product?id=123 |
See www.example.com for details | www.example.com |
https://page.com/path#section-2 | https://page.com/path#section-2 |
Go to example.com today | (not extracted) |
Key Features
Matches URLs starting with http://, https://, and www. — covering the three formats that appear in real-world documents, HTML source, and plain text reports. Based on the RFC 3986 URI syntax, the same pattern used by link checkers like Screaming Frog and W3C Link Checker.
Extracts the complete URL — path, query string (?utm_source=email), and fragment (#section) — not just the domain. Critical for SEO auditing where UTM parameters and anchor targets are part of the link identity.
Paste raw HTML and every href="", src="", and data-url="" value is found — no need to strip markup first. Equivalent to BeautifulSoup's [a["href"] for a in soup.find_all("a", href=True)] but without needing a Python environment.
Zero server round-trip. Client-side JavaScript regex processes the full document in milliseconds. No file size cap, no login, no API key — the same pattern production crawlers use, available as a paste-and-copy utility.
When to Use Extract URLs
Use when harvesting links from articles, forum posts, emails, or log files for analysis or link-building.
Only URLs starting with http:// or https:// are extracted. Duplicate URLs appear just once.
Who Should Use This Tool?
Extract all URLs from pages, sitemaps, and backlink reports for broken link checking, redirect auditing, and link profile analysis.
Pull reference links from research documents, articles, and web pages into a structured list for source verification and citation management.
Extract links from HTML source code, API responses, and text files for crawling, monitoring, and content pipeline processing.
Key Use Cases
- →Extract all hyperlinks from a web page's HTML source for a broken link audit or site migration inventory.
- →Pull reference URLs from a research document or article to compile a bibliography or check all cited sources.
- →Extract URLs from a backlink export report to feed into a batch HTTP checker for redirect and 404 verification.
- →Collect all links from a social media post archive or exported thread for a link-click analysis project.
- →Extract image and asset URLs from an HTML page for a CDN migration or asset inventory project.
Extract URLs vs Other Formats
How this tool compares to related approaches and methods
| Method / Format | Best For |
|---|---|
| THISExtract URLs (this tool) | One-off URL extraction from documents, HTML source, sitemaps |
| Extract Emails | Extracting email addresses rather than hyperlinks from text |
| Screaming Frog SEO Spider | Live crawling and auditing a site's full URL structure |
| Python BeautifulSoup link scrape | Automated link extraction from fetched HTML in a script pipeline |
Extract URLs Rules: How It Works
- →URLs starting with http:// or https://
- →URLs starting with www. (without protocol)
- →Full URLs including path, query strings (?key=value), and fragments (#section)
- →URLs inside HTML attributes: href="...", src="..."
- ×Bare domains (example.com without http:// or www.) not detected
- ×Short URLs (bit.ly) extracted as-is — not expanded to destination
- ×Trailing punctuation (period at sentence end) may be included in URL
- ×Doesn't verify links are live — use a separate link checker after extraction
How to Use Extract URLs
- Paste or type your text into the Input Text box.
- The result appears instantly on the right.
- Click Copy to copy the output to your clipboard.
- Click Clear to reset and process new text.
This Converter vs Manual Methods
Why use this tool instead of doing it by hand?
| Method | Limitation |
|---|---|
| Ctrl+F "http" scan in browser | Manual copy; misses links buried in attributes and JavaScript strings |
| Python BeautifulSoup | Requires Python environment, requests library, and scripting knowledge |
| VS Code regex search (https?://\S+) | Requires regex knowledge; trailing punctuation often included in match |
| Screaming Frog / Sitebulb | Heavyweight tool; requires crawling permissions; not for quick paste tasks |
| ✓ BESTThis converter | None |
Common Mistakes & Pro Tips
- !Expecting extracted URLs to be valid and live — the extractor identifies URL patterns in text; it doesn't verify that the URLs are reachable, return 200 status, or haven't been replaced. Always follow up with a link checker to validate extracted URLs.
- !Not handling URL-ending punctuation — URLs at the end of sentences may be followed by a period that gets included in the extracted URL. "Visit example.com." might extract "example.com." with a trailing period. Review extracted URLs for trailing punctuation before using them.
- !Treating short URLs as final destinations — shortened links (bit.ly, t.co, ow.ly) are extracted as-is. The extractor cannot follow redirects or reveal the destination URL. Feed the extracted short URLs into a URL expander or make HEAD requests to resolve them before auditing the actual destinations.
Frequently Asked Questions
Everything you need to know about Extract URLs
What URL formats does the extractor detect?
+
The extractor detects URLs starting with http://, https://, and www. prefixes. A standard URL pattern includes the protocol, domain, optional path, optional query parameters, and optional fragment. Examples: https://example.com/path?param=value#section. URLs without a protocol or www prefix (like "example.com") are generally not extracted since they're indistinguishable from plain domain mentions in text.
Will it extract URLs from HTML anchor tags?
+
Yes — paste HTML source code and the extractor will find URLs in href="" attributes, src="" attributes, data-url attributes, and any other context where a URL pattern appears in the text. It detects the URL pattern regardless of surrounding markup. URLs wrapped in quotes within HTML will be found, though the quotes themselves won't be included in the extracted URL.
Does it extract URLs with query strings and fragments?
+
Yes — the extractor captures the full URL including query parameters (?key=value&key2=value2) and fragments (#section-name). URLs like https://example.com/page?utm_source=email&utm_medium=newsletter#pricing are extracted in their complete form, including all parameters. This is important for analytics tracking and link auditing where parameters are meaningful.
Can this handle obfuscated or shortened URLs?
+
It extracts URLs as they appear in the text. Short URLs (bit.ly/abc123, t.co/xyz) are extracted as-is — the tool doesn't expand them to their destination. For URL expansion, you'd need to make HTTP requests to the short URL and follow redirects. Our extractor gives you the raw URLs from the text; URL expansion and validation are separate operations.
How many URLs can the tool process at once?
+
There is no hard limit — the tool processes all URLs in the pasted text in a single pass. Documents with hundreds or thousands of URLs (like large sitemap XML files or full web page source archives) are handled. For very large inputs (thousands of URLs in megabytes of text), browser performance may slow slightly, but the results will be complete.
Can extracted URLs be checked for broken links?
+
Not directly — this tool extracts the URL list; link validation is a separate step. To check whether extracted URLs return HTTP 200 or are broken (404, 301 redirect), feed the list into a dedicated link checker. Online options include W3C Link Checker (validator.w3.org/checklink) and Broken Link Check (brokenlinkcheck.com). For bulk checking in Python: use the requests library with requests.head(url, allow_redirects=True) for each URL, or the httpx library for async batch checking.
How do I extract URLs in Python, JavaScript, and Google Sheets?
+
Python: import re; urls = re.findall(r"https?://\S+|www\.\S+", text). JavaScript: const urls = text.match(/https?:\/\/\S+|www\.\S+/g) || []. Google Sheets: =REGEXEXTRACT(A1, "https?://[^\s]+") extracts the first URL per cell — for all URLs in a range, a custom Apps Script loop is needed. For production URL extraction from HTML, Python's BeautifulSoup with [a["href"] for a in soup.find_all("a", href=True)] is more reliable than regex alone since it parses the DOM rather than matching raw text.