code HTML / XML Formatter

Format and validate HTML or XML.

Paste your markup, pick a format, and get clean, indented output.

edit_note Input
insights Formatted Output

How this works

XML is parsed and validated with .NET's built-in XML parser, so malformed XML shows the exact error and line. HTML is indented based on its tag structure, with a check for unclosed tags - HTML doesn't always follow strict XML rules, so this focuses on readable formatting rather than strict validation.