AltF Flow recipe
Extract links from HTML source
To list the links on a page, paste its HTML source, extract every absolute URL, then remove stylesheets, scripts and images. This recipe filters out URLs ending in .css, .js, .png, .jpg, .svg, .webp or .ico, removes duplicates and sorts the rest, leaving the page links you would audit for SEO or broken-link checks.
- Free, no sign-up
- Runs in your browser
- Nothing uploaded
- Share recipes as a link
4 steps · runs in your browser · nothing uploaded
Pipeline
URLs
8 → 8 linesRemove, Contains: \\.(css|js|png|jpe?g|gif|svg|webp|ico)(\\?|$), Regular expression, Ignore case
8 → 5 lines (-3)Keep the first copy of each line and drop repeats.
5 → 4 lines (-1)Alphabetical
4 → 4 lines
8lines24words534chars
4lines4words127chars-4 lines vs input
The 4 steps in this recipe
- 1
Extract - URLs
Pull out URLs, emails, domains, numbers, hashtags, @mentions, IPv4 addresses or phone numbers, one per line.
- 2
Filter lines - Remove, Contains: \\.(css|js|png|jpe?g|gif|svg|webp|ico)(\\?|$), Regular expression, Ignore case
Keep or remove lines that contain a word or match a pattern.
- 3
Remove duplicate lines
Keep the first copy of each line and drop repeats.
- 4
Sort lines - Alphabetical
Sort A to Z, Z to A, naturally (2 before 10), by number or by length.
Change any option in the workspace above, switch a step off to compare, or add your own steps. Save it to reuse it, or share the recipe as a link.
Worked example
<link rel="stylesheet" href="https://cdn.example.com/site.css?v=3"> <script src="https://cdn.example.com/app.js"></script> <nav><a href="https://www.example.com/">Home</a> <a href="https://www.example.com/pricing">Pricing</a></nav> <img src="https://img.example.com/hero.webp" alt="Hero"> <p>Read the <a href="https://docs.example.org/start">guide</a>.</p> <a href="https://www.example.com/pricing">See plans</a> <a href="/relative/path">Relative link</a> <footer><a href="https://partner.example.net/?ref=footer">Partner</a></footer>
https://docs.example.org/start https://partner.example.net/?ref=footer https://www.example.com/ https://www.example.com/pricing
Why each step is there
- Extract - URLs finds absolute links in href, src and plain text alike, stopping at quotes and brackets.
- Filter lines removes asset files with a regular expression on the file extension, also when a ?version query follows it.
- Dedupe and sort turn repeated nav and footer links into a single tidy list.
Limits to know
Only absolute http and https URLs are found. Relative links such as /relative/path are skipped because there is no base URL to resolve them against. To include them, add a Find and replace step before extracting that rewrites href="/ to href="https://www.example.com/.
Extract links from HTML: questions and answers
Can I list only external links?
Yes. Add Filter lines set to Remove with your own domain, for example example.com, after the extract step.
Does it fetch the page for me?
No. Flow never makes network requests. Copy the source with your browser's View Source and paste it.
Are mailto: and tel: links included?
No, the URL extractor only matches http and https. Use the email extract type for mailto addresses.
More recipes like this
SEO and keywords
- Trim every line
- Collapse repeated spaces
- Change case
- Remove empty lines
- +2 more
- Extract
- Remove duplicate lines
- Sort lines
- Trim every line
- Remove empty lines
- Make URL slugs
- Remove duplicate lines
Every step you can add (41)
Clean up
- Trim whitespace
- Trim every line
- Remove empty lines
- Collapse repeated spaces
- Remove line breaks
- Strip HTML tags
- Straighten smart quotes
- Remove accents
- Remove punctuation
- Remove emoji
- Remove non-ASCII characters
Change case
- Change case
- Make URL slugs
Lines
- Sort lines
- Remove duplicate lines
- Keep only duplicated lines
- Compare with another list
- Count repeated lines
- Reverse line order
- Shuffle lines
- Keep a range of lines
- Truncate long lines
- Wrap at a width
- Split into lines
- Join lines
Find and filter
- Find and replace
- Filter lines
- Remove words or characters
Extract
- Extract
Data and formats
- Format JSON
- Minify JSON
- CSV to JSON
- JSON to CSV
- Lines to JSON array
- JSON array to lines
Encode and decode
- Encode or decode
Build output
- Add prefix / suffix
- Quote each line
- Number lines
- Apply a line template
- Add timestamp
AltF Flow runs entirely in your browser. Your text is never sent to AltFTool; saved recipes stay in this browser and shared links carry the steps only.