Murelio

Loading the features you need.

HTML Formatter

Format HTML with Prettier standalone's html parser.

How to use

  1. Enter HTML code and run to view the formatted result.

Capabilities and scope

The required Prettier plugin is lazy-loaded in the browser and produces the formatter's normalized output.

How it works

It calls prettier.format with parser:'html' and the loaded html/estree plugins.

Example

Dense div and span markup is reflowed according to Prettier rules.

Useful for

  • Normalize indentation and line breaks in an HTML draft

Before you use it

  • Output follows the current tool's formatter defaults, not a custom project's full Prettier configuration.

Frequently asked questions

Are my original line breaks preserved?

No. Prettier is free to reflow the source according to its rules.

Related tools