JSON to TOML Converter

[project]
name = "rangdom"
version = "1.0.0"
requires-python = ">=3.11"
dependencies = ["httpx", "pydantic"]

[tool]

[tool.black]
line-length = 88

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Converted locally in your browser. Your JSON stays only on this page.

Turn JSON into TOML

Paste a JSON object and get an equivalent TOML document, ready for Cargo.toml, pyproject.toml, Hugo, or Netlify config. Nested objects become [dotted.table] headers, arrays of objects become [[array-of-tables]] blocks, and arrays of scalars become inline arrays. Within each table the scalar keys are always emitted before any nested table header, so no value is silently reparented. Keys are written bare when they are made of letters, digits, underscores, and hyphens, and quoted otherwise. Because TOML has no null type, keys whose value is null are omitted from the output. The top level must be a JSON object — a bare array or scalar has no TOML table to live in.