Skip to content

Trình định dạng YAML

Trình định dạng YAML miễn phí. Chuẩn hóa thụt lề, giải quyết các dấu ngoặc kép không rõ ràng và căn chỉnh các khóa trên các tệp kê khai Kubernetes, cấu hình CI và bất kỳ thứ gì khác bằng YAML. Được hỗ trợ bởi Prettier, trong trình duyệt.

Runs in your browserUpdated Apr 26, 2026

YAML Input

Output

Các câu hỏi thường gặp

Does it handle anchors and aliases?

Yes — Prettier's YAML parser understands *anchors, &aliases, block scalars, flow-style sequences and maps, all of it. The output round-trips cleanly.

Will it change my values?

Only whitespace and quoting. If a value was ambiguous (like unquoted `yes` being coerced to boolean), it stays as-written — Prettier won't silently re-parse scalars.

Is this a linter?

No — it's a formatter. For lint rules (required keys, schema validation) use yamllint or a Kubernetes-specific linter.

Safe for Kubernetes manifests?

Yes — tested on Deployments, Services, ConfigMaps, Helm templates. Multi-document files (--- separators) round-trip cleanly.

Mọi người cũng tìm kiếm