Skip to content
littlekit.app
All tools

XML formatter

Validate and pretty-print inert XML without loading external entities or resources.

XML format85 characters
Paste configuration text. The live preview stays inert and is limited for responsiveness.
Formatted XML previewReady
<?xml version="1.0" encoding="UTF-8"?>
<catalog version="1">
  <book id="ada">Ada</book>
  <book id="grace">Grace</book>
</catalog>
Processed on your device

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.