Data tools
JSON Formatter
Format, validate, and inspect JSON data locally in your browser. Validate, prettify, minify, sort, inspect, and export JSON entirely in your browser.
210
Chars
13
Input lines
4
Root items
object
Root type
Loaded sample JSON
Input
Paste raw JSON, clean JSONC, or load from clipboard
Output
Valid JSON ready in formatted view
{
"project": "Toolport",
"features": [
"json formatting",
"uuid generation",
"base64 conversion"
],
"seo": {
"strategy": "page-first",
"status": "active"
},
"browserOnly": true
}Fix a JSON parse error
Paste the response and validate it before changing the formatting. Start with the first reported error: one missing quote or comma can make the rest of a large payload look wrong. Tree view helps inspect nested data after it parses.
Trailing comma example
The input {"name":"Ada",} is invalid JSON. Remove the final comma, or use JSONC cleanup if the source also contains comments. The result {"name":"Ada"} can then be formatted, sorted, or minified.
Before using the output
JSONC cleanup changes the source text. Review the result before copying it into a configuration file or API request.