代码、数据与二维码工具

JSON转TOML

提供JSON转TOML的交互处理。

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

Enter a JSON object up to 100,000 characters. TOML supports objects, arrays, strings, finite numbers, booleans, and rejects null values.

使用步骤

如何使用

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

Defined JSON and TOML boundaries

The root must be an object. Strings, booleans, finite numbers, arrays, and nested objects are supported; null values are rejected because TOML has no null type. Arrays may contain supported values and nested objects are emitted as inline tables.

Keys, depth, and local processing

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

常见问题

你可能还想知道

Can I convert a top-level JSON array?

No. TOML documents require named keys, so enter an object at the root.

Why is null rejected?

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

Are nested objects supported?

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