Skip to content
TOML ⇄ JSON ⇄ YAMLDeveloper tools

TOML Converter

Check TOML with a full TOML 1.0 parser and convert TOML to JSON, JSON to TOML, TOML to YAML and YAML to TOML. Numbers, dates, inline tables and arrays of tables come out right.

About this tool

About TOML Converter

TOML Converter reads TOML the way the specification defines it, so the result keeps every value’s real type. TOML is the format of Cargo.toml for Rust, pyproject.toml for Python, Hugo and Netlify settings, and many app configs. Paste a file, open a .toml, .json or .yaml file, or drop one on the box; the right direction is picked from the file type. Choose TOML to JSON, JSON to TOML, TOML to YAML, YAML to TOML, or Check and tidy TOML. The parser understands every part of TOML 1.0: bare, quoted and dotted keys, basic and literal strings including multi-line ones and escaped characters, integers in decimal, hex, octal and binary with underscores such as 8_080, floats including inf and nan, booleans, dates and times with or without an offset, arrays over several lines with comments and a trailing comma, inline tables such as { version = "1.0", features = ["derive"] }, [tables] and [[arrays of tables]]. Mistakes are reported with the line and column, for example a key defined twice, a table defined twice, a number with a leading zero, a date that does not exist such as 30 February, or text without quotes; click the line to jump to it. Converting to TOML writes simple keys first, then each [table] and [[array of tables]], quotes keys only when needed, and can turn text such as 2026-11-29 into a real TOML date. TOML has no null, so null values from JSON or YAML are left out and listed so nothing disappears silently. The summary shows how many keys and tables the file has and how deep it goes. Use the result as input to convert it back and compare. Comments are not carried into the result. Copy it or download it as .toml, .json or .yaml. Nothing is uploaded.

TOML Converter tool

Where TOML is used

Config files done right

Rust projects

Read Cargo.toml as JSON.

Example[dependencies] with features.

Python projects

Check pyproject.toml.

Example[tool.poetry] tables.

Static sites

Hugo and Netlify settings.

Exampleconfig.toml to YAML.

Moving a config

JSON settings into TOML.

ExampleNested objects become [tables].

Scripts

Feed TOML to tools that read JSON.

ExampleTOML to JSON for jq.

Before you commit

Catch a duplicate key.

ExampleLine 12: defined twice.

TOML tips

Small rules, big errors

One definition per key

TOML rejects a key or table defined twice, unlike JSON and YAML readers that keep the last one.

Quote all text

Only numbers, booleans and dates go without quotes.

Use real dates

Write 2026-11-29 without quotes and it stays a date.

Underscores for long numbers

1_000_000 is easier to read and means the same.

Check YAML too

Format and validate YAML.

Open YAML Formatter

Tidy the JSON

Format and check JSON.

Open JSON Formatter
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed TOML Converter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 29 November 2026

Answers and guidanceFrequently Asked Questions
How do I convert TOML to JSON?
Choose TOML to JSON and paste or open the file. The JSON keeps numbers as numbers and booleans as booleans; dates become text in ISO format.
Can I convert JSON to TOML?
Yes. Nested objects become [tables], lists of objects become [[arrays of tables]], and other lists stay inline.
What happens to null values?
TOML has no null, so they are left out, and the tool lists each one.
Which TOML version is supported?
TOML 1.0, including multi-line strings, hex, octal and binary numbers, dates and times, inline tables and arrays of tables.
Are comments kept?
No. Comments are not carried into the converted or tidied file.
Why is my file rejected?
The message names the cause and line, for example a key defined twice, a leading zero, or text without quotes.
Is my file uploaded?
No. It is read in your browser.
More tools for your workflowRelated Tools

YAML Formatter and Validator

Check YAML with a full YAML 1.2 parser, see errors by line, catch values older YAML readers misread (yes, no, 0755, 22:22), tidy the indentation, and turn YAML into JSON or JSON into YAML.

JSON Formatter

Format, validate and minify JSON: 2 spaces, 4 spaces or tabs, sort keys, see the exact line and column of errors, fix trailing commas and quotes, copy or download.

YAML to JSON Converter

Convert YAML to JSON and JSON to YAML as you type. Anchors, merge keys and several documents work, and errors show the line.

XML Formatter and Validator

Check that XML is well-formed, see the error line, format or minify it, convert it to JSON, and search it with XPath. Text, CDATA, comments and namespaces are kept.

1 / 3
Browse all developer tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.