Конвертируйте JSON в TOML и обратно в обоих направлениях полностью в браузере.
Как использовать JSON / TOML
Выберите направление: JSON в TOML или TOML в JSON.
Вставьте JSON или TOML.
Скопируйте результат или поменяйте для обратного конвертирования.
This is a two-way converter between JSON and TOML. Pick a direction, paste your data, and copy the result. It is built on a well-tested TOML parser that handles nested tables and arrays of tables correctly.
Everything runs locally in your browser, so your data, which for config files can include hostnames or tokens, never leaves your device.
TOML (Tom's Obvious, Minimal Language) is a configuration format designed to be obvious to read and to map cleanly onto a hash table. It is what Rust's Cargo uses for Cargo.toml and what Python projects use for pyproject.toml, among many others.
JSON and TOML describe similar data but suit different jobs. JSON is the lingua franca for APIs and machine exchange. TOML is built for human-written config, with sections, comments and first-class dates that make a settings file pleasant to edit.
TOML also supports native date and time values and typed numbers, so values keep their meaning rather than all becoming strings, which is part of why it is preferred for configuration.
Most data round-trips cleanly, but there is one catch. TOML has no null value. JSON nulls cannot be represented, so remove or replace them before converting to TOML, otherwise the conversion cannot express them.
Часто задаваемые вопросы
TOML -- минималистичный формат конфигурации, разработанный для удобного чтения. Используется такими инструментами, как Cargo, и многими проектами Python в pyproject.toml.
Большинство данных -- да. В TOML нет null, поэтому null из JSON не может быть представлен; удалите или замените их перед конвертацией.
Нет. Конвертация выполняется полностью в браузере, данные никогда не покидают устройство.
Встроить этот инструмент
Добавьте этот инструмент на свой сайт. Скопируйте фрагмент ниже, он обновляется автоматически.
<iframe src="https://monu.tools/embed/ru/json-toml-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Похожие инструменты
Форматируйте, минифицируйте и проверяйте JSON. Настраиваемый отступ, сортировка ключей. Ошибки выделяются.
Минифицируйте и проверяйте JSON в браузере с отображением экономии байт.
Конвертируйте JSON в CSV или CSV в JSON прямо в браузере. Настраиваемый разделитель.
Конвертируйте YAML в JSON или JSON в YAML прямо в браузере. Форматированный вывод.