Tools

JSON formatter, validator & repair tool

Format, validate, repair, and minify JSON in the browser

Empty Serverless: your data never leaves the browser

About this tool

JSON (JavaScript Object Notation) has become the most widely used data interchange format in web development and REST APIs. Its specification is strict: keys must be in double quotes, values can be strings, numbers, booleans, null, arrays, or nested objects, and trailing commas and comments are not allowed. Any deviation from these rules causes the parser to completely reject the document.

When JSON arrives compressed on a single line, error detection becomes difficult. Parsers indicate the character number where the problem lies, but locating that character among thousands of consecutive characters can be frustrating. Formatting with proper indentation transforms an unreadable JSON into a clear hierarchical structure where errors are immediately visible.

This tool formats, validates, and compresses JSON. Paste any JSON regardless of its formatting state and get a correctly indented version with syntax highlighting. If it contains errors, the validator pinpoints them precisely. All processing happens in the browser, without sending data to any server.

When the JSON is invalid, the Repair button proposes a corrected version: it turns single and curly quotes into double quotes, quotes keys, removes trailing commas, comments, and Markdown fences, translates Python literals (True, False, None), and joins NDJSON objects into an array. The proposal does not replace your text until you accept it: first you see the list of corrections and a line-by-line diff, with warnings when a value changes type or when the JSON looked truncated. Some errors cannot be fixed safely by any repair tool, such as a decimal written with a comma; in those cases the line, column, and most likely cause are shown. Once valid, the JSON can be sent to the CSV converter.