728 × 90 Ad Space

HTML Formatter

Put HTML onto one tag per line with nesting indentation, so a minified page becomes readable again.

empty

empty

How to use it

  1. Type or paste your text into the box above.
  2. The result appears as you type — or press Format.
  3. Press Copy result to put it on your clipboard.

Example

Input
<div><p>Hello</p><ul><li>One</li><li>Two</li></ul></div>
Result
<div>
  <p>Hello</p>
  <ul>
    <li>One</li>
      <li>Two</li>
      </ul>
    </div>

Questions

Is my HTML rendered anywhere?

No. It is treated as text throughout and never inserted into the page, so nothing in it can run.

Is my text sent to a server?

No. This tool runs entirely in your browser — nothing you type or paste is uploaded, logged or stored anywhere.

Is there a limit on how much text I can use?

There is no fixed limit. Very large documents depend on your device’s memory, but ordinary pages and files are handled instantly.