JSONフォーマッタ
JSONデータをオンラインでフォーマット・検証・最小化・変換できます。ツリービュー、JSON→XML/CSV/YAML変換に対応。すべてブラウザ内で処理され、データはサーバーに送信されません。
JSONファイルをアップロード またはここにドラッグ&ドロップ
入力JSON
出力
What is JSON Formatter?
JSON Formatter is a free online tool that helps you format, validate, minify and convert JSON data. Supports tree view navigation, JSON to XML/CSV/YAML conversion. All processing is done in your browser — your data never leaves your device.
Features
- Format (Beautify) — Add indentation (2 or 4 spaces) to make JSON readable
- Minify (Compress) — Remove all whitespace to reduce file size
- Validate — Check JSON syntax with exact error location and line number
- Tree View — Collapsible hierarchy display for navigating large JSON
- Format Conversion — Convert JSON to XML, CSV, YAML
- Copy & Download — One-click copy to clipboard or download as file
- File Upload — Load JSON from local file
Common JSON Errors Detected
- Missing commas between elements
- Trailing commas before closing brackets
- Single quotes instead of double quotes
- Unquoted property names
- Missing closing brackets
Tip: Click the "Sample" button to load example JSON and quickly test the formatter.
使い方
- 1. JSON を貼り付ける
- 2. 整形または圧縮を選ぶ
- 3. 表示された行・桁を修正
実行例
`{"a":1}` → 2スペースでインデントされた出力
よくある質問
エラーの場所はどう分かる?
行と桁を表示します。末尾カンマ、シングルクォート、生の改行が主な原因です。
データは送信されますか?
いいえ、ブラウザ内だけで処理します。