{ } Format · Minify · Validate · Convert

JSONツール

A single place to format, minify and validate JSON, plus convert between JSON and CSV. Everything runs in your browser — no upload.

Input

Output

A complete JSON workbench in your browser

JSON is everywhere — API responses, config files, NoSQL exports, log entries. This page bundles the operations developers and analysts need every day:

フォーマット (pretty-print)

Turn a one-line minified blob or messy hand-written JSON into a clean, indented document. Choose 2 spaces, 4 spaces or a real tab character. Useful for reading API responses, sharing snippets in bug reports, or pasting into documentation.

最小化

Strip every unnecessary character from JSON to ship the smallest possible payload. Typical savings are 20-40% on real-world data; on heavily indented configs the savings can hit 60%. The status bar shows the exact byte difference and percent saved.

検証

Verify your JSON parses cleanly. On error, we display the engine's message plus a guessed line and column number with a 2-line snippet showing exactly where parsing broke. This works even in browsers and runtimes that no longer include positions in error messages — we figure it out ourselves.

JSON ↔ CSV

Convert an array of objects to CSV with one click. Nested objects are flattened with dot-notation (so {"user":{"name":"Alice"}} becomes a column user.name). Nested arrays are serialized as JSON strings inside their cells. Rows with different keys produce the union of all columns — missing fields become empty cells. The CSV → JSON direction handles quoted fields, embedded commas, and escaped quotes correctly (we use the battle-tested PapaParse library).

プライバシー

Everything runs locally. Your JSON, your CSV, your secrets — none of it leaves the browser tab. The only network request is the one-time CDN load of PapaParse. We don't even see file sizes.

よくある使用例

よくある質問

オンラインでJSONをフォーマットするには?
入力フィールドにJSONを貼り付けてフォーマットをクリックします。選択したインデント(2スペース、4スペース、またはタブ)で即座にプリティプリントされます。すべてがブラウザ内で完全に実行されるため、データがサーバーにアップロードされることはありません。
このJSONツールはデータをサーバーにアップロードしますか?
いいえ。すべてのフォーマット、圧縮、バリデーション、変換はJavaScriptを使用してブラウザタブ内で完全に行われます。JSONはデバイスから出ることはありません。唯一のネットワークリクエストはCSV変換用のPapaParseライブラリの一回限りのCDN読み込みです。
JSONをCSVに、CSVをJSONに変換できますか?
はい。JSON→CSVをクリックすると、オブジェクトの配列をダウンロード可能なCSVファイルに変換します。ネストされたオブジェクトはドット表記でフラット化されます。逆方向の場合、CSVデータを貼り付けてCSV→JSONをクリックします — PapaParseライブラリを使用して引用符付きフィールド、埋め込みカンマ、エスケープされた引用符を正しく処理します。
JSONに構文エラーがある場合どうなりますか?
バリデーション機能が構文エラーを検出し、解析が失敗した正確な行番号と列番号を2行のコードスニペットとともに表示します。エラーメッセージに位置情報が含まれなくなった環境でも動作します — ツールが独自に計算します。
このJSONフォーマッターは本当に無料ですか?
はい、制限なしで完全に無料です。サインアップ、アカウント、ファイルサイズ上限、プレミアムティアはありません。何度でもフォーマット、圧縮、バリデーション、変換が可能です。このツールはオプションの広告のみでサポートされています。

関連ツール