Sample
HTML548 chars · 548 bytes
123456
✓ Valid
Formatted HTML
728 bytes (+33% vs input)
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Hi</title>
    <style>
      body{margin:0}
        .a{color:red}
    </style>
  </head>
  <body class="x y">
    <div id="app">
      <h1>Title <em>here</em></h1>
      <p>
        Some long paragraph text with <a href="/x">a link</a> and <strong>bold</strong> words that
        goes on and on and on until it needs to wrap around the line limit.
      </p>
      <p>Second</p>
      <ul>
        <li>One</li>
        <li>Two <b>b</b></li>
      </ul>
      <img src="a.png" alt="logo"> <br> <input type="text" disabled>
      <pre>  keep
   this </pre>
      <script>
        var a = 1;
        if (a) { go() }
      </script>
    </div>
  </body>
</html>
Format and indent messy HTML markup · runs in your browser, nothing is uploaded