Tools for Everyone
EN
Vibecoders Blog — click here

HTML Formatter

Indent messy HTML markup or minify it for production.

Runs on Prettier · author: James Long and contributors · license: MIT · source code

Licenses

Private

Everything runs right in your browser: your files and text are never uploaded, never stored by us and never seen by anyone but you.

About this tool

The HTML formatter adds indentation and line breaks to messy markup so it is easy to read and edit. The Minify mode strips extra whitespace and comments so pages load faster.

How to use it

  1. 1Paste your HTML.
  2. 2Choose the indent size and press “Format” or “Minify”.
  3. 3Copy or download the resulting .html file.

FAQ

Will minifying break my page?

Content inside pre, textarea, script and style tags is left untouched, so layout and scripts keep working. Only whitespace between tags and comments are removed.

Is the HTML Formatter free?

Yes, completely free with no sign-up and no usage limits.

Are my files or text uploaded anywhere?

No. Everything runs right in your browser: your files and text are never uploaded, never stored by us and never seen by anyone but you.

Does it work on a phone?

Yes, it works in any modern browser on phones, tablets and computers.

Related tools