JSON · DEV

Your JSON, readable.

Paste JSON and get it formatted with readable indentation. On errors, line and column of the problem are flagged with a clear message. Minify (strip whitespace) or convert to other formats too — all local, nothing uploaded.

Your JSON

Accepts JSONC-style // and /* */ comments — stripped on export.

0 characters

Result

The result shows up here as soon as you paste something.

What it does

  • Indent with 2 or 4 spaces, or tabs
  • Minify (strip whitespace and breaks)
  • Validator with line + column on error
  • Syntax highlighting (dark theme)
  • Convert between JSON, YAML, JSONC
  • Collapsible tree view for big JSON

Use cases

  • Inspect an API response
  • Paste a webhook payload to understand what arrived
  • Detect malformed JSON in logs
  • Convert a YAML config to JSON
  • Compare two JSONs side by side (diff)

FAQ

Does it work with JSONC (with comments)?

Yes. JSONC is JSON with // and /* */ allowed. We accept it as input and strip comments when exporting strict JSON.

Handles huge JSON?

Yes, up to ~50 MB without slowdown. Beyond that, use a CLI like `jq`.

Does it find syntax errors?

Yes. Trailing commas, unclosed quotes — line and column where the parser breaks are flagged.

Is my JSON uploaded?

No. All processing is in your browser. Close the tab and nothing is stored.