0
Total Links Found
0
Unique Links Found

Extractor Options

Extract Links From:

Filters & Sorting

About the URL & Link Extractor Tool

We built this URL & Link Extractor as a powerful tool for anyone who needs to pull links from a block of text or a webpage's source code. Whether you're an SEO specialist gathering links for an audit, a developer checking a site's resources, or a researcher collecting sources, this tool automates the entire process. It can handle both structured HTML and plain text, finding every link it can.

Our tool is smart enough to handle relative URLs. Just provide a "Base URL" (like your website's homepage), and it will automatically convert all partial links (like `/about-us`) into full, absolute URLs. With options to filter, sort, and group the results, you can get a clean list of links formatted exactly how you need it.

How to Use the Tool

  • Paste your text or HTML source code into the "Input" box on the left.
  • If your code contains relative URLs, enter the full base URL in the options panel to resolve them correctly.
  • Use the options to customize the output: select which HTML tags to extract from, remove duplicates, sort the list, or group the links by domain.
  • The extracted links will appear in the "Output" box on the right, updating in real-time.
  • Use the buttons to copy the final list to your clipboard or clear the input to start over.

Frequently Asked Questions

What is a link extractor?

A link extractor is a tool that automatically scans text or code to find and pull out all the URLs (Uniform Resource Locators). It saves you from having to manually find and copy every link, which is especially useful for large documents or entire web pages.

How does it handle relative vs. absolute URLs?

You can provide a "Base URL" in the options. The tool will use this to convert any relative links (e.g., `/contact`) into absolute, clickable links (e.g., `https://your-site.com/contact`). If you don't provide a base URL, it will use a default one, but for best results, you should always provide the correct one.

What types of links can this tool find?

Our tool uses a two-step process. First, it parses the input as HTML and can specifically extract links from the `href` attribute of a and link tags, and the `src` attribute of img and script tags. Second, it scans the entire text with a regular expression to find any standalone URLs that might be written in plain text or comments.

What does "Group by Domain" do?

This is a handy feature for analysis. When checked, it organizes the output list, grouping all the extracted links under their respective domain names (e.g., all `codeshack.io` links together, all `google.com` links together, etc.). This makes it easy to see which domains you are linking to.

Is the text I enter private?

Yes. All link extraction is performed in your web browser. None of the text or HTML you enter is ever sent to our servers, so your information remains completely private and secure.

Tools