Make JSON readable, without uploading it
Format and validate JSON locally, understand common syntax errors, and know when a browser formatter can change numeric values.
A compact JSON response is convenient for transport and awkward to read. Line breaks and indentation make the structure easier to inspect, especially when an object contains nested lists. TinyDing’s JSON formatter turns valid JSON into indented text in your browser.
Start with a small example
Paste this into the input and select Format JSON:
{"project":"TinyDing","small":true,"tasks":["format","ding","done"]}
The output adds line breaks and two spaces of indentation. The object’s values stay the same for this example. Choose Minify to remove unnecessary spacing again, or Copy result to put the output on your clipboard.
Formatting and minifying are different presentations of the same parsed data. Neither encrypts the content or makes a private value safe to publish.
Fix the source when validation fails
JSON requires double quotes around property names and string values. A trailing comma after the last property is invalid. Comments, undefined values, and JavaScript expressions are also outside the JSON format.
For example, {"done":true,} has a trailing comma. Remove the comma before formatting. TinyDing displays the browser parser’s error message rather than guessing how to repair your data. The exact message can differ between browsers.
An empty input is not a JSON value. The values null, false, an array, and a quoted string are valid JSON, even though they are not objects.
Be careful with large numbers
This tool parses JSON using JavaScript and then serializes it again. JavaScript’s safe integer range ends at 9,007,199,254,740,991. A larger integer can lose precision during parsing.
If a field is an identifier rather than a quantity, keep it as a string when the source format allows that. For data that must preserve exact numeric spelling, use a formatter specifically designed to avoid numeric conversion. Duplicate object keys are also not preserved as separate entries after parsing.
Understand the local processing boundary
Pasted JSON is processed in this page. The formatter does not upload it to a TinyDing server, and the tool does not save a history. Reloading clears the editor. Your browser still requests the website’s pages and assets from its host.
Copying a result writes to your system clipboard. Other software or a shared device may have access to clipboard contents, so replace API keys and other sensitive values before sharing an example.
Keep the task small
The formatter limits input to 1 MB of UTF-8 text. A very large export is better handled by a local editor or command-line tool that can process the file without blocking a browser tab.
When you are finished, copy the result where you need it and clear the editor. For a quick check between two versions, continue with Text compare.
Ready to take care of this little task?
Open json formatter ↗