Advertisement

JSON to TOML

Convert JSON to TOML free, in seconds. Paste your data below, press Convert, then copy the result and drop the result into your config files. Everything runs in your browser, so nothing is ever uploaded.

JSON input

Paste your JSON below, then press Convert.

Tip: arrays of objects convert best. A single object becomes one row.

TOML output

Waiting for JSON input.

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

How this conversion works

Paste JSON into the input box and press Convert (or just keep typing, conversion happens as you type). The tool parses it with the browser's native JSON parser, then emits it as TOML: plain key-value pairs first, then [tables], with lists of objects becoming [[array of tables]] blocks. Conversion runs entirely in your browser with built-in code, so your data never leaves your device.

Reading the TOML output

A list of records becomes a series of [[items]] blocks, which is the idiomatic TOML way to express a list of objects. Lists of plain values become inline arrays like tags = ["ui", "ux"], and keys containing spaces or special characters are quoted automatically following the TOML spec. Nested objects become [tables], with deeper levels joined by dots.

JSON to TOML FAQs

Why convert JSON to TOML?
TOML is the config format behind Cargo, Python projects (pyproject.toml), Hugo and many developer tools. Converting exported data to TOML is the fastest way to turn an API response or a spreadsheet export into a config file you can commit to a repository.
How is my JSON parsed?
With the browser's native JSON parser, so even large documents convert fast. An array of objects becomes one row per object, a single object becomes a single row, and nested values are flattened with dot notation (for example contact.city).
How are lists of records represented?
Each object in a list becomes its own [[items]] array-of-tables block, which is the idiomatic TOML way to express record lists. Lists of plain values become inline arrays, and nested objects become [tables] with dotted paths.
What if my keys contain spaces or special characters?
They are quoted automatically following the TOML specification, so unusual key names stay valid and parseable by any TOML library.
Is my data sent to a server?
No. conversion runs entirely in your browser with built-in code, so your data never leaves your device.
Advertisement