JSON・JSONLパーサー / 整形ツール
JSONとJSONLをリアルタイムで検証・整形・圧縮する無料オンラインJSONパーサー。JSONL(JSON Lines)ファイル自動認識、構文ハイライト、エラー位置表示、100%ブラウザ処理で安全。
左側にJSONを貼り付けると、ここに整形結果が表示されます😄 広告で無料
iToolのその他の機能!
文字数カウント
文字数カウント — 文字数・単語数・バイト数をリアルタイムで計算。ブログや自己PR作成に便利、無料。
YAML ↔ JSON ↔ TOML 変換ツール
YAML・JSON・TOMLをリアルタイムで3方向変換。Kubernetes、Docker Compose、GitHub Actionsスキーマ自動検出と、YAMLの落とし穴(Norway問題・8進数など)警告付き。完全ブラウザ処理。
XMLパーサー / 整形ツール
XMLをリアルタイムで検証、整形、折りたたみツリービュー(+/-)で探索。要素・属性・テキスト・CDATA・コメントを色分け。完全ブラウザ処理。
JSON ↔ XML 変換ツール
JSONとXMLをリアルタイムで双方向変換。属性プレフィックス・テキストノードキーをオプションで調整可能。完全ブラウザ処理。
Base64エンコーダー / デコーダー
テキストをBase64にエンコード、またはBase64文字列をデコードします。日本語・絵文字完全対応。エンコード・デコード結果を一画面で同時確認。
EPUB テキスト変換
EPUBファイルからテキストを抽出します。インストール不要、ブラウザで無料でEPUBをTXTに変換。チャプター別に整理。
テキスト読み上げ (TTS)
無料のテキスト読み上げツール — 入力したテキストをブラウザが読み上げます。音声・速度・再生位置を調整可能。インストール不要。
Markdownビューアー - MDファイルをオンラインで開く
MDファイルをインストール不要でブラウザから即プレビュー。無料オンラインMarkdownビューアー。.mdファイルをアップロードするか直接入力して、コードハイライト・自動目次付きでレンダリング確認。
テキスト比較
テキスト比較 — 2つの文書の差分を色分けで一目で確認できます。コード・契約書の修正チェックに便利、無料。
よくある質問
JSONが正しい文法で書かれているか確認するプロセスです。引用符の欠落、カンマの誤り、括弧の不一致などの文法エラーがある場合、エラーの位置と原因を表示します。
はい、2スペース・4スペースなど希望のインデント幅を選んで、JSONを見やすく整形できます。
圧縮はすべての空白と改行を削除してJSONを1行にまとめます。APIリクエストなどでサイズを小さくしたいときに使います。プリティプリントはインデントと改行を追加して人間が読みやすくします。
はい、UTF-8エンコーディングをサポートしているため、韓国語やその他のUnicode文字が含まれるJSONも問題なくパース・フォーマットできます。Unicodeエスケープ(\uXXXX)も正しく処理されます。
ブラウザのメモリ範囲内で処理します。数十MB以上の大容量ファイルはブラウザの性能によって速度が低下する場合があります。すべての処理はサーバーに送信せずブラウザ上で行われます。
はい、1行に1つのJSONオブジェクトが含まれるJSONL形式(.jsonl)を自動認識します。AIの学習データセットやログファイルによく使われる形式で、行番号付きのオブジェクトリストと全体のオブジェクト数を表示します。入力欄に.jsonlファイルをドラッグ&ドロップするだけですぐにパースされます。
Online JSON Parser & Formatter
JSON (JavaScript Object Notation) is the most common data exchange format. A JSON parser validates your JSON, pretty-prints it with indentation, and highlights syntax so you can spot errors instantly.
Features
- Real-time validation with 150ms debounce as you type
- Collapsible tree view — explore nested objects/arrays with
+/−toggles - Format / Minify — 2-space, 4-space, or tab indentation, or strip whitespace
- Error location — shows "line N, col M" for parse failures
- Lenient mode auto-recovery — fixes unescaped control characters, wrap-split tokens, trailing commas, and comments
- Recovery highlight — auto-recovered values get a 🟥 red outline so you can spot what changed
- Syntax highlighting — keys, strings, numbers, booleans, null colored distinctly
- Copy / Download — copy formatted output or save as
.jsonfile - JSONL auto-detection —
.jsonlfiles shown as a numbered object list
JSONL (JSON Lines) support
JSONL (JSON Lines, extension .jsonl or .ndjson) stores one JSON object per line. It is widely used for AI training datasets (ChatGPT, Claude fine-tuning) and server log files. When the input is JSONL, this parser auto-detects it, renders a numbered object list, and shows the total object count. Drop a .jsonl file onto the input box to parse it instantly; copy and download output stays in valid JSONL format (one object per line).
Lenient mode — auto-recovery for broken JSON
JSON copied from chat apps, email clients, or terminals often contains accidental line breaks that break JSON.parse. This tool auto-recovers 4 common cases:
- Control chars inside strings (
\n,\t) → replaced with spaces - Line breaks inside tokens (e.g.
847\n521,fal\nse) → rejoined - Trailing commas → removed
- Comments (
//,/* */) → stripped (URLs preserved)
When recovery applies, a yellow warning banner appears and recovered values are outlined in red.
Privacy: 100% client-side
Your JSON is never sent to any server. All parsing happens in your browser. Safe for JSON containing API keys, passwords, or sensitive customer data.
Common parse errors
- Unexpected token: missing quotes around keys, or missing comma/colon
- Unexpected end of input: unclosed
{}or[] - Trailing comma after the last item — not allowed in strict JSON
- Single quotes — JSON requires double quotes for strings
JSON syntax cheatsheet
- Keys must be strings wrapped in double quotes
- Values: string, number, boolean (true/false), null, object
{}, array[] - No comments (
//or/* */) in strict JSON