Typical use
Input
<div><span>hello</span></div>
Output
Tags are indented by nesting level so the structure is easier to inspect.
Format, minify, preview, and convert HTML to JavaScript online.
Use this page to format, minify, preview, and convert HTML snippets. It focuses on HTML code and produces structured HTML or converted output.
<div><span>hello</span></div>
Tags are indented by nesting level so the structure is easier to inspect.
The input is mainly processed in your browser, and the page only uses browser capabilities needed to generate the result.