dev utility

HTML Formatter

Indent and wrap HTML locally for review without uploading it.

HTML formatter

Indent and wrap HTML locally for review. This is a formatter, not an HTML validator or browser preview; scripts and styles are kept as text.

How it works

Format an HTML fragment or document locally with configurable indentation and line wrapping. Scripts and styles are preserved as text. This is a formatter, not an HTML validator or live preview.

Limits

Questions

Does it validate HTML?

No. It formats markup; it does not validate semantics, accessibility or browser rendering.

Can I paste untrusted HTML?

Formatting does not sanitise it. Never publish untrusted formatted markup or use this as an XSS filter.

Privacy

Usage measurement is off for this tool. This page makes no analytics request. Your input is not sent to a server.