Formatter and validator JSON · XML · Client side only
Waiting for input

Choose JSON or XML, paste your data into the left panel, then use the buttons to format and validate. On success you get a pretty printed version on the right. On error you get a human readable message with the parser’s feedback.

Input Paste raw JSON or XML here
Formatted output Created only after a successful parse
JSON mode. Uses JSON.parse and JSON.stringify for strict syntax checking.
Paste JSON or XML on the left and choose the appropriate mode. Valid data will be reformatted on the right; any syntax errors will be reported here using the browser’s parser feedback.