Skip to main content
HandyWeb

YAML Formatter and Validator

Format YAML with even indentation or check that it is valid. Comments stay, and an error shows its line and column.

Runs on your device.

Action
Indent
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Choose Format or Validate.
  2. Paste the YAML.
  3. Copy the output, or fix the error at the line and column shown.

Questions and Answers

Are comments (#) removed?

No. Formatting keeps comments and only evens out the indentation and spacing.

Is an untrusted YAML file safe here?

Yes. No tag runs code, and the number of aliases is limited, so a file that grows itself without end (billion laughs) is stopped.

Good to Know

YAML 1.2 is read with the core schema. Special tags, such as !!python or !!js, are read as plain text. A duplicate key is an error.

Source code of this toolReport a problem on GitHub