Dev Tools

HTML Formatter (basic)

A lightweight HTML formatter with simple indentation (best-effort). Runs locally in your browser.

Input HTML
Formatted
<div>
  <h1>Hello
  </h1>
  <p>Test
    <strong>bold
    </strong>
  </p>
</div>
Note: This formatter is heuristic and may not handle scripts/styles or malformed HTML perfectly.
Was this page helpful?

Related tools