Loading editor…

Tree $

Output initialises when this pane is visible.

Initialising…
0 B idle

What is JSON Editor Pro?

A full-featured workspace for reading, editing, and validating JSON locally.

JSON Editor Pro is an in-browser workspace for working with JSON documents. Paste API responses, config files, or test fixtures and inspect them as a collapsible tree, pretty-printed text, a side-by-side diff, schema-validated output, or converted formats — without sending data to a server.

JSON (JavaScript Object Notation) is the most common interchange format for web APIs and application configuration. Real payloads are often minified, deeply nested, or slightly invalid. This editor helps you format, find keys, compare versions, validate against a schema, and auto-fix common syntax errors in one place.

Everything runs in your browser. That matters when you handle production configs, customer data, or signed tokens — nothing is uploaded. See our guide on safe local JSON editing for a practical workflow.

How to use

Everything you need to know, one click away.

Quick start get going in seconds
  1. Paste or type JSON in the left pane — the status bar instantly tells you if it's valid.
  2. If parsing fails, click Auto-fix in the status bar to repair common syntax errors (trailing commas, unquoted keys, comments, and more).
  3. Choose a mode from the centre rail: Tree, Format, Diff, Schema, or Transform.
  4. Search using the top bar — results highlight across all views.
  5. Use the sidebar to import files, copy, paste, or load from a URL. Your work is auto-saved in the browser.
Tree view explore & edit nodes

Browse your JSON as a collapsible tree. Click any node to select it — its full path appears in the breadcrumb at the top of the pane.

  • Edit inline — changes in the tree sync instantly back to the code editor.
  • Search auto-opens parent nodes so every match is visible.
  • Copy path — grab the JSONPath of any selected node with one click.

Ctrl/⌘ + T

Format / Minify pretty-print or compact

Pretty-printed JSON appears on the right, ready to edit. Hit Minify to collapse it to one line, or toggle it off to expand again.

  • Wrap — toggle word-wrap for long lines.
  • Apply — push the formatted output back to the input pane.
  • Download — save the result as a .json file.

Ctrl/⌘ + S  ·  minify: Ctrl/⌘ + Shift + M

Auto-fix repair common JSON errors

