HTML formatter

Your workspaceProcessed on your device

Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.

A few things to know.

Preferred line width is a formatting hint, not a hard maximum. Formatting can change source layout. Strict whitespace sensitivity is used, but verify application-specific template behavior before replacing production files. HTML preview and remote URL imports are deliberately unavailable. Original parser details may be in English. Limit: 1 million characters.

  1. Paste HTML or open a local text file.
  2. Choose indentation and format.
  3. Review the formatted markup and copy or download it.