Free tool · 100% in your browser

XML Pretty Print online: format and indent XML

Paste messy or minified XML — SAML metadata, Identity Provider responses, configuration files — and get clean, indented, readable output in one click. Everything runs in your browser: no data leaves 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 XML formatter built for people working with SSO, SAML, APIs and integrations: fast, private 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. 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. 2

    Format or minify

    Pick the indentation and press Format to get readable XML, or Minify to compress it.

  3. 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.

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.