Command Palette

Search for a command to run...

YAML Formatter · Beautifier · Validator

Format, beautify, minify, and validate YAML online. Supports YAML 1.1 and 1.2, multi-document files, JSON Schema validation, key sorting, and anchor/alias handling.

Options
Configure YAML formatting and validation settings
Input
Paste your YAML here (Cmd/Ctrl+Enter to format)
Loading...
Output
Formatted output will appear here
Loading...
Quick Guide

YAML Versions

  • 1.2 (default): Latest YAML specification with improved parsing
  • 1.1: Legacy version for compatibility with older systems

Actions

  • Format: Pretty-print YAML with proper indentation and structure
  • Minify: Remove unnecessary whitespace for compact output
  • Validate: Check syntax and optionally validate against JSON Schema

Features

  • Sort Keys: Alphabetically sort object keys for consistent output
  • Keep Anchors: Preserve YAML anchors (&) and aliases (*)
  • Resolve Aliases: Expand aliases into concrete data (no anchors in output)
  • Multi-document: Support for files with multiple YAML documents (---)
  • Schema Validation: Validate YAML structure against JSON Schema