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.Version 1.1.0: Exact number text is preserved, stale results can no longer be copied, and large trees wait until you open them.
Then choose Format, Compact, Sort, or Tree view. Your JSON itself is never saved.
Keyboard: Ctrl/⌘ + Enter formats the current JSON.
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. The tree is built only when you ask for it.
Large integers, decimals, exponents, and negative zero keep the same numeric text you pasted instead of being rounded by JavaScript.
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. Special object keys such as __proto__ are preserved as ordinary JSON data.
No. The formatter preserves the exact numeric token from the source, including integers beyond JavaScript's safe range, decimal precision, exponent notation, and negative zero.
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.