How to use
- Paste in your HTML source code.
- Click "Extract".
- Every href/src attribute link is listed.
🎯 Use Cases
- Pull a list of external links from a page's source
- Check for broken image paths (src)
- Understand a link structure before crawling
Example
Input
<a href="https://example.com/">Home</a> <a href="/about">About</a> <img src="/img/logo.png" alt="Logo"> <a href="/about">About (dup)</a> <script src="/js/app.js"></script>
Output
https://example.com/ /about /img/logo.png /js/app.js
Links are extracted href-attributes first, then src-attributes, and duplicates are removed automatically. The /about path appears twice in the input but only once in the output, for 4 links found in total.
Extracted attributes
Finds link-bearing attributes in pasted HTML and lists them cleanly.
| Attribute | Common tags |
|---|---|
href | <a> links, <link> stylesheets and icons |
src | <img>, <script>, <iframe> resources |
| Absolute & relative | Both https:// URLs and /path relatives are extracted |
| Output | Duplicates removed, one link per line |
FAQ
- Are relative paths extracted as-is too?
- Yes. Links are extracted exactly as written in the original HTML, whether relative or absolute.
- How does the extraction work?
- The HTML is safely parsed with DOMParser, then every element with an href or src attribute is found. Scripts are never executed, so it's safe.
- Is the code I enter sent to a server?
- No. It's processed entirely in your browser.
- Are relative links extracted?
- Yes — paths like /docs/page appear as-is. Prefix the site domain to turn them into full URLs.
- What about srcset or data-src?
- It targets standard href/src attributes. Non-standard ones like lazy-load data-src may be missed.
More Coding Tools
📘
JSON Formatter
Prettify, validate & minify JSON
🗓️
Timestamp Converter
Convert Unix timestamp ↔ date
🧩
JSON String Encoder
Convert text ↔ JSON string literal
✨
JS/CSS Formatter
Indent & tidy JS/CSS code
✂️
JS/CSS Minifier
Strip comments & whitespace
🧽
HTML Formatter
Indent HTML by tag structure
🧹
XML Formatter
Indent XML by tag structure
🗃️
SQL Formatter
Break SQL into clauses & indent
🔣
HTML Entity Encoder
Convert special chars ↔ HTML entities
📊
Excel to HTML Table
Convert spreadsheet data to HTML TABLE
🎨
Color Picker
Get HEX, RGB & HSL color codes
🐘
PHP Syntax Checker
Check bracket/string pairing (practical checker)
🗄️
MySQL Syntax Checker
Check bracket/quote pairing (practical checker)
🔍
HTML5 Validator
Check tag pairing, duplicate id, missing alt
✍️
Online HTML Editor
Write & edit HTML visually