YAML Formatter
Format standard YAML with readable indentation, duplicate-key checks, and bounded alias handling.
Loading tool…
How to use YAML Formatter
Reformat one YAML document using the standard core schema. Comments are retained where supported by the YAML parser, and unsafe custom tags are rejected.
- Paste one YAML document.
- Choose two or four spaces and run the formatter.
- Review the result before replacing a configuration file.
Good to know
- Standard YAML core schema only. Custom tags, duplicate keys, and multiple documents are rejected.
- Up to 100,000 input characters; aliases are bounded and shared or circular alias graphs are rejected.
- Numbers retain their original spelling, including long IDs, precise decimals, and exponents. Other quoting and scalar styles can normalize; review configuration changes.
Make nested YAML settings easier to review
Paste this settings document, select 4 spaces, and run the formatter. The server mapping receives four-space indentation, while the short features sequence remains a flow sequence on one line. The example's leading comment is retained. Download formatted.yaml and inspect the differences before using it in an application. Formatting can make a review clearer, but it does not verify that server, enabled, or features are valid settings for your particular program. Keep a copy of the original when comments, quote choices, or scalar styles are important to an existing review process.
YAML input; choose 4 spaces
# settings server: name: Ada enabled: true features: [fast, local]
Formatted YAML
# settings
server:
name: Ada
enabled: true
features: [ fast, local ]
- Only the standard YAML core schema is supported. Custom tags, duplicate keys, and multiple documents are refused.
- Indentation affects nested blocks; short flow collections can remain on one line.
- This formatter can normalize quoting and scalar presentation. Readable output is not a byte-for-byte archive of the source.
Common questions
Can this execute YAML tags?
No. It does not install custom tag handlers, and unsupported tag warnings cause rejection.
Does it check my application configuration?
No. Valid YAML may still contain invalid settings for your application.
Keep going with related tools
All developer →JSON Formatter
Format and indent valid JSON in your browser, with downloadable output and clear syntax errors.
DeveloperJSON Validator
Check JSON syntax locally and see its root type, value count, and nesting depth.
DataYAML to JSON
Convert one standard YAML document to JSON while retaining numeric values and string types.
FilesCITATION.cff Metadata Builder
Write software or dataset citation details in labeled fields and download an original CITATION.cff file with ordered author credit.
DeveloperGitHub Issue Form Builder
Generate a real issue-form YAML draft from a bounded input, textarea, dropdown and checkbox model.
DeveloperGitHub Actions Workflow Review
Expand bounded literal job matrices and review supplied needs dependencies, action references and authored token-permission declarations without running a workflow.