Dev Tools

JSON Tools

Format, validate, compare, and convert JSON in this browser. Nothing is uploaded.

8 tools · 100% browser-based · No uploads · No signup

About these JSON tools

JSON is the default payload for APIs, config files, and browser storage. These tools format, validate, compare, and convert JSON in the page you already have open. Nothing is posted to a server, which matters when the payload includes tokens, PII, or internal URLs.

Start with the formatter if the document is minified or you need to see structure. Use the validator when a parser fails and you want the first syntax error with a line number. Diff two responses after an API change. The table and visualizer views help when an array of objects is easier to scan than nested braces.

Tools in this category

How these tools run in your browser

Every JSON tool here calls JSON.parse and related helpers in your browser. Large documents stay in memory on this tab. We do not stream the text to OneDev or a third-party formatter API.

JSONPath testing evaluates expressions against the parsed object. The type generator infers types from the values it sees, so optional fields that are missing in the sample will not appear. Diff compares parsed structures, not raw strings, so key order and whitespace do not count as changes.

Common Use Cases

  • Pretty-print a minified API response before you file a bug
  • Check a hand-edited config for a missing comma or trailing comma
  • Compare staging and production JSON without uploading either file
  • Turn a JSON array into a sortable table or export CSV
  • Generate TypeScript interfaces or Go structs from a sample payload

Common Mistakes

JSON does not allow trailing commas, comments, or single quotes. Those are JSONC or JavaScript.
A type generator only sees the sample you paste. Null vs missing keys and union types need a human pass.
Duplicate keys are invalid in the spec; engines keep one of them and hide the bug.
Mega-files (tens of megabytes) can freeze a tab. Split the document or use a local CLI for those.

Frequently Asked Questions

Is it safe to paste production API responses here?

The text never leaves this browser tab. Still treat secrets with care: a compromised extension could read the page. For highly sensitive dumps, prefer a local editor.

Why does valid JavaScript object literal fail the validator?

JSON is stricter than JS. Keys must be double-quoted, there are no comments or trailing commas, and undefined is not a value. Convert the literal to JSON first.

Formatter vs validator: which should I open?

The formatter pretty-prints and will refuse invalid input. The validator is better when you only need the error location and do not want the document rewritten.