JSONをTOMLに、またはTOMLをJSONに双方向で変換します。ブラウザ内で完結します。
JSON / TOML変換の使い方
方向を選択します(JSON→TOMLまたはTOML→JSON)。
JSONまたはTOMLを貼り付けます。
結果をコピーするか、入れ替えて逆方向に変換します。
This is a two-way converter between JSON and TOML. Pick a direction, paste your data, and copy the result. It is built on a well-tested TOML parser that handles nested tables and arrays of tables correctly.
Everything runs locally in your browser, so your data, which for config files can include hostnames or tokens, never leaves your device.
TOML (Tom's Obvious, Minimal Language) is a configuration format designed to be obvious to read and to map cleanly onto a hash table. It is what Rust's Cargo uses for Cargo.toml and what Python projects use for pyproject.toml, among many others.
JSON and TOML describe similar data but suit different jobs. JSON is the lingua franca for APIs and machine exchange. TOML is built for human-written config, with sections, comments and first-class dates that make a settings file pleasant to edit.
TOML also supports native date and time values and typed numbers, so values keep their meaning rather than all becoming strings, which is part of why it is preferred for configuration.
Most data round-trips cleanly, but there is one catch. TOML has no null value. JSON nulls cannot be represented, so remove or replace them before converting to TOML, otherwise the conversion cannot express them.
よくある質問
TOMLは読みやすさを重視した最小限の設定ファイル形式で、CargoやPythonの多くのプロジェクトでpyproject.tomlとして使われています。
ほとんどのデータは問題ありません。TOMLにはnullがないため、JSONのnullは表現できません。変換前にnullを削除または置換してください。
いいえ。変換はブラウザ内で完結するため、データがデバイスの外に出ることはありません。
このツールを埋め込む
このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。
<iframe src="https://monu.tools/embed/ja/json-toml-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール