Format and check
Adds readable indentation and tells you where invalid JSON is probably broken.
Paste JSON or open a .json file. Make it readable, find syntax errors, sort object keys, create a compact copy, or explore the data as a tree.
Your JSON stays private. It is processed entirely in this browser tab. It is not uploaded, logged, or sent to an API.
Then choose Format, Compact, Sort, or Tree view. Your JSON itself is never saved.
Adds readable indentation and tells you where invalid JSON is probably broken.
Compact removes unnecessary spaces. Sort puts object keys in A–Z order while leaving array order alone.
Browse nested objects and arrays by opening and closing sections instead of reading one long block of text.
JSON is a plain-text format used by websites, apps, APIs, and configuration files to store structured data such as names, settings, lists, and values.
Object key order should not carry meaning in JSON. Arrays can depend on order, so this tool never rearranges array items.
JSON requires double-quoted property names and strings. It does not allow comments, trailing commas, undefined, functions, NaN, or Infinity.
The formatter does not transmit the text. You should still remove passwords, API keys, and other secrets before sharing the formatted result with someone else.