01 / Example
Example
<main><h1>Hello</h1><p>Welcome</p></main><main>
<h1>Hello</h1>
<p>Welcome</p>
</main>Code Beautify / MULTIVERTO
Lay out explicitly nested HTML tags for easier inspection.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
<main><h1>Hello</h1><p>Welcome</p></main><main>
<h1>Hello</h1>
<p>Welcome</p>
</main>02 / Guide
Lay out explicitly nested HTML tags for easier inspection. This formatter exposes explicitly nested tags as a tree. It can place sibling elements on separate lines while retaining the text inside them. Use it to inspect a component or email fragment; a full document with optional closing tags needs a browser-grade parser.
HTML has elements, attributes and text nodes, and whitespace in text can affect rendering. The local formatter accepts explicitly nested tags and retains the text between them. It refuses raw-text containers such as script, style, pre and textarea, where a general tag scanner could be misleading.
Use this formatter to inspect an explicitly nested HTML fragment, such as a component with a list and links. Paste a complete fragment so opening and closing tags can be paired. The output's indentation exposes parent and sibling relationships, making an unexpected closing tag easier to locate. It does not perform the browser's full HTML error recovery, and documents that rely on optional closing tags or advanced constructs need a browser-grade parser. Keep text and attribute values from the original available while reviewing the layout change. In the live example, with line breaks shown as JSON escapes, input "<main><h1>Hello</h1><p>Welcome</p></main>" produces output "<main>\n <h1>Hello</h1>\n <p>Welcome</p>\n</main>". Use a short card with a nested strong element and a neighboring paragraph. After formatting, identify the parent of each closing tag before rendering. If a browser silently repairs malformed input, its DOM may differ from the source shown here; this tool expects explicit, balanced markup.
Paste a component with explicit opening and closing tags when the nesting is difficult to see. Inspect the resulting parent and sibling positions, then render the component to check text spacing. Optional closing tags and script or style bodies need a full HTML parser; this formatter intentionally does not guess how a browser repairs incomplete markup. Render the formatted fragment in the same environment where it will be used. Compare the element tree, link targets, form labels and visible text, especially spaces between inline elements. Whitespace that looks insignificant in source may separate words on screen. Check that quoted attribute values and character references still describe the intended data; indentation cannot validate accessibility or document semantics by itself. If you plan to commit the result, inspect the diff around every text node, not just the tag boundaries. Preserve the unformatted source until the rendered comparison is complete.
Explore guides