JSON input
Formatted result
Enter JSON on the left, then pick an operation above
JSON A
JSON B
Enter JSON A and B, then click "Compare"
Output
Enter JSON and a JSONPath expression, then click "Query"

JSON Formatter, Validator & Converter

A browser-only JSON toolbox that keeps the everyday jobs in one place: format, minify, validate, sort, escape and tree view, plus diffing, format conversion and JSONPath queries.

Every parse and conversion happens inside your browser, so the JSON itself never reaches a server. If you spend your day pasting API responses, config files and log fragments, that matters more than any single feature.

Features

How to use

  1. Paste or type your JSON in the editor on the left, or click "Sample" to load demo data.
  2. Pick a tab on the right: Basic, Diff, Convert or JSONPath.
  3. Under Basic, click Format, Minify or Validate; the output appears in the result panel below.
  4. Diff and Convert need two inputs — fill in both sides as prompted, then run.

FAQ

Is my JSON uploaded anywhere?

No. Parsing, formatting, diffing and conversion are all done by JavaScript in your browser, and the page contains no code that sends JSON to a backend. You can keep using these features offline once the editor dependency has loaded.

Validation fails, but the JSON looks fine. Why?

The four usual suspects are a trailing comma after the last item of an object or array, single quotes instead of double quotes, a literal newline inside a string that was never escaped, and an invisible BOM at the start of the file. The error message includes the position, so moving the cursor there usually reveals the problem.

How is JSON different from a JavaScript object literal?

JSON requires double-quoted keys, forbids trailing commas and comments, and has no undefined, functions or single-quoted strings. Object literals allow all of those, which is why copying an object straight out of JavaScript source often fails validation.

How large a JSON document can it handle?

That depends on the memory your browser has available; a few tens of megabytes is normally fine. For hundreds of megabytes, reach for a command-line tool such as jq — the browser editor gets noticeably sluggish at that size.

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also: Browse existing issues · Email feedback (no GitHub account needed): 278975598@qq.com