YAML→JSON変換
YAMLデータをJSON形式に変換、またはその逆を即座に実行
Click "Convert" to see outputYAML to JSON Converter (and JSON to YAML)
Convert YAML to JSON or JSON back to YAML instantly. Supports multi-document YAML, anchors, aliases, and complex nested structures. Useful for Kubernetes configs, GitHub Actions, and Docker Compose files.
FAQ
What is the difference between YAML and JSON?
Both represent structured data. YAML uses indentation and is more human-readable; JSON uses braces/brackets and is more compact for machines. YAML is a superset of JSON — all valid JSON is valid YAML.
When should I use YAML over JSON?
Use YAML for config files (Docker, Kubernetes, GitHub Actions) because it supports comments and is easier to read. Use JSON for APIs and data exchange because parsers are faster and more universally available.
Why does YAML conversion sometimes fail?
YAML is whitespace-sensitive. Inconsistent indentation, tabs instead of spaces, or invalid anchors will cause parse errors. The converter shows line-specific error messages to help you fix them.
さらに探す
おすすめのその他の 開発者ツール…
JSONフォーマッター
構文ハイライトとエラー検出でJSONを整形、検証、圧縮
Base64エンコーダー/デコーダー
テキストやファイルをBase64にエンコードし、Base64文字列を読めるテキストにデコード
URLエンコーダー/デコーダー
URLコンポーネントとクエリ文字列パラメータをエンコード・デコード
UUIDジェネレーター
ランダムUUID(v1、v4)を生成するか、複数のUUIDを一括生成
ハッシュジェネレーター
テキストやファイルからMD5、SHA-1、SHA-256、SHA-512ハッシュを生成
正規表現テスター
リアルタイムのマッチハイライトとグループ抽出で正規表現をテスト
JWTデコーダー
JSON Web Tokenをデコードして検査 — ヘッダー、ペイロード、署名を確認
HTMLフォーマッター
適切なインデントと構文ハイライトでHTMLコードを整形・美化