JSON Formatter & Validator
Beautify, minify and validate JSON with clear error messages.
JSON Formatter & Validator
Your data is processed locally in your browser and is not uploaded to OZVILO servers.
How to use the JSON Formatter & Validator
- 1Paste your JSON, or load the sample.
- 2Press Format to beautify it, Minify to compress it, or Validate to check it.
- 3If there's a syntax error, use the line and column shown to find it.
- 4Copy the output or download it as a .json file.
Examples
Minified to formatted
- Input
- {"name":"OZVILO","free":true}
- Result
- { "name": "OZVILO", "free": true }
Common mistake
- Input
- {"a": 1,}
- Result
- Invalid — standard JSON doesn't allow a comma before }
Frequently asked questions
Is my JSON executed or sent anywhere?
No. The tool uses the browser's built-in JSON parser, which only reads data and never runs code. Your JSON stays in your browser.
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, comments, and values like undefined or NaN. Standard JSON allows none of these.
Why did a very large number change?
JavaScript stores numbers with about 15–17 significant digits, so very large integers (such as some IDs) may lose precision when parsed. Store such values as strings if exact digits matter.
What does “Sort keys” do?
It orders object keys alphabetically at every level, which makes two JSON files easier to compare. Array order is never changed.
Related tools
- Available
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 back to plain text.
Developer ToolsOpen tool - Available
URL Encoder/Decoder
Percent-encode or decode URLs and query strings safely.
Developer ToolsOpen tool - Available
UUID Generator
Generate secure random version 4 UUIDs, one at a time or up to 1,000 at once.
Developer ToolsOpen tool - Available
SHA-256 Generator
Create SHA-256 hashes of text or files in your browser and check them against an expected hash.
Developer ToolsOpen tool