How to use
Use it like a simple SAMLTool-style XML formatter:
- Paste your XML into the input box.
- Choose an indent style (2/4 spaces or tabs).
- (Optional) Enable removing whitespace-only text nodes to avoid extra blank lines.
- Click Pretty Print (or Minify).
- Copy the output, or check the error box if parsing fails.
FAQ
Does this tool send my XML to a server?
No. Formatting and validation run in your browser with no network requests.
Can I use this to pretty print SAML Responses and Assertions?
Yes—paste the SAML XML and click Pretty Print to make it readable for debugging.
Why do I see extra blank lines after formatting?
Those usually come from whitespace-only text nodes. Enable “Remove whitespace-only text nodes”.
Will formatting change my data values?
It should only change whitespace/indentation. If your XML relies on significant whitespace in text nodes, disable whitespace stripping.
What causes an “XML parse error” here?
Common causes are missing closing tags, invalid characters, or unescaped & inside text/attributes.
Can I minify XML too?
Yes—click Minify to remove inter-tag whitespace and produce compact XML.
Does it preserve the XML declaration (<?xml ...?>)?
If your input includes it and “Keep XML declaration” is enabled, it will be kept in the output.