TOML 格式化工具 在线免费版

Free 免费 · 无需注册 · 数据不上传
Error
TOML INPUT
OUTPUT
// TOML output

更多开发工具

YAML 格式化
格式化与验证
TOML→JSON
转 JSON
JSON→TOML
转 TOML 配置
YAML→JSON
转 JSON
Cron 生成器
构建定时任务
JSON 格式化
格式化、验证与压缩
JSON→YAML
转 YAML 配置
正则表达式
实时测试

为什么这是最好的在线 TOML 格式化工具

格式化 & 规范化 TOML

Paste any TOML and get consistent key = value spacing, blank lines before section headers, and collapsed excess whitespace — without touching your data.

验证完整 TOML 规范

Detects duplicate keys, duplicate tables, invalid [[array of tables]], inline table errors, and malformed values — all without any server round-trip.

Cargo.toml & 配置文件

Ideal for Rust Cargo.toml, Python pyproject.toml, and any application config that uses TOML. Handles all data types: strings, integers, floats, booleans, dates, and arrays.

隐私优先

All processing runs in your browser — nothing is uploaded to a server. Safe for Cargo.toml files containing private registry tokens or credentials.

常见问题

What is TOML?

TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read due to its simple, obvious semantics. It maps unambiguously to a hash table and is widely used in Rust (Cargo.toml), Python (pyproject.toml), and many other ecosystems.

What does the TOML formatter change?

The formatter normalises spacing around = signs, ensures a blank line precedes every [section] header, and collapses multiple consecutive blank lines into one. It never changes key names, values, or their order.

Does it support Cargo.toml and pyproject.toml?

Yes. Both Cargo.toml and pyproject.toml are standard TOML files. This formatter fully supports [[bin]], [[dependencies]] array-of-tables, inline tables, multi-line strings, and all other TOML v1.0 constructs.

How is TOML different from YAML and JSON?

TOML is designed specifically for configuration files. Unlike JSON it allows comments. Unlike YAML it avoids indentation-based structure and ambiguous type inference. TOML has explicit types for integers, floats, booleans, dates, and strings, making it less error-prone for config use cases.

深度指南
YAML & TOML 配置指南
Kubernetes、Docker、Rust & Python 配置
阅读指南