HTML Formatter

Clean up unreadable markup, shrink it for production, or convert characters to HTML entities so user content can be displayed without breaking the page.

Open HTML Formatter

Where to find it

Every address below opens the same tool. The first address is the one to bookmark and share.

People also call this

What it's for: Format, minify and escape HTML online. Beautify messy markup, compress it for production, or encode HTML entities safely. Instant.

What trips people up: Does minifying HTML break my page? The minifier only removes whitespace and comments that do not affect rendering. Content inside pre and textarea elements is preserved.

Use it from code

curl -X POST https://openvibe.tools/api/v1/tools/html/run \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"<div><p>Hi</p></div>"}}'

Inputs: JSON Schema · OpenAPI · from JavaScript: tools.run("html", …) in openvibe-sdk · How the API works

Similar tools

All Developer Tools