Extract all headings (H1, H2, H3) from a web page
Use CSS Selector mode in LightCube Data Extractor with the selector h1, h2, h3. You get one row per heading in page order, with the tag (H1, H2, H3) and its text, which you can copy into a sheet as a page outline.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Open the page.
- Run the extension and choose Selector.
- Type
h1, h2, h3and run it. - Click Copy and paste into a spreadsheet. The Tag column shows each heading level.
Uses
- Compare outlines of top-ranking articles for a topic.
- Check that a page has one H1 and a logical order.
- Turn a long article into notes.
Indent the outline
In Sheets, add =REPT(" ", VALUE(RIGHT(A2,1))-1) & B2 to indent each heading by its level.
Limits
Selector mode has 3 free uses per day. Headings created as styled text without heading tags will not appear; that is also worth knowing for SEO.
FAQ
- Does it include hidden headings?
- It returns headings present on the page; some may be visually hidden.
- Can I add H4?
- Yes, use
h1, h2, h3, h4. - Is it free?
- Selector mode is free for 3 uses per day.
Related guides
Updated 2026-11-11.