How to validate JSON and make it readable
Check the JSON record - a text data format - and arrange the lines and indents.
What to prepare
Open the tool using the button above and paste the text.
Procedure
Prepare your text
Insert JSON only, for example {"name":"Anna"}. Remove explanations and code block marks like ``` at the beginning and end.
Select settings
Choose beautiful formatting for reading or compact writing without unnecessary spaces. For a readable version, set the number of spaces in the indentation.
Click the button
Click "Format JSON" and wait until it's ready. If an error appears, read the message and check the file, text, or settings.
Save and check
Check the structure and values in the result. If there is an error, correct the source JSON according to the message, then run again. Download formatted.json if you need the file.
Tool Options
Some fields appear after selecting a mode. The default settings are shown here; They are subject to change on the website.
- Result
Arrange lines and indents for reading or remove extra spaces for compact writing.
- Indentation
How many spaces to use for each subsequent level of JSON notation.
Example
Indent formatting 2.
Was
{"name":"Анна","count":2}It became
{
"name": "Анна",
"count": 2
}Good to know
JSON requires double quotes. Comments and an extra comma after the last value are not allowed. The tool checks the record but doesn't know if the data itself, such as name or age, is correct.
Frequently asked questions
Where is the processing performed?
The tool runs on your device, right in your browser. Files and entered text for this operation are not sent to the server.
What to do if the result is not suitable?
Take the original file or text and try other settings in the steps above. Compare the new result with the previous one. The original files on your device remain unchanged.