🧰Locly

Format and Minify HTML

Beautify or minify HTML in your browser

About This Tool

HTML Formatter beautifies or minifies HTML for readability or size. It does not execute scripts or load remote resources. Formatting is processed locally in your browser β€” your markup never leaves your device.

How to Use

  1. Paste HTML into the input
  2. Click Beautify or Minify
  3. Review the result
  4. Copy the formatted markup
  5. Clear to format another snippet

Common Use Cases

  • Debug: Indent messy HTML for review
  • Ship: Minify snippets before embedding
  • Docs: Pretty-print examples for READMEs
  • Email: Clean template markup offline
  • Privacy: Format without pasting into online IDEs

FAQ

Q1: Does this run my HTML or scripts?

No. It only reformats text and never executes scripts.

Q2: Is my HTML uploaded?

No. Formatting is processed locally in your browser.

Q3: What if input is empty?

You will see a validation message before formatting.

Q4: Beautify vs Minify?

Beautify adds indentation; Minify removes comments and extra whitespace.

Related Tools