首页
Tom Utilities

YAML 格式化

XML 与 YAML 工具

解析并重新序列化 YAML,保持统一缩进并进行校验。

输入

结果

使用方法

How to format YAML

Paste YAML and press Format. The document is parsed and written back with standard indentation.

  1. Paste YAML into the input editor.
  2. Press Format.
  3. Copy the normalised document.

常见问题

Are anchors and aliases supported?

Anchors and aliases are resolved on parse, so the formatted output contains the expanded values.

Will formatting remove comments?

Comments are not preserved because the formatter works from the parsed data structure.