Skip to the converter

JSON to TOML converter, without the upload.

Turn JSON data files into TOML. It is converted in your browser, so the file never leaves your device.

Drop JSON files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert JSON to TOML

  1. Add your JSON data files

    Drop JSON files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. TOML is already chosen

    Press Convert. There is nothing else to set. The work happens in this tab.

  3. Download

    Save the TOML, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The JSON to TOML converter is part of this page and runs inside your browser. Your data files are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

JSON to TOML: what to expect

JSON is hard to read in bulk and cannot be opened as a table without flattening. TOML is unambiguous and pleasant to edit by hand. JSON is at home in APIs and data exchanged between programs; TOML is the usual choice for simple configuration files.

Keys, nesting and values carry over. TOML needs named keys at the top level and cannot store empty (null) values, so a file with a top-level list or a null is refused, with the offending key named.

JSON vs TOML

JSON

JSON data

JSON represents data as nested objects and lists in plain text. It is the default language of web APIs. Unlike a spreadsheet it can be nested to any depth, which is also why turning it into rows and columns takes a decision about how to flatten it.

Opens in Any text editor, every programming language, browser developer tools

JSON converter
TOML

TOML data

TOML is a small configuration format with explicit sections and typed values. Rust's Cargo and Python's pyproject.toml use it.

Opens in Any text editor

TOML converter
JSON compared with TOML
JSONJSON dataTOMLTOML data
Stands forJavaScript Object NotationTom's Obvious Minimal Language
TypeStructured data (text)Structured data (text)
CompressionNoneNone
Introduced2001, by Douglas Crockford2013, by Tom Preston-Werner
Opens inAny text editor, every programming language, browser developer toolsAny text editor
Best forAPIs and data exchanged between programsSimple configuration files
File extension.json.toml

Questions

Are my data files uploaded anywhere?

No. The JSON to TOML conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Is anything lost when converting JSON to TOML?

The values are kept. Anything TOML has no way to express, such as formatting, formulas or nesting, is simplified or left out.

Can I convert several JSON files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert JSON to TOML on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the JSON file, press Convert and save the TOML. There is nothing to install.

Is there a file size limit?

Yes. Data files up to 300 MB are accepted; a larger file is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.