Advertisement

TOML to JSON

Convert TOML to JSON free, in seconds. Paste your data below, press Convert, then copy the result and feed it to APIs and JavaScript apps. Everything runs in your browser, so nothing is ever uploaded.

TOML input

Paste your TOML below, then press Convert.

Tables and [[arrays of tables]] are supported, including dotted keys.

JSON output

Waiting for TOML input.

Private by design: conversion runs entirely in your browser with a built-in TOML parser, so your data never leaves your device.
Advertisement

How this conversion works

Paste TOML into the input box and press Convert (or just keep typing, conversion happens as you type). The tool parses it with a built-in TOML parser that understands tables, arrays of tables, dotted keys and inline tables, then pretty-prints it as JSON with 2-space indentation. Conversion runs entirely in your browser with a built-in TOML parser, so your data never leaves your device.

JSON output notes

The output is pretty-printed with 2-space indentation, ready to paste into an API client, a JavaScript app or a .json file. TOML dates and times come through as ISO strings, since JSON has no native date type, and every other scalar keeps its type: strings stay strings, numbers stay numeric, and booleans stay true or false.

TOML to JSON FAQs

Why convert TOML to JSON?
JSON is what APIs, JavaScript apps and most developer tools consume. Converting TOML config files to JSON lets you feed settings into systems that only accept JSON, or inspect a config with familiar JSON tooling.
How is my TOML parsed?
With a built-in TOML parser that supports [tables], [[arrays of tables]], dotted keys, inline tables, multiline arrays and all scalar types (strings, integers, floats, booleans and dates).
What happens to TOML dates and times?
They come through as ISO strings, since JSON has no native date type. Every other scalar keeps its type: strings stay strings, numbers stay numeric, booleans stay true or false.
How is the output formatted?
Pretty-printed with 2-space indentation, so it is easy to read, diff and paste into API clients or code editors.
Is my data sent to a server?
No. conversion runs entirely in your browser with a built-in TOML parser, so your data never leaves your device.
Advertisement