Nifty / Tools / Web

HTML Formatter

Indent messy HTML, including HTML with template tags from PHP, Blade, Twig, Jinja, Handlebars, ERB or Liquid.

html-formatter
HTMLDrop a file here
Formatted
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the HTML Formatter

  1. Paste HTML on the left.
  2. If it contains template tags, pick the template language so they're kept intact.
  3. Copy the formatted HTML.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

Will it break my template tags?

No. Pick the template language and tags like <?php ?>, {{ }} or {% %} are protected while the HTML around them is formatted.

Related tools