Format HTML

Indent HTML with a dedicated HTML formatter.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste your source, choose the supported options, then process. Inspect or download the complete result.

Limits and behavior

HTML is formatted as source and never executed. Formatting may change whitespace-sensitive layout; review the result. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Make HTML source easier to read

Format valid HTML with consistent indentation so nested elements are easier to inspect.

Does formatting HTML make unsafe markup safe?

No. Beautifying code changes presentation, not the security of scripts or embedded content.

Related tools: minify html · html to plain text

Built on Hatchable