Code tool

JSON to TOML Converter

Turn a JSON configuration object into TOML you can copy or download, while keeping unsupported nulls and deep nesting visible as clear errors.

In-browser processingNo account requiredPrivacy details ↗

Enter a JSON object up to 100,000 characters. TOML supports objects, arrays, strings, finite numbers, booleans, and rejects null values.

A QUICK WALKTHROUGH

How to use this tool

  1. Paste a JSON object up to 100,000 characters.
  2. Convert it and review the TOML output and any boundary errors.
  3. Copy the TOML or download it as a .toml file.

Defined JSON and TOML boundaries

The root must be an object. Strings, booleans, finite numbers, arrays, and nested objects are supported; null values are rejected because TOML has no null type. Arrays may contain supported values and nested objects are emitted as inline tables.

Keys, depth, and local processing

Bare TOML keys use letters, numbers, underscores, or hyphens. Other JSON key names are quoted. Nested values are limited to eight levels to keep output readable and bounded. Conversion, copying, and download preparation happen in your browser.

GOOD TO KNOW

Common questions

Can I convert a top-level JSON array?

No. TOML documents require named keys, so enter an object at the root.

Why is null rejected?

TOML has no native null value. Replace null with a concrete value or remove that key before converting.

Are nested objects supported?

Yes. They are emitted as inline tables up to eight nested levels, and keys with punctuation are quoted.