Skip to content

XML Formatter

Indent well-formed XML for reading while preserving mixed text content and xml:space settings.

Input

52 chars1 lines

Result

Type or paste on the left — the result updates as you type.

DTD and entity declarations are rejected. XML formatting is not schema validation or canonicalization. Attribute quote styles may change.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: