YAML Formatter & Validator

YAML Formatter & Validator

Local Processing

Tidy YAML and check that it parses.

How It Works & Processing Standards

Tidy YAML and check that it parses.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Desktop max file size: 50MB
  • Mobile max file size: 20MB

Choose format or validate under "Task". Use it before deploying Kubernetes or CI configs, where a single indent changes the meaning.

What You Can Do

Format
Normalises indentation and spacing to two spaces.
Validate
Reports YAML that cannot be parsed.

How to Use YAML Formatter & Validator

  1. 1
    Choose a taskFormat or validate.
  2. 2
    Paste YAMLPaste the YAML.
  3. 3
    Read the resultCopy the formatted YAML or see the check result.

Examples

Normalise indentation
Input: a: 1 b: - x - y
Result: a: 1 b: - x - y
Indentation error
Input: a: 1 b: 2
Result: ✗ Invalid (YAML syntax error)

Common Use Cases

  • Checking CI or Kubernetes config before deploying
  • Aligning indentation in YAML edited by several people

Frequently Asked Questions (FAQ)

Are comments kept?

Formatting rewrites the content, so comments are not kept. Use validate only for files where comments matter.

Have feedback or ideas for this tool? Suggest & Inquire →