コンテンツへスキップ

JSONフォーマッター

JSONを検証・整形・圧縮します。


About this tool

JSON を検証・整形・圧縮し、どこが誤っているか分かるエラーメッセージを表示します。API や設定ファイルを扱う人向けの高速スクラッチパッドです。

Why use it

  • インデント付き表示でネスト構造を素早く把握できます。
  • 圧縮モードで空白を除去し、最小ペイロードにできます。
  • 末尾カンマなど、本番前に壊れる構文ミスを検出します。

Common use cases

  • API レスポンスをドキュメントに貼る前に整える。
  • 読み込めない設定ファイルの欠けた括弧を見つける。
  • ソースコードに埋め込む JSON を minify する。

Tips

  • 検証失敗時は末尾カンマとクォートなしキーを先に確認してください。
  • デバッグ中は pretty-print、本番用は minify がおすすめです。
使い方
  1. JSONを貼り付け。
  2. 整形または圧縮。
  3. 検証エラーなら修正。
よくある質問
What does the JSON formatter do?
It validates your JSON and pretty-prints it with consistent indentation, or minifies it to one line.
Will it tell me where an error is?
Yes, invalid JSON is flagged so you can find and fix the problem quickly.
Is my JSON uploaded anywhere?
No. Parsing and formatting happen in your browser, so sensitive data stays local.
Can I minify as well as beautify?
Yes, switch between a readable indented view and a compact single-line version.
Does it keep my key order?
Yes, keys are preserved in the order they appear in your input.
Can it handle large JSON files?
Yes, sizeable documents work fine; only your device memory is the limit.