Duaer

Online tools

JSON formatter and validator online (shows error line and column)

A free Duaer tool: paste or upload JSON to format or minify it, and see the exact line and column when it is invalid. Runs in your browser with no upload.

How to use it

  1. Paste JSON into the text box above, or drop a .json file.
  2. Click "Format" for two-space indentation, or "Minify" to strip whitespace.
  3. Click "Copy" or "Download .json".

Common errors

  • Single quotes: JSON strings and keys need double quotes.
  • Trailing comma: `[1, 2,]` is invalid.
  • Unquoted keys: write `{a: 1}` as `{"a": 1}`.
  • Comments: JSON does not allow `//` or `/* */`.

Work with JSON in Duaer

In Duaer, JSON from HTTP Request is already parsed, so there is nothing to format; read fields with `{{ $json.field }}`. To save a .json file, use Convert to File › Convert to JSON and turn on Options › Format for indentation.

Questions

How is the error position found?

The Duaer formatter scans the text against JSON grammar and stops at the first invalid character. Lines and columns start at 1.

Can it handle large JSON?

Yes. Duaer sets no limit; the preview shows the first 20,000 characters, while copy and download use the full result.

In this section