What does the HTML prettifier do?
Messy or untrusted HTML is hard to read and unsafe to render. Formatting helps debugging; sanitizing helps strip dangerous markup.
This tool prettifies and sanitizes HTML locally with DOMPurify so markup never needs to be uploaded.
How to use this tool
- Paste HTML into the editor.
- Prettify for readability and/or sanitize with DOMPurify.
- Copy the cleaned markup back into your app or email template.
Frequently asked questions
Is HTML uploaded?
No. Formatting and sanitization run 100% in the browser.