Input XML
Output (read-only)
How to use
Paste your XML, choose an action, and copy the result.
- Paste XML into the input box.
- Choose Format (pretty), Minify (compact), or Validate (checks well-formedness).
- Optional: use Escape/Unescape to encode/decode entities.
- Copy the output or hit Reset to start over.
FAQ
Does this XML tool upload my data?
No. Formatting, minifying, and validation run locally in your browser with no network calls.
What does “Validate” check?
It checks whether the XML is well-formed (proper nesting, closed tags, valid characters) and shows a parse error if not.
Why do I see a parser error?
Common causes are mismatched closing tags, missing quotes in attributes, or invalid characters like an unescaped &.
Will formatting change my XML meaning?
It only changes whitespace and indentation. Text content is preserved, but purely whitespace-only text nodes between tags may be normalized.
What is Escape/Unescape used for?
Escape converts markup into entities (e.g., <, &) for safe display; Unescape reverses that.
Can this keep the XML declaration (e.g., <?xml version="1.0"?>)?
Browsers often omit the declaration when parsing/serializing. If you need it, add it back manually after formatting/minifying.
How large of an XML file can it handle?
It depends on your device and browser. For very large XML, prefer minify/validate first and avoid repeated formatting.