ToolNest

HTML Formatter

Beautify, minify, check tagsRuns locally · nothing uploaded

Input
Output
✓ All tags are balanced
Also works as:html minifierhtml beautifierhtml validatorhtml prettify

How to use

  1. 1Paste HTML.
  2. 2Choose format or minify.
  3. 3Review the tag check and copy the code.

FAQ

Does minifying break <pre> blocks?

No. Content inside <pre>, <textarea>, <script> and <style> is kept as-is.

Is the tag check a full W3C validation?

No. It only checks that tags are balanced, to catch missing closing tags quickly.