How to count the links on a web page
Export the links with LightCube Data Extractor's Links mode, open the CSV, and the row count is your total. Add COUNTIF formulas for internal vs external and a pivot or UNIQUE to find repeated URLs. That covers most on-page link questions without an SEO subscription.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Run Extract Links on the page and click CSV.
- Total links: number of data rows.
- Unique URLs:
=COUNTA(UNIQUE(B2:B))in Google Sheets. - Internal vs external: COUNTIF on a domain test column.
Why counts differ between tools
- Navigation and footer links count too.
- Some tools skip links hidden by CSS.
- Links added after scrolling only appear once loaded.
Practical thresholds
There is no fixed best number of links. What matters is that links help the reader and anchors describe the target.
Repeat for key pages
Export your top pages and keep the CSVs; comparing later shows links added or lost.
FAQ
- Does it include image links?
- It includes link elements on the page; an image wrapped in a link has its URL, and its text may be empty.
- Can I count across a site?
- Export each page and combine.
- Limits?
- Links mode has no daily cap.
Related guides
Updated 2026-11-11.