Online JSON Editor
FV-46Edit JSON in a text pane and see it checked as you type. A tree view on the right shows the structure, and Format or Minify rewrites the text in one press.
Runs in your browser. Nothing is uploaded.
JSON
Your draft is saved in this browser only. Clear removes it.
View
How to use it
- Paste JSON, open a .json file, or press Sample to see an example.
- Read the status line. If there is an error, press Go to error to select it.
- Switch between Tree and Formatted on the right to read the data.
- Press Format or Minify, then copy, save or download the JSON.
Checked as you type
The text is read against the JSON standard on every pause in typing. The first problem is reported with its line and column, and Go to error selects it in the editor. Comments, trailing commas, single quotes and unquoted keys are errors here, as they are in standard JSON. When the JSON is valid, the status line says whether the top level is an object or an array and how many keys or items it holds.
Numbers stay exact
Many tools read JSON into JavaScript numbers, which round integers longer than about 16 digits. This editor keeps every number and string exactly as written, so an ID like 12345678901234567890 comes back unchanged after Format or Minify, and 1.50 stays 1.50. Sort keys orders object keys by character code before formatting. Arrays are never reordered, since their order carries meaning.
Reading the tree
The tree shows each key with its value and type, with objects and arrays as sections you can open and close. It is for reading and finding things; edits are made in the text pane. Very large files show the first 5,000 nodes, with a count of what is left out, so the page stays usable.
Questions people ask
How do I find an error in my JSON?
Paste the JSON and read the status line. It names the first problem, such as a missing comma or an unexpected character, with its line and column. Press Go to error to jump the cursor there. Fix it and the check runs again by itself.
Does it accept comments or trailing commas?
No. Standard JSON allows neither, and this editor follows the standard, so both are reported as errors with their position. If you need comments, remove them before using the JSON elsewhere, because most JSON readers will reject them too.
Can I edit values in the tree view?
No. The tree is read-only and is there to help you scan nested data. Make your changes in the text pane on the left; the tree updates as you type.
Will Format change my numbers?
No. Format and Minify only change whitespace and, if you tick Sort keys, the order of object keys. Long integers keep every digit and decimals keep trailing zeros, because the values are copied as written rather than converted to JavaScript numbers.
Is my JSON uploaded?
Nothing is uploaded. The editor runs in your browser, and your draft is saved only in this browser's local storage so it is there when you come back. Clear removes it. Share link puts the text in the link itself, so only people you send the link to can see it.
About this tool
The JSON is checked as you type against the JSON standard, and the first error is reported with its line and column. Numbers and strings are kept exactly as written, so a 20-digit ID is not rounded. Format and Minify rewrite the text in the editor; undo brings the old text back. Sort keys orders object keys by character code and never reorders arrays. The tree view is for reading: edit in the text pane. It shows up to 5,000 nodes and counts the rest. Comments and trailing commas are errors, as in standard JSON. Your draft is kept in this browser only.