JSON Editor
runs in your browserno sign-upfree
A full-page JSON editor with live validation, formatting, minifying, key sorting and one-click repair.
Valid JSON
object · 11 keys · depth 3 · 254 B · 10 linesAbout this tool
This JSON editor gives you one large editor to paste, read and change JSON, with syntax highlighting, code folding and search. It checks your JSON as you type and shows the type, number of keys, depth and size, and warns about duplicate keys. When you need it, one click formats, minifies or sorts the keys in place, and Repair fixes common mistakes such as trailing commas, single quotes, missing quotes around keys and comments. Everything runs in your browser, so your data never leaves your device.
How to use
- Paste or type JSON into the editor, or open a .json file from your computer.
- Watch the status line under the editor: it says whether the JSON is valid, and where the first error is if it is not.
- Use Format, Minify or Sort keys to change the text in place, and Repair to fix broken JSON.
- Use Full screen for more space, and fold or unfold blocks to focus on one part.
- Copy the result or download it as a .json file.
FAQ
How is this different from the JSON Formatter?
The JSON Formatter shows your input and the formatted result side by side. The JSON Editor has a single, larger editor: actions such as Format and Minify change the text in place, so it is better for reading and editing one document.
What can Repair fix?
Repair fixes common problems: trailing commas, single quotes, keys without quotes, comments, missing commas or brackets, and Python values like True, False and None. It then formats the result. Always check the repaired JSON, because a guess is involved for badly broken text.
Can I undo an action?
Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo Format, Minify, Sort keys or Repair, just like a normal edit.
What are duplicate keys and why are they a problem?
A duplicate key is the same key used twice in one object, such as two "name" entries. JSON parsers usually keep only the last value without any warning, so data can silently go missing. The editor lists them so you can fix them.
Is my JSON sent to a server?
No. Editing, validation and every action run in your browser. Your last JSON is only saved in this browser so it is still there when you come back. Press Clear to remove it.
Are there keyboard shortcuts?
Ctrl/⌘ + Enter formats the JSON, Ctrl/⌘ + F opens search inside the editor, and Esc leaves full screen.