YAML 入力
JSON
データなし
このツールについて
YAML Viewer は、現代の DevOps やクラウドインフラ、アプリ開発で YAML 設定ファイルを扱うすべての人にとって必須のツールです。私は Kubernetes マニフェスト、Docker Compose ファイル、GitHub Actions ワークフロー、Ansible プレイブック、さまざまな設定ファイルのデバッグ時に毎日利用しています。インタラクティブなツリービューにより、複雑なネスト構造も一目で把握でき、ノードの展開・折りたたみで特定セクションに集中できます。データ型(文字列、数値、ブール値、配列、オブジェクト)も明確に表示され、インデントで迷子にならず大規模 YAML も快適にナビゲート可能です。JSON 変換機能は YAML 構文の検証やパーサーでの解釈確認に非常に便利です。構文バリデーションでコロン抜けやインデントミス、アンカーや配列の不正もデプロイ前に正確な行・列番号で検出します。
使い方
YAML の内容を入力パネルに貼り付けるかアップロードしてください。ツールは自動でリアルタイムに YAML を解析・検証します。タブでツリービュー(階層可視化)、JSON(変換結果)、YAML(整形済み出力)を切り替え可能です。ツリービューではノードをクリックしてネスト構造を展開・折りたたみでき、大規模ファイルも「すべて展開」「すべて折りたたみ」ボタンで一括操作できます。構文エラーは行・列番号付きで詳細表示。YAML ファイル(.yaml, .yml, .txt)を直接アップロード可能で、ファイル名も表示されます。JSON や整形 YAML はクリップボードにコピー、またはダウンロードできます。
よくある使用例
Kubernetes Debugging
Paste complex K8s deployment YAML and use tree view to verify nested spec.containers.env variables, volume mounts, or resource limits structure.
Docker Compose Validation
Check docker-compose.yml syntax before running 'docker-compose up'—catch indentation errors or invalid service configurations.
GitHub Actions Review
Visualize complex workflow YAML with multiple jobs and conditional steps in an easy-to-navigate tree structure.
Config File Analysis
Parse large application configuration files (Helm charts, Ansible playbooks, OpenAPI specs) to understand the structure without reading hundreds of lines.
YAML to JSON Conversion
Convert YAML config to JSON for use with tools that only accept JSON input (many APIs and CLI tools).
Learning YAML
Use the tree view to understand how YAML indentation maps to nested data structures and how YAML anchors/aliases work.
制限事項と重要な注意
Very large YAML files (>5MB) may cause browser performance issues—for massive files, use command-line tools like yq or yaml-lint. The tool uses JavaScript YAML parser which follows YAML 1.2 spec—some YAML 1.1 features may parse differently. Custom YAML tags (!include, !env, !ref) are not supported as these are preprocessor features requiring external file access. Comments in YAML are preserved in the input display but not included in JSON/tree output (JSON doesn't support comments). For Kubernetes-specific validation (CRD schemas, API versions), use kubectl --dry-run instead. Multi-document YAML files (separated by ---) show only the first document—split multi-doc files for individual viewing. Binary data in YAML (base64 encoded) is shown as-is without decoding.