Dev Tools

HTML Tools

Format, check, and extract from HTML you paste. We do not fetch live URLs.

8 tools · 100% browser-based · No uploads · No signup

About these HTML tools

HTML tools format, minify, do a basic well-formedness check, extract text or elements, visualize the DOM tree, convert a tree to JSON, clean attributes, and count tags. They run on the markup you paste, not by fetching a live URL (that would be a server-side crawl).

The validator is a practical linter for unclosed tags and nesting mistakes. It is not the W3C Nu Html Checker. Browser HTML parsers are famously forgiving; these tools help you see structure before the browser silently fixes it.

Tools in this category

How these tools run in your browser

Parsing uses DOMParser in the browser. Extraction walks the resulting tree. Formatting serializes with indentation. Attribute cleaning removes selected attributes without a full HTML rewriter. JSON conversion is a structural dump, not a semantic article extract.

Common Use Cases

  • Pretty-print a minified template to find a missing </div>
  • Strip tags to get readable text from an email HTML part
  • List every href or img src in a fragment
  • Remove inline styles or empty attributes before a CMS paste
  • See tag frequency in a messy legacy page

Common Mistakes

DOMParser in HTML mode will "fix" some errors, so the tree may not match the source byte-for-byte.
Svg and foreign content have different parsing rules.
Scripts in pasted HTML are parsed as nodes; we do not execute them, but treat untrusted HTML as untrusted.
Minify can break HTML that depends on whitespace in <pre> or inline formatting.

Frequently Asked Questions

Can I paste a full production page with user data?

It stays in the tab. Still avoid pasting secrets. Prefer a redacted fragment.

Why did the formatter change my tags?

The HTML parser may insert implied tags (tbody, html, body). Work on a fragment if you need byte-stable output.

Is this an accessibility auditor?

No. Use dedicated a11y tools for contrast, names, and keyboard support.