JSON Editor Online

Use this editor to paste or type a JSON document and inspect its parsed structure beside the source. Formatting, minifying, key sorting and the download are performed in your browser. The editor accepts strict JSON only.

How to use the JSON editor

  1. 1

    Add JSON

    Paste a JSON object, array or value into the source field.

  2. 2

    Check the structure

    The adjacent preview is updated after the document parses successfully.

  3. 3

    Choose an action

    Format, minify, sort object keys recursively, or download the current text as a JSON file.

What this editor does

  • Parse and preview strict JSON in a formatted structure view.
  • Format the current document with an indentation of 2, 4, or 0 spaces.
  • Minify by removing optional whitespace.
  • Sort object keys alphabetically, including nested objects. Array order is preserved.
  • Download the current JSON text as data.json.

Valid JSON reminders

  • Use double quotes for object keys and string values.
  • Do not use trailing commas, comments, undefined, NaN, or Infinity.
  • If the document is invalid, the editor shows the browser parser message and does not create a structure preview.

Privacy

Your JSON is processed in the browser. In the multi-step flow, the current text is kept only in that tab’s session storage so it can move between the tool pages; it is not added to the URL or sent to our servers.

Frequently Asked Questions

No. Parsing and editing run locally in the browser. Funnel state stays in the current tab session and is not put in the URL or sent to our servers.

The editor uses the browser JSON parser, so it accepts strict JSON. JSON5, JSONC, comments, trailing commas and single-quoted strings are not supported.

It alphabetizes keys in each JSON object, including nested objects. It does not reorder array items.

Related Tools

Tool available in other languages