XML Formatter

Format and indent XML data

Visual data view

Enter valid JSON or delimited text to inspect it here.

XML 1.0, one root, at most 100 nested elements. DOCTYPE and ENTITY declarations are rejected, including declaration-like text inside comments or CDATA. Only predefined entities and valid numeric character references are accepted; external resources are never loaded. Namespace names are retained without fetching or validating schemas. Parser-reserved element names __proto__, constructor and prototype reject. Source-preserving formatting adds two-space LF indentation only to compact element-only content. Existing text whitespace, mixed content and xml:space subtrees remain unchanged. Attribute spelling, comments, CDATA, declarations and arbitrary processing instructions are retained. No XML canonicalization claim.

Limits and details

All processing stays local. Paste text only. Input limit:200,000 UTF-16 characters; oversized input rejects without truncation. Structured data is bounded to100 nesting levels and100,000 visited values; XML/YAML syntax is also bounded before recursive conversion. Results are displayed as text.

How to use XML Formatter

Format and indent XML data

  1. Choose the source data and set its format, delimiter or document structure.
  2. Compare headers, row counts and data types before importing the exported file elsewhere.
  3. Review the result, then copy or download it.

Inputs and options

Input text

Example input

input: <person id="1"><name>Ana</name></person>

Use the example button when available, or paste these values into the corresponding fields.

Formats and limits

XML 1.0, one root, at most 100 nested elements. DOCTYPE and ENTITY declarations are rejected, including declaration-like text inside comments or CDATA. Only predefined entities and valid numeric character references are accepted; external resources are never loaded. Namespace names are retained without fetching or validating schemas. Parser-reserved element names __proto__, constructor and prototype reject. Source-preserving formatting adds two-space LF indentation only to compact element-only content. Existing text whitespace, mixed content and xml:space subtrees remain unchanged. Attribute spelling, comments, CDATA, declarations and arbitrary processing instructions are retained. No XML canonicalization claim.

Frequently asked questions

Are my inputs uploaded?

Tool processing runs on your device. Your input is not sent to a processing server. Some tools may download runtime files or use platform features; see the tool notes.

What should I check before using the result?

Review delimiter, headers and data types. Keep a backup and inspect the converted output before importing it elsewhere.

Can I use this tool for free?

Yes. ToolXovo tools are free to use. Beta tools are still being validated; check their notes and exported results.