โ›“๏ธ Link (href, src) Extractor

Paste in HTML source code to extract every href/src attribute link.

0 found

How to use

  1. Paste in your HTML source code.
  2. Click "Extract".
  3. Every href/src attribute link is listed.

๐ŸŽฏ Use Cases

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.

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.

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