YAML Formatter & Validator
Format and validate YAML in your browser. Multi-document (---) supported. Errors point to line and column. YAML 1.2 spec.
Runs 100% in your browser — nothing is uploaded.Use this in a chain
Formatted
Frequently asked
Which YAML spec?
YAML 1.2, via the mature `yaml` npm package running entirely in your browser.
Are comments preserved?
No. Formatting round-trips through JavaScript objects, which strip comments. If you need comment preservation, edit YAML directly rather than round-tripping.
Multi-document files?
Yes — YAML lets you separate documents with `---`. The formatter parses each and re-emits them separated the same way.
Related tools
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- JSON ↔ YAML ConverterConvert between JSON and YAML in either direction — YAML to JSON or JSON to YAML
- SQL FormatterFormat and beautify SQL for 10 dialects including PostgreSQL, MySQL, SQLite, Big
- .env File ParserParse a .env file and see it as a JSON object. Handles comments, quoted values,
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Credit Card ValidatorValidate credit card numbers with the Luhn algorithm and detect the brand: Visa,