YAML Formatter & Validator
NOVOValidate and format YAML in your browser: multi-document files, 2/4-space indent, key sorting and line-width control.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
The YAML is parsed first, so any syntax error is reported with its line and column. It is then written out again from the parsed data: comments are not kept, anchors and aliases are expanded, and “Minified flow style” writes each document on one line like {a: 1, b: [1, 2]}.
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
YAML Formatter & Validator checks that your YAML is valid and rewrites it with consistent spacing. Paste a file, and the tool parses every document in it, reports the first syntax error with its line and column, and prints clean output using 2 or 4 spaces.
Options cover what teams usually agree on: sort keys alphabetically for stable diffs, set the preferred line width (80, 120 or no wrapping), or write each document as one line in flow style. Files with several documents separated by --- are kept as separate documents.
The YAML is rewritten from parsed data, so comments are not kept and anchors are expanded. Everything runs in your browser.
Por que usar esta ferramenta?
- Finds YAML syntax errors before a deploy or CI run does
- Gives every file the same indent, list style and key order
- Handles multi-document files such as Kubernetes manifests
- Local only — configuration with secrets is not uploaded
Recursos
Validation
Reports the first error with line, column and the line itself.
Multi-document
Every document separated by --- is checked and formatted.
Indent 2 or 4
Choose the indentation of nested mappings and lists.
Sort keys
Alphabetical keys at every level for readable, stable diffs.
Line width
Wrap long text at 80 or 120 characters, or never.
Copy or download
Copy the result, download a .yaml file, or reuse it as new input.
Como usar
Add your YAML
Paste it, open a .yaml / .yml file, or press Load sample.
Check validity
A green line confirms the YAML is valid and how many documents it has; a red box shows the error.
Set the style
Pick indent, line width, key sorting or flow style.
Copy or download
Use Copy, Download .yaml, or Use output as input to keep editing.