Convert TOML into JSON instantly
Paste TOML on the left and get JSON on the right — all in your browser

What this tool does
Paste TOML on the left, and you get formatted JSON on the right. Everything runs locally in your browser, so your config never needs to leave your device.
Who it’s for
Developers, DevOps engineers, and anyone working with config files (for example, tool settings, project metadata, or application defaults) who needs JSON for scripting or APIs.
If your pipeline needs YAML instead, try our YAML to JSON converter or JSON to YAML converter.
Privacy note: conversion runs in your browser. Avoid pasting secrets anyway—treat API keys and tokens as sensitive.
How to interpret the result
The output is pretty-printed JSON (with indentation). It’s meant to be human-readable and easy to diff in Git.
Here is your TOML text and is the indentation level used for readability.
Example 1: A simple settings block
Input TOML:
title = "My App" port = 8080 debug = true
What happens:
Output JSON (formatted):
{
"title": "My App",
"port": 8080,
"debug": true
}Example 2: Nested tables
Input TOML:
[database] host = "localhost" port = 5432 [database.pool] min = 1 max = 10
TOML tables become nested JSON objects:
Output JSON (formatted):
{
"database": {
"host": "localhost",
"port": 5432,
"pool": {
"min": 1,
"max": 10
}
}
}Git-friendly config diffs
Convert TOML into formatted JSON so code review tools display consistent indentation and object structure.
Tip: If you also store YAML in the repo, convert it with YAML to JSON.
Scripting and CI pipelines
Many scripts can parse JSON easily. Use this converter to turn a TOML config into JSON and then consume it in your build steps.
Tooling compatibility
Some validators and dashboards only accept JSON. Convert once, paste JSON, and move on.
Debugging configuration
Converting to JSON can help you quickly see the resolved nested structure and confirm values are in the place you expect.
Pro tip: If you’re converting multiple formats in a project, standardize on JSON as an intermediate format. Convert TOML → JSON, then JSON → YAML if needed using our JSON to YAML converter.
Convert config for an API
Paste TOML and share JSON with a service that only accepts JSON payloads.
Quick sanity-check structure
Nested TOML tables become nested JSON objects, making structure easier to spot.
Make configs diff-friendly
Pretty JSON reduces noise in pull requests and helps code review.
Move between formats
Use JSON as a bridge between TOML and YAML when needed.
Prototype tooling quickly
Many languages parse JSON easily—great for quick scripts and prototypes.
Share examples safely
Share non-sensitive parts of config without exposing secrets.
When it might not be a fit
If your TOML contains values that don’t map cleanly to JSON types in your target system (especially date/time types), you may need to normalize them after conversion.
Practical tips
Formatting tip: pretty JSON is perfect for reading. If you need compact JSON for size, you can later minify it in your build pipeline.
This converter does two main steps: it parses TOML text into a JavaScript object, then formats that object into JSON.
: TOML input text
: parsed object representation
: formatted JSON output
About TOML dates
TOML supports date/time types. JSON doesn’t have a native date type, so different parsers may output dates differently (string vs structured object). If you rely on dates downstream, verify how your target system expects them.
TOML is a configuration format designed to be easy to read and edit by humans.
JSON is a data interchange format commonly used by APIs.
A practical workflow is to treat JSON as an intermediate representation:
If you need to go the other direction, try YAML to TOML.
It runs locally in your browser. Your input isn’t uploaded.
TOML is strict. Common issues include mismatched quotes, invalid dates, and duplicate keys.
The tool formats JSON for readability. Conceptually it outputs .
Not perfectly. JSON lacks a native date type, and some TOML values may be represented as strings or special objects depending on the parser.
Convert TOML → JSON here, then use JSON to YAML.
Defines TOML syntax and data types.
Background on JSON structure and usage.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Transform text into the NATO phonetic alphabet for oral transmission. Convert letters A–Z into Alpha/Bravo/Charlie… and copy instantly.
Convert text to ASCII (8-bit) binary and convert ASCII binary back to text. Clean input automatically and copy results instantly.
Convert text to Unicode decimal HTML entities (e.g., A) and convert them back to text. Runs locally in your browser with one-click copy.
Escape and unescape HTML entities for <, >, &, ", and ’. Runs locally in your browser with instant copy.
Edit rich text in a simple WYSIWYG editor and copy Prettier-formatted HTML instantly. Runs locally in your browser.