HTML Link Extractor (href/src)
Free online tool to bulk-extract href and src links from HTML source, with relative-to-absolute URL conversion and deduplication.
Tool Guide
About the HTML Link Extractor
This tool extracts href links from `<a>` tags and src links from `<img>`/`<script>` and similar tags in HTML source, and can automatically convert relative paths into absolute URLs.
Key Features
1. Multiple Extraction Modes
Extract href only, src only, or both at once, depending on what you need.
2. Relative-to-Absolute Conversion
Enter a base URL and the tool automatically completes relative links into full absolute addresses.
3. Automatic Deduplication
Optionally remove duplicate links so they don't clutter your downstream processing.
How to Use
Step 1: Paste the HTML source into the input box.
Step 2: Choose the extraction type (href / src / both) and optionally enter a base URL.
Step 3: Review the extracted links and copy them with one click.
Use Cases
Useful for web scraper development, broken-link checks, collecting links before bulk downloading resources, and SEO backlink analysis.
FAQ
What happens if I don't enter a base URL?
The links are kept as-is (relative or absolute) with no path conversion.
Which tags are supported?
The href attribute of `<a>` tags, and the src attribute of `<img>`, `<script>`, and similar tags.
Related Tools
Base64 Encoder
Encode to Base64
Base64 Decoder
Decode Base64
Base64 Encoder/Decoder
Encode and decode text with Base64.
URL Encode/Decode
Online URL encoding and decoding tool supporting UTF-8 and GBK charsets.
URL Decode
Online URL encode and decode tool
Unicode Escape Encoder
Convert Chinese text to Unicode hex, HTML entity, and other escape formats