YAML 工具包

在瀏覽器中格式化、壓縮、校驗 YAML,並與 JSON 互轉。

Interactive controls load with JavaScript. Processing stays in your browser—nothing is uploaded.

正在載入工具…

如何使用

  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.