YAML 工具包

在浏览器中格式化、压缩、校验 YAML,并与 JSON 互转。

交互控件由 JavaScript 加载。处理留在浏览器内——不会上传。

正在加载工具…

如何使用

  1. Open YAML Toolkit — Open the tool and wait for controls.
  2. Paste YAML or JSON — Paste into the input. Data stays local.
  3. Choose a mode — Format, minify, validate, or convert.
  4. Copy output — Copy the result into your config or editor.

限制

需要启用 JavaScript。极大输入可能拖慢标签页。结果取决于浏览器 API;因不上传,没有服务器端配额。

适合什么时候用

需要快速免费工具、不想注册账号、也不想把内容交给在线转换站时。

什么时候别用

需要服务端集成、大规模批处理,或有认证合规要求的专业工具时。

隐私说明

工具输入仅在浏览器本地处理。主题/语言/收藏可能使用 localStorage;托管可能保留常规访问日志(IP、UA、URL),不含工具正文。

常见问题(5)

Is YAML uploaded?

No. Parsing and conversion use self-hosted js-yaml in your browser.

YAML vs JSON mode?

Format/minify/validate work on YAML; switch modes to convert YAML ↔ JSON.

Why did parsing fail?

Check indentation (spaces, not tabs in most cases) and quote special characters.

Does it support anchors/aliases?

js-yaml supports common YAML 1.2 constructs; exotic tags may not round-trip.

Offline after first load?

Yes—the vendor script is same-origin; after cache, you can keep working offline.