Paste or open JSON
Paste a compact API response or open a local .json or .txt file.
Format, validate, minify, and inspect JSON in your browser without uploading your data.
Processing stays in this browser tab. No JSON is uploaded or saved by this tool.
Shortcut: Ctrl/Cmd + Enter
Paste a compact API response or open a local .json or .txt file.
Format for readability, minify for a compact payload, or validate without changing the text.
Inspect the formatted text or Tree View, then copy the result or download a JSON file.
Pretty-print valid JSON with 2 spaces, 4 spaces, or tabs.
See a clear parser message with the exact line and column of the first syntax error.
Remove unnecessary whitespace while preserving the original JSON values.
Expand and collapse objects and arrays when deeply nested data is hard to scan as text.
Number tokens are kept as written instead of being rounded through JavaScript number conversion.
Open a local JSON file, process it in your browser, then copy or download the result.
A formatter can only safely re-indent data after the JSON syntax is valid. This tool parses the full document first, reports the first error with a line and column, and only then creates formatted or minified output. If you are moving data into a spreadsheet workflow, Motricialy's Online CSV Editor can help with tabular data after conversion in your own workflow.
JSON strings require double quotes, object keys must be quoted, trailing commas are invalid, and comments are not part of standard JSON. The formatter does not silently “repair” invalid input, so you can see the exact problem rather than receive a changed document without review.
No. Formatting, validation, minification, and Tree View all run locally in your browser tab.
Yes. The formatter keeps JSON number tokens as text while parsing, so integers beyond JavaScript's safe integer range are not rounded during formatting.
Common causes include trailing commas, single quotes, unquoted property names, comments, or a missing bracket. The error message shows the first detected problem and its line and column.
No. V1 deliberately validates strict JSON rather than silently changing invalid syntax. This makes the transformation predictable and reviewable.
Yes. Open a local .json or text file, process it, and download the resulting JSON. For spreadsheet files, use the Online Excel Editor instead.