Skip to main content
>_devtools

HTML DOM Tree Viewer

Parse HTML the way a browser does and explore the resulting DOM as a collapsible tree with attributes.

How to use it

Parse HTML the way a browser does and explore the resulting DOM as a collapsible tree with attributes. Paste HTML above and choose whether to parse a whole document or a body fragment.

Example

Input: <main><p>Hello</p></main>
Output: document → html → body → main → p

Limits and behavior

  • The browser parser repairs malformed HTML as it builds the tree.
  • Input is limited to 2 MiB and the displayed tree is bounded.