HTML Formatter
Indent HTML with a syntax-aware formatter.
How to use HTML Formatter
- Prepare the input for HTML Formatter: Indent HTML with a syntax-aware formatter. Paste the text or use Load example.
- Select Run tool.
- Check the output: The html formatter result for the values entered. Copy only the result you intend to use.
A practical example
Input:
<!doctype html><html><body><h1>Hello</h1><p>Welcome</p></body></html>
Example output:
<!doctype html>
<html>
<body>
<h1>Hello</h1>
<p>Welcome</p>
</body>
</html>Limitations and common mistakes
Formatting is not sanitization. Review embedded scripts, links and attributes before placing HTML in a page.
Questions about HTML Formatter
What should I enter in HTML Formatter?
Text input for HTML Formatter; the Load example button provides a starter sample.
What does HTML Formatter return?
The html formatter result for the values entered.
What should I check before using the result?
Formatting is not sanitization. Review embedded scripts, links and attributes before placing HTML in a page.
Supported input and output
Text input for HTML Formatter; the Load example button provides a starter sample.
The html formatter result for the values entered.
