TOML Query

Extract a value with a jq-style path. Nested tables, array indexes, and inline tables are supported. Everything stays in the browser.

Parsing and conversion on this page run in your browser.

Use dots for keys and [0] for array indexes. Quoted keys: ["weird.key"].

All templates

Output

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 path syntax is supported?

Dot segments (package.version), array indexes (servers[0].host), and quoted keys (["a.b"]). Trailing dots are invalid.

How are tables shown?

Scalars print as TOML literals. Tables and arrays are shown as pretty JSON for readability.

Related tools