HTML Formatter
Format and beautify HTML online with Prettier. Fix indentation, wrap long lines and tidy inline CSS and JavaScript.
Frequently asked questions
Related tools
JSON Formatter & Validator
Pretty-print, validate and sort JSON, with the exact line and column of any syntax error.
JSON Minifier
Strip whitespace from JSON to make it as small as possible, and see how much you saved.
HTML Minifier
Remove comments and collapse whitespace in HTML while keeping <pre>, <textarea>, scripts and styles intact.
CSS Formatter
Beautify CSS, SCSS and Less with one rule per line and consistent indentation.