YAML Formatter & Beautifier
Guia
YAML Formatter & Beautifier
Format and beautify YAML files with consistent indentation, configurable quoting, and key sorting. Paste your YAML content and instantly see properly formatted output with validation, error highlighting, and statistics. Export as JSON, TOML, or Properties format.
Como usar
Paste your YAML content into the input area. The formatter processes it instantly with your chosen options: indent size (2 or 4 spaces), quote style (auto, double, single, or bare), alphabetical key sorting, array style (block or flow), and line width. View validation results with error line numbers. Copy the formatted output or download as .yaml or .yml file. Convert to JSON, TOML, or Properties format with one click.
Características
- Consistent Indentation — Normalize YAML indentation to 2 or 4 spaces throughout the entire document. Fixes mixed indentation and alignment issues.
- Quote Style Control — Auto-quote only when needed, always use double or single quotes for strings, or remove unnecessary quotes. Handles the YAML quoting rules correctly.
- Ordenação de Chaves — Optionally sort keys alphabetically within each nesting level for consistent, organized configuration files.
- Array Style — Choose between block style (each item on a new line with -) or flow/inline style ([item1, item2]) for short arrays.
- Validação — Detects invalid YAML with error messages and line numbers. Shows document statistics: total keys, max nesting depth, array count, total lines.
- Export Formats — Convert YAML to JSON, TOML (best effort), or Properties (flat key=value with dot notation for nesting). Each with copy button.
- Opções Adicionais — Collapse empty collections, set line width for wrapping, strip comments, trim trailing whitespace.
- Referência rápida — Collapsible YAML syntax guide covering common gotchas (Norway problem: NO → false), indentation rules, and multi-line string styles (| literal, > folded).
YAML Syntax
YAML uses indentation to represent nesting (spaces only, never tabs). Keys and values are separated by colons: key: value. Arrays use dashes: - item. Strings can be bare, single-quoted, or double-quoted. Multi-line strings use | (literal, preserves newlines) or > (folded, joins lines). Comments start with #. YAML is commonly used in Docker Compose, Kubernetes, GitHub Actions, Ansible, and many configuration files.
What is the Norway problem in YAML?
What is the difference between | and > in YAML?
Can I use tabs for YAML indentation?
Is my YAML data sent to a server?
Instale nossas extensões
Adicione ferramentas de IO ao seu navegador favorito para acesso instantâneo e pesquisa mais rápida
恵 O placar chegou!
Placar é uma forma divertida de acompanhar seus jogos, todos os dados são armazenados em seu navegador. Mais recursos serão lançados em breve!
Ferramentas essenciais
Ver tudo Novas chegadas
Ver tudoAtualizar: Nosso ferramenta mais recente foi adicionado em 13 de abr de 2026
