Runs in this tab · nothing uploaded

EN

English

हिन्दीComing soon

EspañolComing soon

Pinned
HelpyTools

More

HTML formatter

Beautify minified or messy HTML with Prettier, inline <style> and <script> blocks included, right in your browser.

Runs in your browserNothing uploadedWorks offline

Set up for this job. It runs on Code formatter, where every option is there to change.

Loading HTML formatterRuns on this device. Nothing is uploaded.

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.

All developer tools

↑ ↓ move↵ openesc close

The tray

Install HelpyTools

Get HelpyTools on your home screen or Dock. It opens in its own window, and tools you have opened once keep working offline.