TOML Split

Break a document into top-level tables and array tables. Root scalars go into a _root fragment.

Parsing and conversion on this page run in your browser.

All templates

How to use

Example

[package]
name = "demo-lib"
version = "0.1.0"
edition = "2021"
description = "Sample library manifest"
license = "MIT"

[dependencies]
serde = "1"

[features]
default = ["std"]
std = []

FAQ

What is _root?

Top-level keys that are not tables or array tables are collected into the _root fragment.

Are nested tables split further?

No. Only top-level tables and array tables become separate fragments.

Related tools