Data and JSON tools Free · No sign-up · No upload

Convert TOML to JSON

Read a TOML config as JSON: tables become objects, arrays of tables become lists, and dates turn into ISO text. Syntax errors point to the line. Local to your browser.

  • No usage limits
  • Your data stays local
  • Dates become ISO text
  • Errors with line and column
Your data
  • Runs on your device. Files are never uploaded.
  • Free and unlimited. No sign-up, no watermark.
Private: processed in your browserNo upload waitIN: TOML → OUT: JSON
How was TOML to JSON?
How it works

TOML to JSON in three steps

No account, no email, no waiting for an upload.

  1. STEP 01

    Paste or open your TOML

    Use a .toml or .txt file, or paste into the box.

  2. STEP 02

    Choose the indent

    Pick 2 spaces, 4 spaces or tabs.

  3. STEP 03

    Copy or download the JSON

    Or read the error message that gives the line and column.

What you get

What TOML to JSON does, and what it doesn't

We'd rather tell you up front than surprise you after the download.

What you get

  • Full table support[table], dotted keys, inline tables and [[arrays of tables]] are all turned into nested JSON.
  • Date valuesTOML dates and times are written as strings in their own form, such as 1979-05-27T07:32:00Z.
  • Strings of every kindBasic, literal and multi-line strings are read correctly.
  • Clear errorsA mistake is reported with the line and column and a short reason.
  • Pretty JSONThe output is indented, ready to use in code or an API call.

Good to know

  • Comments are droppedJSON has no place for them.
  • Dates are stringsJSON has no date type, so you get text. Parse it in your own code.
  • Large integersIntegers beyond 2^53 may lose precision when converted to a JavaScript number.
Private by design

Your data never leave your device

The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.

Typical online tool upload

Your device→Their server→Your device

Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.

Mediaextractr no upload

Your device does all the work

The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.

Made for real work

When people use TOML to JSON

Inspect pyproject.toml

See project metadata as JSON for scripts or tooling.

Read Cargo or Hugo configs

Check the exact data structure of a TOML file.

Feed a JSON-only tool

Convert and then use the JSON formatter or the JSON path tester.

Learn TOML

Paste examples to see how tables map to objects.

Compare

Mediaextractr vs typical upload tools

MediaextractrPrivateTypical upload tools
Your file is uploadedNeverYes
Sign-up neededNoOften, after a few files
Daily file limitNoneOften 1–2 free files
WatermarkNeverSometimes
Wait for upload & downloadNoYes
Speed on very large filesDepends on your deviceDepends on their servers

How TOML maps to JSON

A table header like [database] becomes a database object. Dotted keys such as a.b.c = 1 create nested objects. A repeated header like [[products]] adds one more item to a products list.

Values map directly: strings, integers, floats and booleans stay as they are. Arrays become JSON arrays.

Troubleshooting: TOML to JSON

TOML is strict, and error messages point at the spot:

  • Defining the same key or table twice is an error.
  • Strings need quotes. An unquoted word on the right-hand side is invalid.
  • A table must not be defined twice, even if one definition is an inline table.
  • To move on to YAML, use TOML to YAML. To write TOML, use JSON to TOML.

A quick way to inspect a project file

Converting pyproject.toml or Cargo.toml to JSON lets you search it with the JSON path tester or compare two versions with JSON compare. Dependency tables become objects keyed by package name, which makes it easy to spot a version that differs between two branches.

FAQ

Questions, answered

How do I convert TOML to JSON?

Paste the TOML and copy the JSON.

How are dates handled?

TOML date and time values are written as text, keeping their original form.

Can I paste a TOML file containing tokens?

Yes. Parsing happens locally in your browser tab, and nothing you paste is uploaded.

What about arrays of tables?

Each [[name]] block becomes one item in a JSON list.

Why do I get a syntax error?

The message shows the line and column and a reason, such as a duplicate key or a missing quote.

Will it run on my phone?

Yes. Paste the TOML file into a current mobile browser and copy the JSON.