Does the formatter send my JSON to a server?▾
No. All formatting and validation runs entirely in your browser using the native JavaScript JSON engine. Nothing is uploaded, stored, or transmitted — making it safe for tokens, credentials, and private data.
What is the difference between prettify and minify?▾
Prettify adds consistent indentation and newlines so the structure is human-readable. Minify strips all unnecessary whitespace to produce the smallest possible string, which reduces payload size for HTTP requests or inline scripts.
Why does the formatter say my JSON is invalid when it looks correct?▾
Common causes include trailing commas after the last item in an object or array (not allowed in JSON), single-quoted strings instead of double-quoted, or JavaScript-style comments. The error message shows the exact line and column to help you find the issue quickly.
Can I format JSON5 or JSONC (JSON with comments)?▾
The formatter follows the strict JSON specification. JSON5 and JSONC extensions such as comments and trailing commas are not valid JSON and will trigger a parse error. Remove comments before formatting, or use a dedicated JSON5 parser.
Is there a size limit on the JSON I can paste?▾
There is no hard limit enforced by the tool. Very large files (tens of MB) may be slow to render because the browser must parse and then syntax-highlight the entire payload, but for typical API responses and config files there is no practical constraint.
Can I use this to compare two JSON objects?▾
This tool focuses on formatting and validation. For structural comparison, use the JSON Diff tool in the Data category, which shows added, removed, and changed keys side by side.
Does it preserve key order?▾
Yes. The formatter uses JSON.parse followed by JSON.stringify, which preserves the order of keys as they appear in the original input. It does not sort keys alphabetically unless you explicitly choose a sort option.
Can the tool format a JSON array at the root level?▾
Yes. The root of a JSON document can be an object, an array, a string, a number, a boolean, or null — all are valid according to the spec and are handled correctly by the formatter.