TOML в JSON конвертер онлайн

Free Бесплатно · Без регистрации · Данные не сохраняются
Indent
TOML
JSON
// JSON output
Lines: Keys:

Другие инструменты разработчика

TOML Форматтер
Форматировать & проверять
YAML→JSON
В JSON
JSON→TOML
В TOML
CSV→JSON
В JSON
XML→JSON
В JSON
JSON Форматтер
Форматировать & проверять
Timestamp
Unix ↔ Дата
Base64
Кодировать

Почему это лучший конвертер TOML в JSON

Полная поддержка TOML v1.0

Parses the complete TOML specification: basic and literal strings, multi-line strings, integers (hex, octal, binary), floats, booleans, datetimes, arrays, inline tables, standard tables, and array-of-tables.

Преобразование с сохранением типов

TOML integers become JSON numbers, TOML booleans become JSON booleans, and TOML datetime strings are preserved as ISO 8601 strings — no silent type coercion.

Cargo.toml & pyproject.toml

Convert Rust Cargo.toml, Python pyproject.toml, or any TOML config to JSON for use with tools that require JSON input — such as APIs, linters, or data pipelines.

Конфиденциальность прежде всего

Conversion happens entirely in your browser — no data leaves your device. Safe for TOML files containing tokens, credentials, or private registry configuration.

Часто задаваемые вопросы

Why convert TOML to JSON?

JSON is the universal data interchange format supported by virtually every programming language and tool. Converting TOML to JSON lets you feed TOML config data into REST APIs, JavaScript tooling, data validation schemas, or any system that accepts JSON but not TOML.

How are TOML array-of-tables converted?

TOML [[table]] sections become JSON arrays of objects. Each [[bin]] entry in a Cargo.toml, for example, becomes one element in a "bin" JSON array.

Are TOML dates preserved in JSON?

JSON has no native date type, so TOML datetime values are converted to ISO 8601 strings (e.g. "2024-01-15T10:30:00Z"). This is the standard convention used by most JSON-based APIs.

Can I convert TOML back to JSON programmatically?

Yes. In Python use the tomllib standard library (Python 3.11+) combined with json.dumps(). In Node.js use the @iarna/toml or smol-toml package. This online tool is the fastest option for one-off conversions.

Подробное руководство
Руководство по YAML & TOML
Kubernetes, Docker, Rust & Python
Читать руководство