HTML / XML Formatter & Validator

Beautify, minify and check HTML or XML. Formatting keeps inline tags with their text and protects script, style, pre and textarea content. Runs in your browser.

Mode
0 characters
Output

What the checker catches

  • Closing tags with no matching opening tag.
  • Mismatched pairs such as <div><p></div>.
  • Elements left open at the end of the document.
  • In XML mode, parser errors from the browser's strict XML parser.

Working with JSON instead? Try the JSON Formatter or convert formats with the JSON ↔ YAML / CSV Converter.

More from Developer Tools

Browse all 116 tools →

Build custom software with us

From internal tools to full platforms — we deliver end to end.

Was this tool useful?