Is "pretty print" the same thing as "format"?
Yes — for XML, "pretty print" and "format" are two names for the same operation: parse the document, then re-emit it with consistent indentation. Some communities (especially Java and database tooling) use "pretty print" while others use "format". Both end up at the same place. The canonical version of this tool lives at the XML Formatter page; this page exists to match the wording you searched for.
How deep does the indentation go?
There is no fixed limit — every nested element gets one additional indent level. A SOAP envelope typically reaches 5–8 levels deep; XML configuration files (Spring, log4j) can hit 10+. The pretty printer scales linearly: deeper trees just produce longer lines of leading whitespace, never a depth cap.
Does the pretty printer wrap long attribute lines?
No — attributes stay on the same line as the element they belong to, even when an element has many of them. This matches the behaviour of most XML formatters and is the default convention for SOAP, XHTML, and Spring beans. If a single line gets long, scroll horizontally; the alternative (one attribute per line) breaks tooling that expects elements on a single line.
Why have a separate "pretty print" page if it equals "format"?
Search behaviour. Some developers (especially those coming from SQL Server, Oracle, or older Java tooling) only use the term "pretty print" — they will not type "format" into a search box. Having both pages with the same engine ensures everyone reaches the right tool regardless of vocabulary. For the canonical, fully-featured tool, see the XML Formatter.
Will pretty-printing change attribute order or values?
No. The pretty printer is indent-only — it walks the parsed DOM in document order and emits attributes exactly as they appeared. Attribute names, quote characters, values, and namespace prefixes are preserved. The only thing that changes between input and output is whitespace.
Does pretty-printing damage CDATA or processing instructions?
No. CDATA sections (<![CDATA[ ... ]]>) and processing instructions (<?xml ?>, <?xml-stylesheet ?>) are passed through verbatim. The indent operation only touches whitespace between elements, so embedded code, scripts, and binary text inside CDATA survive unchanged.
Can I pretty-print XML with mixed content?
Yes, with one caveat: elements that contain both text and child elements (think XHTML paragraphs with inline tags) are detected and left on a single line so the visible text reads correctly. Pretty-printing those nodes onto multiple lines would inject visible whitespace into the rendered text.
Is my XML uploaded to your servers?
No. Pretty-printing happens in JavaScript in your browser using the native DOMParser. Your XML never leaves the device. Confirm in DevTools → Network: clicking Pretty Print produces zero network traffic.