iTool

JSON・JSONLパーサー / 整形ツール

JSONとJSONLをリアルタイムで検証・整形・圧縮する無料オンラインJSONパーサー。JSONL(JSON Lines)ファイル自動認識、構文ハイライト、エラー位置表示、100%ブラウザ処理で安全。

すべて端末内で処理されます。サーバーには送信しないので安心です。
左側にJSONを貼り付けると検証結果が表示されます
0 文字
整形結果
左側にJSONを貼り付けると、ここに整形結果が表示されます

関連ツール

iToolのその他の機能!

よくある質問

JSON検証とは何ですか?

JSONが正しい文法で書かれているか確認するプロセスです。引用符の欠落、カンマの誤り、括弧の不一致などの文法エラーがある場合、エラーの位置と原因を表示します。

インデント幅を変更できますか?

はい、2スペース・4スペースなど希望のインデント幅を選んで、JSONを見やすく整形できます。

JSON圧縮(minify)とプリティプリント(pretty print)の違いは何ですか?

圧縮はすべての空白と改行を削除してJSONを1行にまとめます。APIリクエストなどでサイズを小さくしたいときに使います。プリティプリントはインデントと改行を追加して人間が読みやすくします。

韓国語などのUnicode文字が含まれるJSONも処理できますか?

はい、UTF-8エンコーディングをサポートしているため、韓国語やその他のUnicode文字が含まれるJSONも問題なくパース・フォーマットできます。Unicodeエスケープ(\uXXXX)も正しく処理されます。

大きなJSONファイルも処理できますか?

ブラウザのメモリ範囲内で処理します。数十MB以上の大容量ファイルはブラウザの性能によって速度が低下する場合があります。すべての処理はサーバーに送信せずブラウザ上で行われます。

JSONLファイルもパースできますか?

はい、1行に1つのJSONオブジェクトが含まれるJSONL形式(.jsonl)を自動認識します。AIの学習データセットやログファイルによく使われる形式で、行番号付きのオブジェクトリストと全体のオブジェクト数を表示します。入力欄に.jsonlファイルをドラッグ&ドロップするだけですぐにパースされます。

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 .json file
  • JSONL auto-detection.jsonl files shown as a numbered object list

JSONL (JSON Lines) support

JSONL (JSON Lines, extension .jsonl or .ndjson) stores one JSON object per line. It is widely used for AI training datasets (ChatGPT, Claude fine-tuning) and server log files. When the input is JSONL, this parser auto-detects it, renders a numbered object list, and shows the total object count. Drop a .jsonl file onto the input box to parse it instantly; copy and download output stays in valid JSONL format (one object per line).

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:

  1. Control chars inside strings (\n, \t) → replaced with spaces
  2. Line breaks inside tokens (e.g. 847\n521, fal\nse) → rejoined
  3. Trailing commas → removed
  4. 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

このツールの改善にご協力ください

良い点、改善点、ほしい機能をお聞かせください

Esc

アプリ内ではダウンロードできません

アプリ内画面(LINE・各種アプリ)ではファイル保存が制限されます。Safariで開くとダウンロードできます。

1 画面の下部(または上部)にある ⋯ / 共有 ボタンをタップ
2 「Safariで開く」または「ブラウザで開く」を選択

またはURLをコピーしてSafariに貼り付け