無料 · 開発
JSON 整形.
JSON の整形・検証・圧縮・閲覧。エラー位置の正確な表示、自動修復、キーの並べ替え、折りたためるツリー表示に対応。
✓ Valid JSON · 316 bytes · 13 keys · 5 objects · 1 arrays · depth 4
Large numbers are kept exactly as written (they exceed JavaScript’s safe integer range).
Formatting works on the original text, so key order and every digit are preserved; validation follows the strict JSON standard (RFC 8259). Nothing is uploaded.
JSON を整形して検証する
- JSON を貼り付けるか .json ファイル(最大 20 MB)を開きます。入力に合わせて検証・整形されます。
- 2 スペース、4 スペース、タブ、または圧縮(minify)を選びます。必要ならキーを並べ替えたり、折りたためるツリー表示に切り替えたりできます。
- JSON が無効なら、エラーの正確な行と列をわかりやすい説明つきで確認するか、自動修復を使います。
- 結果をコピーするか、.json ファイルとしてダウンロードします。
例:カンマの抜けは「line 3, column 2: a comma is probably missing」と、その行とともに表示されます。自動修復は末尾のカンマ、シングルクォート、コメントなどのよくある誤りを直します。
結果を信頼できる理由
- 検証は厳密な JSON 規格(RFC 8259)に従います。
- インデントし直しても、キーの元の順序とすべての桁が保たれます。JavaScript で表せない大きな整数も同様です。データを読み直すのはキーを並べ替えるときだけです。
- 統計としてサイズ、キー・オブジェクト・配列の数、入れ子の深さを表示します。ツリー表示は最大 4,000 ノードです。
- JSON がブラウザーの外に出ることはありません。2 つの文書を比べるには JSON 比較 を、YAML に変換するには JSON と YAML の相互変換 を使ってください。
制限と対応形式
入力内容はお使いの端末で処理されます。
英語の技術説明
Files up to 20 MB. Formatting keeps the original key order and every digit, including integers larger than JavaScript can represent; sorting keys re-parses the data. The tree view shows up to 4,000 nodes.
Strict RFC 8259 validator with precise line/column errors and plain-language explanations (trailing commas, single quotes, comments, missing commas), automatic repair of common mistakes, lossless re-indentation, minification, key sorting, statistics (size, keys, objects, arrays, depth), a collapsible tree, copy and .json download.
{"a":1,"b":[1,2]} → formatted with 2 spaces; a missing comma is reported as “line 3, column 2: a comma is probably missing” with the line shown.
よくある質問
壊れた JSON を直せますか?
多くの場合は直せます。自動修復は末尾のカンマ、シングルクォート、コメント、カンマの抜けなどのよくある誤りに対応します。結果は必ず確認してください。
大きな数値が変わってしまいませんか?
変わりません。JavaScript では扱えないほど大きな整数でも、整形ではすべての桁を保ちます。データを読み直すのはキーを並べ替えるときだけです。
JSON はアップロードされますか?
いいえ。検証も整形もすべてブラウザー内で行われます。