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.
Formatted HTML
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
- Formatting does not validate HTML semantics, accessibility or browser rendering.
- Script/style contents are treated as text and may not be executable-equivalent after editing.
- Does not sanitise unsafe HTML; do not use formatted output to publish untrusted markup.
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.