Text and dataRuns in your browser

TOML ↔ JSON Converter

Convert supported TOML configurations to JSON and back without external requests or executing code from the document.

  • Two-way conversion
  • TOML tables
  • Up to 5,000 nodes
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input data

Result

—

A bounded TOML 1.0 configuration subset is supported: tables, array tables, dotted keys, arrays, inline tables, and JSON-compatible scalars. Multiline strings and inf/nan values are not converted.

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Choose TOML → JSON or JSON → TOML.

  2. 2

    Paste the configuration document.

  3. 3

    Run conversion and review warnings and output.

02

What the tool can do

  • Basic and literal strings, booleans, safe integers, finite floats, and arrays.
  • Tables, dotted keys, array tables, and inline tables.
  • Hexadecimal, octal, and binary integers checked against the JSON safe-integer range.
  • TOML date/time values are preserved as strings with an explicit warning.
03

Common use cases

  • Converting application configuration for an API or tests.
  • Finding duplicate keys and type conflicts.
  • Preparing readable TOML from a JSON-compatible object.
04

How it works inside

Input is limited to 500,000 characters, 5,000 nodes, and depth 32.

JSON → TOML accepts a root object; arrays of objects are emitted as array tables.

05

Questions and answers

Why did a TOML date become a JSON string?

JSON has no separate date or time type. The converter preserves that value as text and shows a warning. Check that the program receiving the result expects this representation.

What should I do if my JSON contains null?

TOML does not support that value. Decide whether it means an omitted field, empty text, or another valid value in your data. The converter does not make that substitution for you because it could change the meaning.