XML Pretty Print online: format, indent and validate XML & SAML
An XML formatter and beautifier built for people working with SSO, SAML, APIs and integrations: fast, private and with no usage limits. Whether you need to read an IdP response, tidy a config file or clean up an API payload, it's the XML viewer that keeps your data on your device.
The tool runs entirely in your browser: the XML you paste is never sent to our servers.
Everything you need to read your XML
An online XML formatter and validator built for people working with SSO, SAML, APIs and integrations: fast, private, free and with no usage limits.
Formatting and indentation
Turn single-line XML into an indented, hierarchical structure, with 2-space, 4-space or tab indentation of your choice.
100% client-side
Parsing and formatting happen in your browser with native APIs: no uploads, ideal for SAML assertions and sensitive data.
Minification
Compress XML by removing redundant whitespace and line breaks to shrink its size before sending or storing it.
Instant validation
Instantly check whether your XML is well-formed: on error you get a clear message with the parsing details.
How to use the XML formatter
Three steps, no sign-up: paste, format and copy the result.
- 1
Paste your XML
Copy the XML you want to format — a SAML response, IdP metadata or any document — and paste it into the input box.
- 2
Format or minify
Pick the indentation and press Format to get readable XML, or Minify to compress it.
- 3
Copy the result
Copy the formatted output to your clipboard with a single click and use it wherever you need.
XML Pretty Print for SAML, SSO and integrations
Anyone configuring Single Sign-On works with XML every day: SAML 2.0 assertions and responses, Identity Provider and Service Provider metadata, configuration files. These documents almost always arrive minified on a single line, impossible to read or compare while debugging.
With this XML Pretty Print you indent the SAML assertion in seconds to inspect attributes, NameID, conditions and signatures — all without sending anything to an external server. It's the ideal tool when you integrate LoginMaster as an Identity Provider via SAML or OIDC.
Decode and read Base64-encoded SAML responses
SAML responses captured from the browser or SSO logs are often Base64-encoded (and sometimes DEFLATE-compressed) before they reach you. Decode the payload, paste the resulting XML here, and pretty print it to inspect the AuthnRequest, NameID, attribute statements and the signature in a readable hierarchy — entirely in your browser, with nothing sent to a server.
XML Pretty Print vs XML minification: when to use each
Pretty printing an XML document helps when you are reading and debugging: indenting a SAML assertion or an Identity Provider's metadata makes it immediate to spot attributes, NameID and signatures. XML minification serves the opposite step — before pasting a document into a configuration field, an environment variable or transmitting it via API, where superfluous whitespace needlessly increases the size. With this tool you can switch from formatted XML to minified XML and back in one click, choosing 2-space, 4-space or tab indentation.
Run SSO and SAML without the headaches
LoginMaster delivers Single Sign-On with SAML 2.0 and OpenID Connect while keeping data inside your tenant. See how to integrate enterprise authentication securely and compliantly.
XML Pretty Print frequently asked questions
Pretty printing means reformatting an XML document by adding line breaks and indentation to reveal its hierarchical structure. The content doesn't change: it just becomes much easier to read for whoever needs to inspect or fix it.
No. Formatting, minification and validation all happen entirely in your browser using native language APIs. No data is uploaded to our servers, so you can safely format SAML assertions and confidential content too.
Yes. The tool is designed exactly for IAM scenarios: it handles namespaces (such as saml: and samlp:), self-closing tags, comments and CDATA sections, so you can indent SAML responses, IdP/SP metadata and SSO configurations.
Formatting (pretty print) adds line breaks and indentation for readability; minifying does the opposite, removing redundant whitespace and line breaks to reduce file size — handy before transmitting it or storing it in a configuration field.
The tool checks that the XML is well-formed and flags any syntax errors with a dedicated message. It does not, however, validate against an XSD schema or the specific rules of the SAML profile.