JSON整形&検証
JSONを整形し、パースエラーを分かりやすく表示します。
Ready.
What is JSON Formatter?
JSON Formatter is a free online tool that instantly formats and validates JSON data. Paste raw or minified JSON and click Format to produce human-readable output with proper indentation. Use Minify to compress JSON for APIs or storage.
How to use
- Paste your JSON text into the input box.
- Click Format to pretty-print with 2-space indentation, or Minify to remove all whitespace.
- If there is a parse error, the status line shows the exact location.
- Click Copy to copy the output to your clipboard.
Notes
- All processing happens in your browser. Your JSON is never sent to a server.
- JSON keys must be quoted with double quotes. Single quotes are not valid JSON.
- Trailing commas are not allowed in standard JSON.
FAQ
- Can this tool validate JSON?
- Yes. If the input is not valid JSON, the tool shows a parse error with the reason. A successful format means the JSON is syntactically valid.
- What is the difference between Format and Minify?
- Format adds indentation and line breaks to improve readability. Minify removes all unnecessary whitespace to reduce file size, which is useful for APIs and production builds.
- Is there a size limit?
- There is no hard limit. Performance depends on your browser and device. Very large JSON files (several MB) may be slow to process.
概要
JSONを整形し、構文エラーを分かりやすく検出します。APIデバッグ、設定ファイル確認、ペイロード点検に役立ちます。
使い方
- JSON文字列を貼り付けます。
- 整形/検証を実行します。
- 整形結果またはエラー位置を確認します。
使用例
-
正常JSON
入力: {"a":1,"b":2}
出力: インデント付きで整形表示
-
異常JSON
入力: {"a":1,}
出力: 末尾カンマのエラー表示
補足
- JSONは末尾カンマを許容しません。
- プロパティ名はダブルクォートが必要です。
- 巨大JSONは分割して検証すると確認しやすくなります。
よくある質問
- 不正JSONを自動修正できますか?
- 自動修正ではなくエラー検出が中心です。
- 配列JSONも検証できますか?
- はい。配列・ネスト構造とも対応します。
- 入力は送信されますか?
- 送信されません。ローカル処理です。
Embed this tool
Paste this iframe into any HTML page to embed JSON整形&検証 on your site: