URL Heading Extractor
Fetch any live URL and extract its complete H1-H6 heading hierarchy — see every heading in document order with its level, for SEO audits and content-structure checks.
Input
The page is fetched server-side and every H1-H6 tag is extracted in document order.
Output
| Level | Count |
|---|---|
| No data yet | |
| Level | Text |
|---|---|
| No data yet | |
Guides
What this tool does
Enter a live URL and this tool fetches the page server-side and pulls out every <h1> through <h6> heading tag, in the order they appear on the page, along with a per-level count summary. It's a fast way to audit a page's heading structure — whether it has exactly one H1, whether headings skip levels, and how many subheadings sit under each section — without opening dev tools.
How to use it
- Enter the page's URL.
- Click Extract headings.
- Read the level-by-level summary, then the full list of headings in the order they appear on the page.
- Copy or download the results as a CSV file.
Frequently asked questions
Why does this run on the server instead of my browser? Browsers block cross-origin page fetches (CORS) for most sites, so extracting headings from an arbitrary URL has to happen server-side. Only the requested page is fetched; nothing else is stored.
What if I already have the page's HTML instead of a URL?
Use the HTML Meta Tags Extractor for meta tags and a page's single H1, or paste the HTML into HTML to Markdown Converter — Markdown headings (#, ##, …) mirror the same H1-H6 hierarchy.
Does it check whether the headings are semantically correct? No — it reports exactly what's on the page. Deciding whether the hierarchy is "good" (one H1, no skipped levels) is left to you; this tool gives you the raw structure to make that call.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/url-to-headings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `url-to-headings` tool (URL Heading Extractor) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.