Paste your HTML and click Prettify to format it with clean indentation, or Minify to compress it by collapsing whitespace. Void tags like <br>, <img>, and <input> are handled correctly. Everything runs locally in your browser.
HTML Prettify / Minify
Format or compress HTML
Output will appear here...Related Tools
Get weekly dev tools and tips