Skip to main content
忆云竹

XML formatter and validator

Validate and format XML locally with two- or four-space indentation, preserving mixed text and xml:space whitespace.

Indentation

Updates as you type or change an option


    
Processed in this browser. Nothing is uploaded or saved.

About this tool

Validate and format XML locally with two- or four-space indentation, preserving mixed text and xml:space whitespace.

How to use

Paste XML or open a UTF-8 file. Valid XML is formatted automatically; unmatched tags and other syntax problems are reported. Choose indentation, then copy or download the result.

Mixed-content elements and xml:space="preserve" subtrees retain their content. Only suitable element structures are indented. DOCTYPE and external entities are unsupported; this is not XSD validation. Input limit: 1 MiB and 80 nested levels.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.