Skip to content

YAML 转 JSON 转换器

免费的 YAML 转 JSON 转换器。粘贴任何有效的 YAML,即可获得整洁的 JSON。非常适合 Kubernetes 清单、CI 配置和 OpenAPI 规范。

Runs in your browserUpdated Apr 26, 2026

YAML Input

JSON Output

常见问题

What YAML version is supported?

YAML 1.2 — the modern superset of JSON. Anchors, references, multi-line strings and nested structures all work.

Are comments preserved?

No — JSON doesn't support comments, so they're stripped on conversion.

What if my YAML is invalid?

You'll see a clear error with the line and column. Common issues: tabs (use spaces), inconsistent indentation, unquoted special chars.

Is my YAML uploaded?

No — runs entirely in your browser.

Is the converter free?

Yes — fully free, no signup.

大家也在搜索