←
Data

TOML Converter

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Convert TOML ⇄ JSON ⇄ YAML

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Opens
TOMLJSONYAML
Saves as
TOMLJSONYAML
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Batch processing
One file at a time
Offline use
Works without a connection once this page has loaded
Built with
smol-toml and yaml
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About TOML Converter

TOML Converter turns TOML into JSON or YAML, and JSON or YAML into TOML, in any direction. It is handy for config files such as Cargo.toml, pyproject.toml, Hugo or Netlify settings when another tool expects JSON or YAML. The input format is detected automatically (or you can set it), and the result updates as you type. Converting TOML to TOML formats it, so the converter doubles as a TOML validator and formatter.

Parsing follows TOML 1.0 with smol-toml and YAML 1.2 with the yaml library. Errors show the line and column where parsing stopped. TOML has two limits that JSON and YAML do not: it has no null value, and the top level must be a table of keys, not a list or a single value. The tool names the exact path of any null so you can fix it, or leave such keys out. TOML dates become ISO 8601 strings in JSON and YAML.

TOML Converter runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use TOML Converter

  1. Paste TOML, JSON or YAML into the input box, or open or drop a .toml, .json, .yaml or .yml file.
  2. Leave Input format on Auto or choose it yourself, then pick TOML, JSON or YAML as Output format.
  3. For JSON output choose the indentation; for TOML output decide whether null values should be left out. Turn on Sort keys A–Z if you like.
  4. Copy or download the result, or click Swap to convert it back.

Frequently asked questions

Why can't my JSON be converted to TOML?

Usually because it contains null, which TOML cannot represent, or because the top level is an array or a single value instead of an object. The error message shows the path of the first null, such as $.deploy.healthCheck. Turn on Leave out null values to drop those keys, or wrap a top-level array in an object with a key.

What happens to TOML dates and times?

TOML has offset date-times, local date-times, local dates and local times. JSON and YAML output writes them as ISO 8601 strings, for example 2026-12-05T09:30:00Z or 2026-12-05, because JSON has no date type.

Are comments kept?

No. Comments are not part of the data, so they are lost in any conversion, including TOML to TOML formatting. Key order is kept, except that TOML output writes plain values before sub-tables, as the TOML format requires.

How is the input format detected?

Text that parses as JSON is JSON, text that parses as TOML is TOML, and everything else is read as YAML. Invalid input is matched by its shape (key = value lines and [tables] suggest TOML), so the error comes from the right parser. Set Input format manually if the guess is wrong.

Are very large integers supported?

Integers up to 2^53 - 1 (9007199254740991) convert exactly. TOML integers above that cannot be stored as JavaScript numbers without losing digits, so the tool reports an error instead of changing the value.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it