Rapid Age Calculator
What do you want to work out?

JSON Editor Online

Paste or type JSON and the editor checks it against the strict JSON standard, RFC 8259, then reports valid or invalid with the line and column of the first error. You can pretty-print with the indent you prefer, minify, sort keys and browse the data as a tree. The text stays in your browser and is not uploaded.

Edit and check your JSON

Fill in the boxes. The answer and the working update as you type.

Paste or type JSON. It is checked in your browser and is not uploaded.

Result

Fill in the boxes above to see the answer and every step.

All sources

What counts as valid JSON

The steps of the worked example appear here.

The text is parsed strictly as RFC 8259 sets out. Comments are not allowed, trailing commas are not allowed, and single quotes, NaN and Infinity are rejected. The top level can be any JSON value. A leading byte order mark is removed with a notice and is never written back on download. Duplicate names are flagged as a warning, because the standard says names should be unique but does not say what happens when they are not. Integers larger than 9,007,199,254,740,991 cannot be held exactly by JavaScript numbers, so the lossless option keeps the original digits in the text. The key-sorted, minified form of the sample object is {"a":[true,null,"x"],"b":1}.

Worked example

An object with one member followed by a comma and then a closing brace is rejected, because a trailing comma is not allowed. The editor reports a SYNTAX error at line 1, column 8, pointing at the closing brace, so you can fix it without hunting through the text.

Format, minify and sort keys

The key-sorted, minified form of the sample object is {"a":[true,null,"x"],"b":1}.

If it is valid you can format it with the indent you prefer, minify it, sort the keys and browse it as a tree.

Frequently asked questions

How to use JSON editor online?

Paste your JSON into the editor. If it is valid you can format it with the indent you prefer, minify it, sort the keys and browse it as a tree. If it is not valid, the message gives the line and column of the first error. A trailing comma in the example is reported at line 1, column 8.

Related tools

Results follow the rules shown above and are for guidance. For formal use, check them against your form, contract or the official source.