Work through the task
Indent supported element-only XML without reflowing mixed text.
- Enter XML and choose the offered indentation.
- Review the output as text. Element-only children can be indented, while mixed text and its order must remain meaningful.
- Review the result before copying or downloading. Editing an input invalidates the previous result; keep an original if the transformation matters.
Example to check
<r>before <b>bold</b> after</r> keeps the mixed text “before bold after”.
Limits and output behavior
Source is limited to 100,000 characters. JSON/YAML/TOML have 10,000 values and 40 data levels; XML has separate node/attribute and element-depth guards. Comments, numeric spelling and other lexical formatting may normalize. YAML aliases/custom tags and TOML null values are unsupported. XML 1.0 only; one root, no DTD/custom entities or external resources. This is not XML canonicalization or application-schema validation.
Troubleshooting
Correct malformed tags and unsupported declarations before beautifying. Check namespaces and the one-root/node/depth limits; external entities are never fetched.
Questions
Can every element be placed on a new indented line?
Element-only children can be indented. Mixed content keeps its meaningful text and order rather than being reflowed as a generic pretty-printer.
Input and privacy
Processing runs in this browser. Inputs are not saved automatically. An explicitly chosen local draft, where offered, is plaintext storage on this device. Downloaded files, clipboard contents and browser extensions have separate retention behavior.