URL extractor
Extract every http and https URL from text, HTML, emails or documents and get a clean, counted list of links. Free online URL and link extractor.
Pull every link out of a block of text
The URL extractor scans whatever you paste, whether that's plain text, an email, a chat log, a document or raw HTML, and pulls out every web address that starts with http:// or https://. You get a clean list and a count of how many links were found.
It's a big time-saver for SEO audits, content reviews, research and migrations, when you need to see every link a page or document contains without clicking through it.
Because it reads the text pattern, it works on page source code too, catching links in href and src attributes.
How to use the url extractor
- Paste the text or HTML.
- Submit to extract the URLs.
- Review the count and list.
- Copy the links for your spreadsheet, crawler or report.
Examples
Links in a paragraph
Input:
Read https://mybotsy.com/blog, then http://example.org/a?b=1&c=2. Also see www.example.net and (https://en.wikipedia.org/wiki/URL).
Output:
https://mybotsy.com/blog
http://example.org/a?b=1&c=2
https://en.wikipedia.org/wiki/URL
Count: 3. Commas, periods and closing brackets after a link are left out, and the query string stays intact. www.example.net is skipped because it has no http:// or https://.
Links in HTML source
Input: <img src="https://example.com/logo.png"> <a href="/about">About</a>
Output: https://example.com/logo.png
The relative link /about has no domain, so it isn't listed.
A tracking link
Input:
Book now: https://example.com/offer?utm_source=newsletter&utm_medium=email#pricing
Output:
https://example.com/offer?utm_source=newsletter&utm_medium=email#pricing
Parameters and the #fragment are kept, so you can paste the result straight into the URL parser to read each part.
Common uses
- Listing every outbound link in an article or page source.
- Gathering sources and references from research notes.
- Collecting links shared in a chat or email thread.
- Building a list of URLs to redirect or check during a website migration.
- Auditing links in a newsletter before you send it.
Tips and things to know
- Links without
http://orhttps://(likeexample.comon its own) aren't picked up. - Remove duplicates with the duplicate lines remover.
- Check where each link really goes with the URL redirect checker, and break a link into parts with the URL parser.
- Encoded links can be made readable with the URL decoder.
Edge cases and limitations
- Only http and https links count.
ftp://,mailto:andtel:links are ignored. - The host needs at least one dot, so
http://localhost:3000isn't found. - Repeated links appear once per occurrence; dedupe them afterwards.
- A link that ends in a period or comma loses it. That's usually right, but a URL that really ends in a dot will be cut.
Frequently asked questions
Does it extract links from HTML?
Yes. Paste the HTML source and it finds the http and https URLs inside it.
Why are some links missing?
Only links that start with http:// or https:// are detected. Relative links like /about don't include a domain.
Can I extract links from a PDF?
Copy the text from the PDF and paste it here.
Does it check whether links work?
No, it only extracts them. Use the redirect checker to test individual links.
Why is a link cut off at the end?
The extractor stops before trailing punctuation such as a period, comma or closing bracket, because those usually belong to the sentence. If the real URL ends in one of those characters, add it back by hand.
Related tools
- Email extractor: Extract email addresses from any kind of text content.
- URL parser: Parse details from any URLs.
- URL redirect checker: Check for 301 & 302 redirects of a specific URL. It will check for up to 10 redirects.
- Duplicate lines remover: Easily remove duplicate lines from a text.
- URL decoder: Decode URL input to back to a normal string.
Popular free tools
Create strong, random passwords in one click. Pick the length and include uppercase, lowercase, numbers and symbols. Free, no signup.
Convert text to UPPERCASE, lowercase, Sentence case, Capital Case, camelCase, PascalCase, snake_case, CONSTANT_CASE, dot.case or param-case. Free.
Create a WhatsApp click-to-chat link with your phone number and a prefilled message. Add it to your site, bio, ads or QR codes. Free wa.me generator.
Upload a QR code image or screenshot and read the link or text inside it, no phone needed. Check where a QR code leads before you open it. Free.
Look up the DNS records of any domain: A, AAAA, CNAME, MX, NS, TXT and SOA. Check email, SPF, verification and nameserver settings for free.
Split any URL into its parts: scheme, host, path and query parameters. Inspect tracking links, UTM tags and API endpoints. Free online URL parser.