YAML to JSON コンバーター

K8sやComposeのYAMLをJSONに変換し、ビジュアル編集も可能。

YAML 入力

ノード詳細

ノードを選択すると詳細が表示されます

その他の JSON ツール

JSON 整形

JSON の整形・検証・探索 — 100% クライアント側処理、プライバシー重視

XML → JSON

XML を貼るだけでクリーンな JSON に — 属性・繰り返し要素・テキストノードも正確に処理

CSV → JSON

CSV 行をオブジェクトの JSON 配列に変換 — クォートフィールド・区切り文字・型も自動処理

JSON → CSV

ネストした JSON をクリーンな CSV 列に平坦化 — Excel 対応の .csv をワンクリックでダウンロード

JSON 圧縮

JSON を 1 行に圧縮し、削減できたバイト数をリアルタイムで確認

JSON 差分

2 つの JSON ドキュメントを意味的に比較 — キー順と空白は差分にカウントされません

JSON エスケープ

埋め込み用に JSON 文字列をエスケープ、または文字列化ログを読みやすい JSON に復元

JSON Fixer

壊れた JSON、JSON5、JS オブジェクト、切り詰められた LLM 出力をワンクリック修復。

JSON to TypeScript

任意の JSON を TypeScript interface/type に変換。

YAML to JSON ●

K8sやComposeのYAMLをJSONに変換し、ビジュアル編集も可能。

JSON to YAML

任意のJSONから読みやすいYAMLを生成。

JSON to XML

JSONを整形式XMLに変換 — @_属性・繰り返し要素・テキストノード対応。

JSON Schema

サンプルJSONから標準スキーマを推論。

JSONPath テスター

任意のJSONをJSONPathでライブ検索 — ワイルドカード、再帰下降、スライス、フィルタ。

主な機能

Full Indentation Parsing

Nested mappings, block sequences and compact object list items (- key: value) resolve to correct JSON structures.

Comments & Documents

# comments outside strings are stripped; --- and ... document separators handled, multi-docs returned as arrays.

Block Scalars | and >

Literal blocks keep line breaks, folded blocks collapse to single spaces — ideal for scripts embedded in configs.

Flow Collections

Inline [a, b] and {k: v} values are parsed via the JSON repair engine for maximum compatibility.

YAML to JSON コンバーター の使い方

1

Paste YAML

Drop any .yml / .yaml content — Kubernetes manifests, Compose files, CI pipelines — into the input.

2

Convert

Click Convert to JSON (or let smart detection do it) to parse indentation into a JSON tree.

3

Edit & Export

Browse the result in Tree/Table view, edit values inline, then copy or download the JSON.

技術アーキテクチャとプライバシーの比較

formatjson.net と従来のサーバー送信型 JSON ツールの違い

100% クライアントサイド処理 サーバー送信ゼロ RFC 8259 & RFC 4180 準拠 64bit 整数・先頭ゼロ保護 JSON Schema 2020-12 オフライン PWA 対応
機能・技術仕様 formatjson.net(100% ブラウザ内完結) 従来のサーバー処理型ツール
データ処理場所とプライバシー 100% ブラウザ内の JavaScript で完結 — データが外部に送信されることはありません JSON/XML/CSV をリモートサーバーへアップロードして処理
API キー・JWT・機密データの安全性 通信ゼロの安全設計 — Service Worker によりオフライン環境でも動作 サーバーログへの記録や情報漏洩のリスク
壊れた JSON・LLM 途切れ出力の自動修復 字句解析ステートマシンがコメント、シングルクォート、末尾カンマ、未閉じ括弧を1クリック修復 非標準の JSON では構文エラーで停止
64bit Snowflake ID と先頭ゼロの保護 2^53 - 1 を超える長整数や "00123" などの文字列を精度劣化なしで保持 64bit 整数の丸め誤差や先頭ゼロの消失が発生
深いネスト配列のテーブル展開 ピル([n items] →)クリックで階層ドリルダウン、パンくず移動、ソート、セル直接編集に対応 ルート階層のみのフラット表または閲覧専用ツリー
大容量ファイルの高速描画 200件単位の遅延描画ツリー + ページ分割テーブル + 150KB ハイライト保護 数MBのファイルでブラウザのメインスレッドがフリーズ

よくある質問

Which YAML features are supported? ▾

Indented mappings, sequences (including compact object items), # comments, quoted keys/strings, literal | and folded > block scalars, flow []/{} collections, --- document separators and scalar type inference.

Are YAML comments preserved? ▾

Comments are stripped (as is standard when converting to JSON), while # inside quoted strings is kept.

Does it handle Kubernetes manifests? ▾

Yes — the compact - name: x style common in K8s, Helm and GitHub Actions parses correctly.

What about multiple documents? ▾

Files with several --- documents return a JSON array of documents; single docs return the object directly.

Is conversion done locally? ▾

Yes — a custom zero-dependency parser runs 100% in your browser.