When JSON fails to parse, an Auto-fix button appears in the status bar. One click runs a local repair pass and replaces the input with corrected JSON when possible.

  • Syntax cleanup — trailing commas, duplicate commas, missing commas between values.
  • Quotes & keys — single-quoted strings, unquoted identifier keys.
  • Comments & literals — strips // and /* */ comments; maps undefined, NaN, and Infinity to null.
  • Structure — closes unclosed { / [ brackets; can extract JSON wrapped in JS assignments like const data = ….

Always review the result before exporting — deeply broken payloads may still need manual editing.

Diff compare two JSONs

Paste a second JSON on the right ("B") and see exactly what changed from your input ("A"). Added, removed, and modified values are highlighted inline.

  • Sort normalises key order on either side before comparing — two identical objects with shuffled keys show zero differences.
  • Format / Minify each side independently.
  • Swap flips A and B in one click.

Ctrl/⌘ + D

Schema validation catch errors before they ship

Write or paste a JSON Schema on the right. Every violation in your input is reported instantly as a clickable error row — click it to jump straight to the problem line.

  • Infer from input — auto-generate a starter schema from your current JSON.
  • Dialect — switch between Draft-07, 2019-09, and 2020-12 with one click.
  • Errors also show as red highlights in the code editor, even after switching modes.

Ctrl/⌘ + E

Transform JSON → CSV / YAML / TOON

Convert your JSON to another format instantly. Pick the target from the toolbar chip and the output updates as you type.

  • CSV — arrays of objects become clean spreadsheet rows, nested values are safely encoded.
  • YAML — readable block-style output, strings quoted only when needed.
  • TOON — a compact, human-friendly notation with indentation-based nesting.
  • Copy / Download the result from the toolbar in one click.

Ctrl/⌘ + Shift + R

Search find any key or value

Start typing in the search bar to find any key or value across your entire JSON. Use the arrow buttons (or Enter / Shift+Enter) to step through every match.

  • Tree mode — ancestor nodes expand automatically so no match is ever hidden.
  • Code mode — matches highlight directly in the editor.
  • Your search carries over when you switch modes — no need to retype.

Ctrl/⌘ + F

File & clipboard import, export, paste
  • Import — open a .json or .txt file, or drag and drop it onto the editor.
  • Export — download the current input as a .json file.
  • From URL — fetch any CORS-enabled JSON endpoint directly.
  • Copy / Paste — works with the system clipboard; a fallback dialog appears if the browser blocks direct access.
Keyboard shortcuts work faster
Ctrl/⌘ + T Tree mode
Ctrl/⌘ + S Format mode
Ctrl/⌘ + Shift + M Toggle Minify
Ctrl/⌘ + D Diff mode
Ctrl/⌘ + E Schema mode
Ctrl/⌘ + Shift + R Transform mode
Ctrl/⌘ + F Search
Enter / Shift+Enter Next / previous match

Features

Everything JSON Editor Pro can do — all processed locally in your browser.

Interactive tree view

Explore and edit your JSON visually. Click any node to select it — its full path appears in the breadcrumb. Inline edits round-trip back to the code editor in real time.

Format & minify

Pretty-print with consistent 2-space indentation or collapse to a single compact line. The output pane is fully editable — make changes directly there without touching the input.

Side-by-side diff

Compare any two JSON documents. Recursive key sorting removes noise from key-order differences so you see only real structural changes. Each side can be formatted or minified independently.

Schema validation

Validate your JSON live against any JSON Schema using AJV. Supports Draft-07, Draft 2019-09, and Draft 2020-12. Errors appear as red squiggles on the input and clickable rows in the error list.

Transform to CSV / YAML / TOON

Convert JSON on the fly. CSV follows RFC 4180; YAML is block-style 1.2; TOON is a compact token-oriented notation with indentation-based nesting. Copy or download any result.

JSON auto-fix

One-click repair for common paste-and-copy mistakes — trailing commas, comments, unquoted keys, single-quoted strings, unclosed brackets, and JS-style wrappers. Appears in the status bar whenever JSON fails to parse.

Smart search

Search across all keys and values simultaneously. In tree mode, ancestor nodes auto-expand so every match is visible. Navigate hits with the arrow buttons or Enter / Shift+Enter.

100% private, works offline

All parsing, validation, and conversion happen entirely in your browser. Nothing is uploaded. Once the page is loaded, no network connection is required to work with your data.

Import, export & load from URL

Open a .json file from disk, drag & drop it onto the editor, or fetch JSON from any CORS-enabled URL. Export the input as a file or download the transformed output directly.

FAQ

Common questions about JSON Editor Pro. Click a question to expand.

Is my JSON data safe?

Yes, completely. All processing — parsing, formatting, diffing, schema validation, and transformation — happens entirely inside your browser. Your data is never sent to any server, never stored in the cloud, and never shared. The only persistence is your own browser's localStorage, which you can clear at any time.

Does it work offline?

Yes. Once the page has been loaded and the editor assets are cached, all features work without a network connection. The Monaco editor, AJV validator, and all transform logic run locally. The only time the network is used is to load CDN assets on the very first visit, and optionally when using "Load from URL".

What can Auto-fix repair in JSON?

Auto-fix handles many common non-standard JSON issues: trailing and missing commas, duplicate commas, single-quoted strings, unquoted keys, // and block comments, JavaScript literals like undefined, unclosed { / [ brackets, and text wrapped in assignments such as const config = …. It runs entirely in your browser. If repair fails, the error message in the status bar still points to the line that needs manual attention.

How large a JSON file can I work with?

The editor handles files up to several megabytes comfortably. Above 1 MB, some features like code folding are automatically disabled to keep the editor responsive. For very large files (10 MB+) you may notice slower tree rendering, but formatting, diff, and transform continue to work.

Which JSON Schema drafts are supported?

Draft-07 (default), Draft 2019-09, and Draft 2020-12 — all via AJV. The dialect is auto-detected from the $schema field in your schema document, but you can override it with the dialect chip in the Schema pane. An "Infer from input" button generates a starter schema from your current JSON automatically.

What is TOON format?

TOON (Token-Oriented Object Notation)

TOON (Token-Oriented Object Notation) is an experimental data serialization format designed to be more compact, token-efficient, and easier for AI systems and humans to process compared to traditional formats like JSON.

Core Idea

Traditional formats such as JSON contain a lot of structural punctuation like braces, commas, and quotation marks. TOON-style formats attempt to reduce this syntactic overhead while preserving structured data.

JSON Example

{
  "name": "John",
  "age": 25,
  "skills": ["JS", "Python"]
}

TOON-style Example

name: John
age: 25
skills[
  JS
  Python
]

Why “Token-Oriented”?

Large Language Models (LLMs) process text as tokens. JSON can become verbose because of repeated punctuation and quoted keys. TOON-style formats aim to reduce token usage, making prompts and structured data more compact for AI workflows.

Main Goals

Lower Token Usage

Reduces unnecessary syntax to save prompt space and improve AI context efficiency.

Better Readability

Minimizes clutter from braces, commas, and quotation marks.

Faster Parsing

Some implementations aim for deterministic parsing and lightweight streaming support.

AI-Friendly Structure

Optimized for agent memory, prompt engineering, and structured AI communication.

TOON vs JSON

Feature JSON TOON-style
Standardized Yes Usually Experimental
Verbosity Higher Lower
LLM Efficiency Moderate High
Browser Support Native Limited
Human Readability Good Often Better
Ecosystem Massive Small / Emerging

Important Note

TOON is not currently a universally standardized format. Different implementations may use different syntax rules and parsing strategies. When working with TOON, it is important to define or reference the specific grammar being used.

Related Formats

Potential Use Cases

  • AI Prompt Compression
  • Agent Memory Storage
  • Structured AI Communication
  • Lightweight Config Formats
  • Data Transformation Tools

Can I compare two JSON files that have different key orders?

Yes. Switch to Diff mode (Ctrl/⌘+D) and use the Sort button on each side. Sorting recursively normalises both object-key order and array element order before comparing, so two semantically identical JSONs with shuffled keys will show zero differences.

Other tools

Load JSON from URL

The URL must allow CORS. Plain JSON only.

Paste JSON

Clipboard access denied. Paste your JSON below.