HTML formatter
Beautify minified or messy HTML with Prettier, inline <style> and <script> blocks included, right in your browser.
Set up for this job. It runs on Code formatter, where every option is there to change.
Questions
Are inline styles and scripts formatted too?
Yes. CSS inside <style> and JavaScript inside <script> are laid out with Prettier's CSS and JavaScript parsers along with the markup.
Will it change how my page looks?
Prettier follows the whitespace rules of HTML, so it avoids adding spaces where they would show between inline elements. That is why some tags break oddly, like a closing > on the next line.
Is my code uploaded?
No. Prettier runs in this tab and the page sends your code nowhere.