Validate YAML and see the equivalent JSON in real time.
Type or paste YAML in the input panel. The editor parses it with js-yaml and displays the equivalent JSON in the result panel, or an error message showing the line and column. Use it to check configuration files for Docker Compose, CI, Kubernetes or OpenAPI before using them.
servico: api-pagamentos
porta: 8080
replicas:
- nome: a
ativo: true
- nome: b
ativo: false
{
"servico": "api-pagamentos",
"porta": 8080,
"replicas": [
{ "nome": "a", "ativo": true },
{ "nome": "b", "ativo": false }
]
}
Lists starting with "- " become arrays, and key: value pairs become objects. Types are inferred: 8080 becomes a number and true becomes a boolean.
| Problem | Cause | How to fix it |
|---|---|---|
| Tab indentation | YAML does not allow tabs for indentation. | Use spaces, usually two per level, with the same number at the same level. |
| Inconsistent indentation | Items at the same level have different indentation. | Align sibling items in the same column. |
| Colons inside text | Values containing ": ", such as text with a time or URL, can confuse the parser. | Quote the value, for example "10:30". |
| A version becomes a number | A value such as 1.10 is read as the number 1.1. | Quote it: "1.10". |
| Multiple documents in one input | Document separators (---) appear within the file. | Validate one document at a time; this editor reads a single document. |
Your input is processed in your browser and is not sent to Novemax. Your text is saved in your browser local storage (localStorage), so you can return to it later. On a shared computer, clear the editor before leaving. The site uses Google Analytics and Google AdSense according to your cookie preferences; these services do not receive the text you type in the editor.
No. Conversion runs in your browser. Your text is not sent to Novemax and is saved only in browser local storage.
This tool converts YAML to JSON. Valid JSON is also valid YAML, so you can paste JSON here to check that it is accepted as YAML.
No. Comments (#) are ignored during parsing and do not exist in JSON.
Yes. Anchors (&nome) and aliases (*nome) are resolved, and the JSON shows the expanded values.