← All tools
Developer tool

HTML Beautifier

Beautify, auto-repair and clean HTML. Fixes missing tags, normalizes attributes, strips Word junk and more.

Mode:
🔧 Smart Fix Report
Input HTML
Output

Format and clean HTML

Reformat hard-to-read markup for review, editing and reuse.

  1. Paste the HTML source into the editor.
  2. Choose the appropriate Standard, WordPress/CMS or Email Template mode and review available repair options.
  3. Format the markup, then inspect and copy the output.

Example

Markup with nested elements on one long line can be laid out with consistent indentation so it is easier to review.

What to check

Automatic tag closing or attribute normalization can affect malformed HTML. Compare the result with the original and test rendering in a browser.