THE PRECISION JSON TOOL

Shape data.
Keep the signal.

Paste raw JSON on the left, get clean structured output on the right — then repair, convert, query and diff it without leaving the page.

● LOCAL ONLY NO SIGN-UP 13 CONVERSIONS DARK / PAPER
NODES
—
DEPTH
—
SOURCE
—
STATE
READY

JSON formatting workbench

workspace.json — live session
INDENT
SORT
01 / RAW INPUT 0 LINES · 0 B
02 / FORMATTED OUTPUT 0 LINES · 0 B
Awaiting input ⌘/CTRL + ↵ TO FORMAT
RESULT / CONVERT
// Result will appear here
BUILT FOR REAL WORK

Everything you need in one bench.

01 / PRECISION

Live dual-pane editing

Edit raw text or switch either pane to a collapsible tree. The output updates as you type.

02 / REPAIR

Forgiving parser

Comments, trailing commas, bare keys and Python literals are normalized before validation.

03 / CONVERT

Mature libraries

js-yaml, PapaParse, fast-xml-parser and jsonrepair do the heavy lifting in your browser.

04 / INSPECT

Query, schema, diff

Run full JSONPath expressions, infer a draft 2020-12 schema or compare documents structurally.

START FROM A PROBLEM

Four jobs this page handles without a script.

  1. 01

    A log dump that will not parse

    Python dicts, single quotes, comment headers and truncated tails are the usual culprits. Repair rewrites the source text before parsing and lists every change it made, so you can see the fix instead of trusting it.

  2. 02

    Two configs that should be identical

    Diff them instead of reading both. Added, removed and changed values come back with JSONPath locations, so a staging-to-production drift is a one-line answer.

  3. 03

    Data that needs to leave the API

    The same object can go out as YAML for a manifest, CSV for a spreadsheet, XML for a legacy endpoint, NDJSON for a bulk importer or TypeScript for the client that consumes it.

  4. 04

    A payload nobody documented

    Infer a draft 2020-12 schema from the records you have, or run a JSONPath query to pull the one field out of a 5 MB response you actually care about.

ANSWERS

Frequently asked questions

Is my JSON data uploaded to a server?

No. Parsing, formatting, conversion, validation and comparison all run in your browser with JavaScript. Your data is never transmitted, and history is stored only in your local storage.

How do I fix invalid JSON with comments or trailing commas?

Keep Repair enabled. bracekit strips line and block comments, removes trailing commas, quotes unquoted keys and converts Python-style literals before validation.

What indentation options are supported?

You can choose 1, 2 or 4 spaces, tabs, or compact single-line output. You can also sort object keys, escape Unicode, switch line endings and control the trailing newline.

Can I convert JSON to YAML, CSV or XML?

Yes. The advanced module converts JSON to YAML, CSV, XML, query strings, Base64, NDJSON and TypeScript, and every one of those except TypeScript also converts back.

Does it support JSONPath queries?

Yes. The Query module supports dot notation, bracket notation, array indexes, wildcards, recursive descent and filters such as @.price > 10.

How is the JSON Schema generated?

The Schema module inspects your sample document and infers a draft 2020-12 schema with types, required fields, item schemas and common string formats.

TOOL MATRIX

Keep exploring

Keyboard shortcuts
FORMATTING
Format input Ctrl/⌘ + Enter
Toggle auto-format Ctrl/⌘ + Shift + A
CLIPBOARD & FILES
Copy output Ctrl/⌘ + K
Open JSON file Ctrl/⌘ + O
Download output Ctrl/⌘ + S
Save snippet Ctrl/⌘ + Shift + N
MODULES
Open find & replace Ctrl/⌘ + Shift + F
Lock / unlock output Ctrl/⌘ + Shift + L
Show this dialog Ctrl/⌘ + /
Local history
Save snippet
Erase local data

Nothing is stored in this browser yet.

Removes the saved draft, history, snippets and formatting options for this site. Documents you typed stay in the editor until the page reloads.