XML formatter
Validate and pretty-print inert XML without loading external entities or resources.
How it works & useful details
Safe XML formatting
XML is parsed as inert local data and written with two-space indentation. Comments, CDATA, basic attributes and element/text content are supported. Formatting does not load schemas, follow links, or request external resources.
DTD and entity declarations are rejected before parsing to avoid external/entity expansion behavior. Mixed text-and-element content stays compact to preserve its order.
Private, bounded processing
This workspace parses text only in your browser. It never opens links, requests external entities, runs pasted configuration, or saves your document. Input is limited to 500,000 characters; conversion output is limited to 1,000,000 characters.
