YAML para JSON

Converte configuração YAML em JSON

Entrada YAML

Loading editor...

Saída 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.

Ferramentas relacionadas

Perguntas frequentes

Cole seu conteúdo YAML e clique em Convert. A ferramenta interpreta a sintaxe YAML, incluindo anchors, aliases e strings multi-line, e gera um JSON formatado corretamente.

Muitas APIs aceitam apenas JSON. Se você tem um manifesto do Kubernetes, um arquivo do Docker Compose ou uma config de CI/CD em YAML e precisa processar isso via código, converter para JSON facilita o uso em qualquer linguagem.

Sim. Anchors (&) e aliases (*) são resolvidos durante a conversão, então o JSON de saída já vem com os dados totalmente expandidos, sem referências.

A ferramenta processa o primeiro documento YAML da entrada. Se seu arquivo tiver vários documentos separados por ---, cole cada um separadamente para converter.