ToolPal

Formateur HTML

Embellissez et formatez le HTML avec une indentation correcte. Supporte l'indentation à 2 espaces, 4 espaces ou tabulation, et le retour à la ligne des attributs.

Indentation:

Comment utiliser

Embellissez et formatez le HTML avec une indentation correcte. Supporte l'indentation à 2 espaces, 4 espaces ou tabulation, et le retour à la ligne des attributs.

  1. 1Paste your minified or unformatted HTML into the input area on the left.
  2. 2Choose your preferred indent size — 2 spaces, 4 spaces, or tabs.
  3. 3Toggle 'Wrap attributes' if you want each HTML attribute on its own line (useful for long tags).
  4. 4Click 'Format' to generate the prettified HTML output on the right.
  5. 5Click 'Copy' to copy the formatted HTML to your clipboard.

Fonctionnalités

  • Smart indentation — correctly handles void elements, inline elements, and self-closing tags
  • Wrap attributes mode — puts each attribute on its own line for long or complex tags
  • Three indent styles — 2 spaces, 4 spaces, or tabs to match your project's coding style
  • Fragment support — formats HTML snippets without wrapping them in an html/body document
  • 100% client-side — nothing is uploaded; paste, format, and copy without leaving your browser

Questions fréquentes

En savoir plus