Skip to content

Formateurs & Code

Formateur et validateur XML

Formateur, embellisseur et validateur XML en ligne gratuit. Imprimez joliment le XML désordonné, réduisez-le en une ligne compacte, ou vérifiez les erreurs de syntaxe. S'exécute entièrement dans votre navigateur.

Runs in your browser
XML formatter & validator
lines: 0chars: 0size: 0 B
XML · UTF-8 · 2-space indent

Note de la rédaction

Understanding · Whitespace, with intent.

Ce chapitre approfondi n'est actuellement disponible qu'en anglais. L'outil de conversion ci-dessus fonctionne dans votre langue ; le long article explicatif n'a pas encore été traduit.

Questions fréquentes

Quick answers.

What XML features does this support?

Attributes, nested elements, mixed content, CDATA blocks, comments, processing instructions and the XML declaration are all preserved. The formatter uses the browser's native DOMParser so anything your browser accepts is accepted here.

What's the difference between Beautify and Minify?

Beautify adds indentation and line breaks for readability. Minify strips whitespace between tags while keeping text-node content intact — good for reducing payload size before sending XML over the wire.

Does Validate catch every XML error?

It catches well-formedness errors (unclosed tags, mismatched attributes, stray ampersands). It does not validate against a DTD or XSD — that's a separate schema-validation step.

Is my XML sent anywhere?

No. Everything runs in your browser — the parser, the formatter, the minifier. Your payload never leaves the page.

Les internautes recherchent aussi

Outils similaires

More in this room.

Tout voir dans Formateurs & Code