YAML ⇄ JSON ⇄ TOML Converter
Format Converters
Verified
Convert config files between YAML, JSON, and TOML using real parsers, with format auto-detection and precise syntax error positions
Related in Format Converters:Image to PDFPDF to JPGImage ResizerTimestampImage ConverterText Converter
YAML ⇄ JSON ⇄ TOML Converter
Convert between YAML, JSON, and TOML with real parsers, precise error positions, and no data sent anywhere.
YAML input
1 lines · 0 chars · Tab indents, Esc then Tab exits
JSON output
Conversion notes
JSON
The strictest of the three: no comments, no trailing commas, and keys must be quoted strings. Comments in YAML or TOML input are dropped when converting to JSON.
YAML
Supports anchors, aliases, and multiple documents in one file. Multi-document input is converted into an array, one entry per document.
TOML
Requires a table at the top level, so a bare array or scalar cannot be converted. TOML has no null type — null values are reported and omitted rather than silently lost.