Back to tools
JSON & XML Validator / Formatter
Paste JSON or XML — it's auto-detected, validated, and pretty-printed with the exact line and column of any error. Includes a collapsible tree view and a JSON ⇄ XML converter. Everything runs in your browser; nothing is uploaded.
Input
Paste JSON or XML
Format is auto-detected as you type. Override it below if detection guesses wrong.
Need YAML instead? JSON/XML only here — try the YAML Validator.
Validation
Result
Valid JSON (auto-detected)20 lines · 340 B
Output
Formatted document
output
{
"server": "wespner-vps-01",
"region": "eu-central",
"players": 42,
"modded": true,
"plugins": [
"EssentialsX",
"WorldGuard",
"LuckPerms"
],
"backup": {
"enabled": true,
"schedule": "0 3 * * *",
"retentionDays": 14
},
"owner": {
"email": "[email protected]",
"discord": "wespner#0001"
}
}This conversion is lossy — be aware of the conventions.JSON has no native attribute concept, so XML attributes become "@name" keys and element text becomes a "#text" key. JSON arrays have no direct XML equivalent, so array items are re-emitted as repeated sibling elements. Mixed content (text interleaved with child elements) collapses to "all text, concatenated" plus the child elements — order between them is not preserved.
Source
Convert
Result
Converted output
output
Paste a document on the left and press Convert.
Running your own game server?
Wespner game servers with DDoS protection, NVMe drives and activation within minutes.