TOML から JSON への変換

逆方向の変換が必要ですか?
JSON to TOML Converter

TOML 入力

1

JSON 出力

TOML データを入力して JSON に変換

変換後のデータはここに表示されます

TOML を JSON に変換する方法

  1. ステップ 1 – TOML を貼り付ける

    • TOML のキー/値、[sections]、[[array_tables]] をエディタに貼り付けます。
    • 文字列、数値、真偽値、配列、日付などの値を扱えます。
    • .toml ファイルをコンピュータからインポートできます。
  2. ステップ 2 – JSON を確認する

    • TOML の意味を保ったまま、正しい JSON オブジェクトへ変換します。
    • 日付(RFC 3339)は文字列として保持され、可能な範囲で型が維持されます。
    • テーブル構造が JSON の入れ子として表現されているか確認します。
  3. ステップ 3 – 出力をエクスポート

    • JSON をコピーして JavaScript/TypeScript アプリで利用します。
    • 移行や API 用に .json としてダウンロードします。
Example: TOML to JSON
# Input TOML
title = "TOML Example"

[owner]
name = "Tom Preston-Werner"

// Output JSON
{
  "title": "TOML Example",
  "owner": {
    "name": "Tom Preston-Werner"
  }
}

Related tools

よくある質問

What is TOML format?

TOML (Tom's Obvious Minimal Language) is a configuration file format that's easy to read due to obvious semantics. It's designed to map unambiguously to a hash table.

How are TOML sections converted?

TOML sections [section] become nested JSON objects. Dotted keys like 'database.host' create nested structures automatically.

What TOML features are supported?

The converter supports strings, numbers, booleans, arrays, inline tables, nested sections, and basic date/time parsing. Complex multiline strings and advanced TOML features may have limited support.

Are array tables supported?

Yes. Array tables [[products]] are converted to JSON arrays containing objects, which is useful for representing repeated configuration blocks.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

TOML から JSON への変換 | JSONSwiss