Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

XML Pretty Print Online Tool (SAMLTool.com)

Paste XML (including SAML Response/Assertion XML), then pretty print or minify it with a clean, readable layout. This runs fully in your browser and shows XML parse errors clearly.

Category: Data · URL: /tools/xml-pretty-print-online-tool-samltool-com.html
Tip: paste SAML Response/Assertion XML here
Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

Use it like a simple SAMLTool-style XML formatter:

  1. Paste your XML into the input box.
  2. Choose an indent style (2/4 spaces or tabs).
  3. (Optional) Enable removing whitespace-only text nodes to avoid extra blank lines.
  4. Click Pretty Print (or Minify).
  5. Copy the output, or check the error box if parsing fails.
Keywords this page targets (natural cluster): xml pretty print online tool samltool com, samltool com xml pretty print, xml formatter online, pretty print xml online, xml beautifier, xml indentation tool, format saml response xml, saml assertion xml formatter, xml minify online, xml validator and formatter, pretty print soap xml, xml parse error checker, remove xml whitespace, xml serializer online, xml beautify with tabs, xml pretty print 2 spaces, xml pretty print 4 spaces, online xml pretty printer, copy formatted xml, pretty print xml without changing content
Secondary intents covered: Format messy XML into readable, indented output, Minify XML for compact storage or transport, Detect and display where XML parsing fails, Clean up SAML Response/Assertion XML for troubleshooting, Remove whitespace-only text nodes added by indentation, Copy formatted XML to clipboard quickly, Load a sample SAML-like XML snippet to test formatting, Switch indentation between 2/4 spaces or tabs, Reset input/output to start over

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.