๐Ÿ”’ Runs in your browser โ€” nothing is uploadedโœ“ Free, no signup

JSON Editor Online

Edit JSON with syntax highlighting and live validation, see it as a tree as you type, and format, minify or sort keys in one click.

โœ“ Valid JSON

Editor

Loading...
      }
      }
    }

When should you use the JSON Editor?

  • Editing a config file such as package.json or tsconfig.json
  • Tweaking an API request body before sending it
  • Cleaning up JSON โ€” format, minify or sort keys โ€” then downloading it

How to use the JSON Editor

  1. 1

    Edit your JSON

    Type or paste into the editor. Brackets match, and errors are underlined as you type.

  2. 2

    Check the status

    The bar shows Valid JSON or Invalid JSON, and the error message appears under the editor.

  3. 3

    Use the tools

    Format pretty-prints, Minify compresses, and Sort keys orders every object alphabetically.

  4. 4

    Save your work

    Copy the JSON or download it as data.json.

Examples

Sort keys

Before

{ "version": "2.0.0", "name": "app", "private": true }

After Sort keys

{
  "name": "app",
  "private": true,
  "version": "2.0.0"
}

Common errors and how to fix them

Format and Minify are greyed out
They only work on valid JSON. Fix the error shown under the editor first.
My changes disappeared
Nothing is saved automatically. Copy or download your JSON before leaving the page.
Related tools:ย JSON Viewer ยท JSON Formatter ยท JSON Validator

More from JSON Tools

Free tools that run in your browser โ€” no signup, nothing uploaded.

JSON Editor FAQ

Yes โ€” free to use with no signup and no limits.

Yes. Errors are underlined in the editor and the status bar shows whether the JSON is valid.

It reorders the keys of every object alphabetically, including nested objects. Array order is left unchanged.

No โ€” nothing is stored, for privacy. Use Copy or Download before you close the page.

Yes, files of several megabytes work well. The tree view may be slower for very large documents.

No. Everything runs in your browser, so your JSON never leaves your device.