Tools > HTML Formatter / Escape
HTML Formatter / Escape
Format, minify HTML and encode/decode entities
Input
Indent::
🔒 This tool runs in your browser only. No input data is sent to any server.
About HTML Formatter / Escape
HTML Formatter beautifies HTML code with proper indentation and also provides HTML entity encoding and decoding. Format messy HTML for readability, escape special characters for safe embedding, or decode HTML entities back to their original characters.
How to Use
- Paste your HTML code into the input area.
- Click Format to beautify, or Escape/Unescape to encode entities.
- Review the formatted or escaped output.
- Copy the result for your web project.
Key Features
- Beautify HTML with proper indentation
- Encode special characters to HTML entities (&, <, etc.)
- Decode HTML entities back to characters
- Handle inline and block elements correctly