# TOML Converter

> Convert TOML to JSON or YAML and back. Validates pyproject.toml, Cargo.toml and more. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/toml-converter

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/toml-converter

**Also useful for:** toml to json, json to toml, toml to yaml, yaml to toml, toml validator, toml parser, pyproject.toml, cargo.toml

## What you can do

- **TOML to JSON** — Read a config file as JSON, with dates as ISO strings. ([open with this preset](https://toffeekit.com/tools/toml-converter?preset=toml2json))
- **JSON to TOML** — Write tables and arrays of tables from a JSON object. ([open with this preset](https://toffeekit.com/tools/toml-converter?preset=json2toml))
- **TOML to YAML** — Move settings between tools that prefer YAML. ([open with this preset](https://toffeekit.com/tools/toml-converter?preset=toml2yaml))

## How it works

1. Choose a direction under Convert, such as TOML → JSON or JSON → TOML.
2. Paste your input or click Open to load a .toml, .json or .yaml file.
3. Pick an Indent for JSON or YAML output.
4. Click Swap to convert the result back, or Copy or Save it.

## FAQ

### How are TOML dates converted to JSON?

JSON has no date type, so dates become strings. Offset date-times keep their offset, like 1979-05-27T07:32:00.000-08:00, and local dates stay as 1979-05-27.

### Why were null values left out when converting to TOML?

TOML has no null. Keys with null values and null items in arrays are dropped, and a warning says how many were removed.

### Can the top level of my JSON be an array?

Not for TOML. A TOML document is always a table of keys and values, so wrap the array in an object, such as {"items": [...]}.

### Are very large integers kept exactly?

Yes. TOML integers larger than JavaScript can hold safely are kept digit for digit in the JSON and YAML output.

### Which TOML version is supported?

TOML 1.0, including tables, arrays of tables, inline tables, dotted keys, multi-line strings and all date and time types.

### Is TOML Converter free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

TOML Converter runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

