Full documents or fragments
Use a complete page, email template, CMS fragment, component snippet or table. HTML5 void elements and common optional-end-tag patterns are understood.
Beautify HTML without casually breaking inline text, protected blocks, template syntax or attributes. Format locally with a structural guard, diagnostics, batch ZIP and a sanitized preview.
The formatter re-tokenizes the output and verifies protected tags, attribute payloads, comments, templates, raw regions and non-whitespace text.
Share formatting rules without sharing HTML. The profile is plain JSON.
Use a complete page, email template, CMS fragment, component snippet or table. HTML5 void elements and common optional-end-tag patterns are understood.
<p>Hello <strong>world</strong>!</p> keeps its text and inline spacing instead of putting every tag on a new line.
pre, textarea, script, style and optionally code bodies are kept byte-for-byte.
Handlebars/Mustache {{…}}, Jinja/Twig/Liquid {% … %}, template comments, PHP processing blocks and ASP-style <% … %> are preserved as opaque regions.
Smart wrapping can place long attributes on separate lines without reordering attributes or normalizing values.
Stray closers, unclosed non-optional elements and implicit closes are reported. The formatter does not silently invent missing application markup.
Compare input and output in sandboxed frames after scripts, remote resource URLs, event handlers and style payloads are removed.
No account, upload, telemetry or server round trip is required. File decoding, formatting, audit and batch ZIP creation stay in your browser.