About the JSON Editor
A text box is a poor place to edit JSON. This editor gives you a real code editor with syntax colouring, matching brackets, code folding for large objects, search and replace, multiple cursors, and undo history. Every keystroke is validated: a syntax error is underlined at its line and column and described in plain words, so you know about a trailing comma or a missing quote before you paste the result anywhere.
The right pane shows the current document in the form you choose: formatted with your indent, minified to one line, or with keys sorted alphabetically at every level. That means you can edit in a readable layout and copy out the compact form, or paste minified JSON, fix it in the editor and copy out a pretty version. Upload loads a file into the editor; Download saves the result.
Use it for tweaking an API payload before a request, correcting a config file, or building a fixture by hand. Nothing leaves your browser. For automatic repair of badly broken input, run it through the JSON Fixer first; for a collapsible read-only view of a large document, the JSON Viewer.
How to use
- Paste or upload JSON, or start from the sample.
- Edit in the left pane. Errors are underlined as you type and the right pane updates when the document is valid.
- Choose formatted, minified or sorted output, then copy or download it.
Common questions
- Can I fold sections of a large document?
- Yes. Click the arrows in the gutter next to any object or array to collapse it.
- Does it autocomplete or add closing brackets?
- Bracket matching highlights pairs and indentation follows nesting. Auto-closing is deliberately off so pasted text is never altered.
- How do I search inside the JSON?
- Click into the editor and press Ctrl+F (Cmd+F on Mac) for search and replace.
- Is my document saved anywhere?
- No. It exists only in your browser tab; download it if you want to keep it.