YAML Linter & Formatter

Paste YAML or load a file to validate, prettify, and inspect your documents entirely in the browser.

Input
Upload a .yml/.yaml file or work directly in the editor. Parsing happens locally.

Files never leave your device; they are read with the FileReader API.

Tip: Press Ctrl/Cmd + Enter to format with the current indentation.

Validation
Linting runs automatically as you type.
Valid YAML
Documents
1
Characters
94
Size
94 B

Document summary

  • Document 1object · 3 keys
Formatted YAML
Pretty-printed using the selected indentation.
name: Example
version: 1
items:
  - id: alpha
    active: true
  - id: beta
    active: false
JSON Preview
Inspect the parsed documents as JSON.
{
  "name": "Example",
  "version": 1,
  "items": [
    {
      "id": "alpha",
      "active": true
    },
    {
      "id": "beta",
      "active": false
    }
  ]
}