広告
JSON整形ツール
ファイル
見る
プレビュー
広告
Make JSON readable, find what’s wrong with it, compare two versions, or shrink it to one line. Paste JSON, or open or drop a file or a whole folder: every change is checked with the exact line and column of any error, and an editable tree lets you open objects and arrays and change keys and values in place. Everything runs in your browser.
The page opens with an example. Paste your own JSON, choose a folder or file, or drop one onto the Preview. A folder lists all its JSON files. Files up to 50 MB are read on your device.
In Edit mode the JSON shows as an editable, coloured tree or as plain text, prettified with 2 spaces, 4 spaces or tabs; Minify puts it on one line. Sort keys A–Z orders object keys. The check box confirms valid JSON or names the line and column of the first error, and Go to error jumps there.
Compare lists every difference between JSON A and B. Find searches keys and values. Save an opened file straight back, Save a copy as a new file, or copy the result.
Paste {"id":12345678901234567890,"tags":["a","b",]} and the check reports the trailing comma on line 1. Remove it and the tree appears, with the JSON spread over lines with 2-space indents, and the id keeps all 20 digits instead of being rounded.
Formatting changes only spaces and line breaks, so numbers, escapes and key order stay as written unless you sort keys. JSON with comments, single quotes or trailing commas is reported as an error with an explanation. Nothing is uploaded.
ページが開き、試してみるサンプルが表示されます。独自の JSON を貼り付けるか、.json ファイルまたはフォルダー全体をプレビューにドロップするか、いずれかを選択すると、すぐにフォーマットされます。開いたファイルはコンピュータに直接保存できます。 JSON Prettifier の下の上部にある [編集] または [比較] を選択します。編集では、ビューは JSON をツリー、プレーン テキスト (スペース 2 つ、スペース 4 つ、またはタブで整形)、または 1 行に縮小して表示し、すべて同じ色で表示します。ソートキー A ~ Z は、すべてのレベルでオブジェクトキーを並べ替えます。一番下の行はすべての変更をチェックし、エラーの正確な行と列に名前を付けます。 JSON は編集可能なツリーとして開きます。キーまたは値をダブルクリックして変更し、行を追加、ドラッグまたは削除し、編集を元に戻します。検索バーでキーと値が検索され、選択した行の横にコピー アイコンが表示されます。 「比較」では、2 つの JSON ドキュメントを並べて表示し、すべての相違点をリストします。ファイルを保存するか、コピーを保存するか、結果をコピーします。すべてはブラウザ内で実行されます。何もアップロードされていません。
無料、サインアップなし。ファイル処理はデバイス上で行われます。 Web サイトの分析と広告には、個別のプライバシーの選択肢があります。