Hochreiter Software & IT Services
Home › Tools › JSON & XML Formatter

JSON & XML Formatter

Paste on the left, get it cleanly indented on the right - the format is detected automatically. Minify instead if you prefer. Runs entirely in your browser, nothing is transmitted.

Options

Input

0 characters

Formatted

0 characters · 0 lines

In brief

The formatter turns nested data into a readable shape - or the other way round, into the most compact one possible. Along the way it also checks whether the input is valid at all.

BeautifyIndents every level and adds line breaks - a long single line becomes a clear tree structure.
MinifyRemoves all superfluous spaces and line breaks. Handy for making JSON/XML small for transmission or embedding.
Auto-detectionIf the input starts with { or [ it is treated as JSON, and as XML if it starts with <. You can also pick the format explicitly.
ValidationIf the input is malformed, a message appears - for JSON with the line and column of the problem.
All localProcessing happens entirely in your browser. Nothing is sent to a server - not even sensitive data from your documents.
Copied