jmautida.Web developer & toolmaker
Let’s talk
Developer

JSON formatter, validator & viewer

Make messy API responses readable, find the exact character that breaks your JSON, and convert data into the format you need next — all without pasting sensitive payloads into a server.

Runs in your browserFree · no sign-up
Loading JSON formatter & viewer…

How it works

How to use the JSON formatter & viewer

  1. Paste JSON, drop a .json file onto the editor, or load the sample.
  2. Choose Format or Minify. Errors show the exact line and column with a pointer to the problem.
  3. Use Repair to fix comments, trailing commas, single quotes and unquoted keys automatically.
  4. Explore the Tree view, copy any value's path, or convert the data to CSV, YAML or TypeScript.

What it can do

  • Format with 2 spaces, 4 spaces or tabs; minify in one click
  • Line and column error pointer for invalid JSON
  • One-click repair for comments, trailing commas and quotes
  • Collapsible tree view with JSON paths you can copy
  • Sort keys alphabetically at every depth
  • Convert to CSV (flattened), YAML or TypeScript interfaces
  • File import, drag and drop, copy and download
FAQ

Common questions

Why are comments and trailing commas rejected?

Standard JSON does not allow comments, trailing commas, single-quoted strings or unquoted keys. Use Repair to convert these JavaScript-style habits into valid JSON.

Will very large numbers stay exact?

JavaScript numbers have finite precision, so integers beyond 2^53 may change. Keep large IDs as quoted strings when exact digits matter.

How does JSON to CSV handle nested objects?

Nested objects are flattened into dotted column names such as address.city. Arrays of primitive values are joined with semicolons; the input should be an array of objects.

Is my JSON sent anywhere?

No. Parsing, formatting and conversion run entirely in your browser.

More useful tools

Found a bug or want a feature? Tell me →