代码、数据与二维码工具

YAML转TOML

提供YAML转TOML的交互处理。

优先本地处理无需注册隐私说明 ↗

Enter a YAML mapping up to 100,000 characters. The root must be an object; null values are rejected.

使用步骤

如何使用

  1. Paste a YAML object up to 100,000 characters.
  2. Convert it and review the TOML output or any boundary error.
  3. Copy the TOML or download it as a .toml file.

Defined YAML and TOML boundaries

The YAML root must be a mapping. Strings, booleans, finite numbers, arrays, and nested mappings are supported; null values are rejected because TOML has no native null type. YAML aliases and standard scalar parsing are handled by the local YAML parser.

Keys, depth, and local processing

Bare TOML keys use letters, numbers, underscores, or hyphens. Other YAML key names are quoted. Nested values are limited to eight levels to keep output readable and bounded. Parsing, conversion, copying, and download preparation happen in your browser.

常见问题

你可能还想知道

Can I convert a top-level YAML sequence?

No. TOML documents require named keys, so the YAML root must be a mapping.

Why is null rejected?

TOML has no native null value. Replace null with a concrete value or remove that key before converting.

Are nested mappings supported?

Yes. They are emitted as inline tables up to eight nested levels, and keys with punctuation are quoted.