JSONパーサー / 整形ツール
JSONをリアルタイムで検証・整形・圧縮する無料オンラインJSONパーサー。構文ハイライト、エラー位置表示、100%ブラウザ処理で安全。
左側にJSONを貼り付けると、ここに整形結果が表示されますこちらのツールもおすすめ
😄 広告で無料
Online JSON Parser & Formatter
JSON (JavaScript Object Notation) is the most common data exchange format. A JSON parser validates your JSON, pretty-prints it with indentation, and highlights syntax so you can spot errors instantly.
Features
- Real-time validation with 150ms debounce as you type
- Collapsible tree view — explore nested objects/arrays with
+/−toggles - Format / Minify — 2-space, 4-space, or tab indentation, or strip whitespace
- Error location — shows "line N, col M" for parse failures
- Lenient mode auto-recovery — fixes unescaped control characters, wrap-split tokens, trailing commas, and comments
- Recovery highlight — auto-recovered values get a 🟥 red outline so you can spot what changed
- Syntax highlighting — keys, strings, numbers, booleans, null colored distinctly
- Copy / Download — copy formatted output or save as
.jsonfile
Lenient mode — auto-recovery for broken JSON
JSON copied from chat apps, email clients, or terminals often contains accidental line breaks that break JSON.parse. This tool auto-recovers 4 common cases:
- Control chars inside strings (
\n,\t) → replaced with spaces - Line breaks inside tokens (e.g.
847\n521,fal\nse) → rejoined - Trailing commas → removed
- Comments (
//,/* */) → stripped (URLs preserved)
When recovery applies, a yellow warning banner appears and recovered values are outlined in red.
Privacy: 100% client-side
Your JSON is never sent to any server. All parsing happens in your browser. Safe for JSON containing API keys, passwords, or sensitive customer data.
Common parse errors
- Unexpected token: missing quotes around keys, or missing comma/colon
- Unexpected end of input: unclosed
{}or[] - Trailing comma after the last item — not allowed in strict JSON
- Single quotes — JSON requires double quotes for strings
JSON syntax cheatsheet
- Keys must be strings wrapped in double quotes
- Values: string, number, boolean (true/false), null, object
{}, array[] - No comments (
//or/* */) in strict JSON
iToolのその他の機能!
文字数カウント
文字数カウント — 文字数・単語数・バイト数をリアルタイムで計算。ブログや自己PR作成に便利、無料。
YAML ↔ JSON ↔ TOML 変換ツール
YAML・JSON・TOMLをリアルタイムで3方向変換。Kubernetes、Docker Compose、GitHub Actionsスキーマ自動検出と、YAMLの落とし穴(Norway問題・8進数など)警告付き。完全ブラウザ処理。
XMLパーサー / 整形ツール
XMLをリアルタイムで検証、整形、折りたたみツリービュー(+/-)で探索。要素・属性・テキスト・CDATA・コメントを色分け。完全ブラウザ処理。
JSON ↔ XML 変換ツール
JSONとXMLをリアルタイムで双方向変換。属性プレフィックス・テキストノードキーをオプションで調整可能。完全ブラウザ処理。
テキスト比較
テキスト比較 — 2つの文書の差分を色分けで一目で確認できます。コード・契約書の修正チェックに便利、無料。