YAML → JSON

YAML 設定を JSON に

YAML入力

Loading editor...

JSON出力

Loading editor...

Turn YAML config into JSON your code can parse

Even if you write config in YAML, lots of tools — APIs, JavaScript runtimes, schema validators — only speak JSON. Converting YAML to JSON resolves anchors, expands aliases, and produces a clean object you can feed into validation libraries, request bodies, or app state.

Use the converter when you need to

Validate a YAML manifest with JSON Schema

Most schema validators accept JSON only — convert YAML to JSON first, then run validation.

Send a YAML config as an API request body

Many APIs accept JSON only. Convert your YAML payload before posting it.

Inspect a YAML file as structured data

Convert to JSON, then explore the structure in a viewer or feed it into JSONPath queries.

How to convert YAML to JSON quickly

  1. 1

    Paste the YAML content into the editor.

  2. 2

    Click Convert to produce JSON with anchors and aliases resolved.

  3. 3

    Copy the JSON or feed it into a downstream tool.

Common YAML-to-JSON workflows

Migrate a Kubernetes manifest into JSON tooling

Run schema and policy checks that only accept JSON without rewriting the YAML by hand.

Audit a CI config

Convert .github/workflows YAML to JSON to query the structure programmatically.

Diff config across environments

Convert YAML configs to JSON so you can compare them with structural diff tools.

関連ツール

よくある質問

YAMLを貼り付けて「Convert」をクリックします。アンカー、エイリアス、複数行文字列などのYAML構文を解析し、正しく整形されたJSONを出力します。

多くのAPIはJSONしか受け付けません。Kubernetesマニフェスト、Docker Compose、CI/CD設定などYAMLで持っているデータをプログラムで扱いたい場合、JSONに変換するとどの言語でも処理しやすくなります。

はい。変換時にアンカー(&)とエイリアス(*)は解決されるため、JSON出力には参照ではなく展開済みの完全なデータが入ります。

このツールは入力内の最初のYAMLドキュメントを処理します。--- で区切られた複数ドキュメントがある場合は、1つずつ貼り付けて変換してください。