HTML Preview

Format, minify, and preview HTML

Paste HTML to preview

Frequently asked questions

Can I preview an HTML fragment?

Yes. Paste either a body fragment or a full HTML document and the preview will render it.

Can I format HTML?

Yes. The Formatted view applies consistent indentation with a choice of two or four spaces.

Can I minify HTML?

Yes. The Minify view produces a compact version of the current HTML source.

What happens when formatting fails?

The source remains editable and the tool displays the formatting error for correction.