Related Tools
Related Tools
The JSON Formatter pretty-prints or minifies JSON, and when the parser rejects it, points at the line and column that broke and prints that line with a caret under the offending character. Built for debugging API responses and config files where the error is somewhere in 300 lines you didn't write.
The guide behind this tool
JSON Errors Explained: Trailing Commas, NaN and Other Rejections
Why valid-looking JSON fails to parse, how to read a parser's error position, and the number precision bug that silently corrupts large IDs.
Paste your JSON, or drop a .json file straight onto the input box.
Choose Format with 2 spaces, 4 spaces or tabs, or switch to Minify to strip every byte of whitespace.
Copy or download the result, or follow the caret to the character that broke the parse.
You get the line and column, plus the line itself with a caret under the exact character, instead of just "Unexpected token at position 412". Long or minified lines are windowed around the error so the caret stays on screen.
18+ Free Tools
Explore all categories
From text processing to developer utilities, all free, all instant, no sign-up.