JSON Formatter & Converter

Free online JSON tool: format, minify, validate and escape JSON, expand or collapse nodes in a tree view, and convert between JSON and XML. Everything runs locally in your browser.

What this tool does

  • Format and minify: paste compact JSON and expand it with 2-space indentation, or squash it back into a single line for config files and request bodies
  • Validation: when parsing fails it reports the exact line and column, so you stop counting characters by eye
  • Tree view: switch the result to a collapsible tree and open or close nodes one level at a time
  • Escaping and XML: turn JSON into an escaped string, or convert between JSON and XML

Tips

Parsing happens entirely in your browser — API payloads and configs are never uploaded. Minifying usually saves 20–40% of the size. When converting to XML the root element is always root and array items become repeated tags; converting back merges same-named siblings into arrays and keeps attributes with an @ prefix.

    Rating
    5 stars · Excellent
    Code
    No reviews yet — be the first to write one.