YAML ↔ JSON ↔ TOML Converter
Convert between YAML, JSON, and TOML instantly. Paste any format and get the other two. Validates input, highlights errors, and lets you download the converted output.
TOML does not support null values - they have been converted to empty strings in the TOML output.
How to use the YAML / JSON / TOML Converter
Paste data into any pane - YAML, JSON, or TOML - and the other two update instantly. Edit any pane to drive the conversion. Download the result in any format using the Download buttons. The converter handles nested objects, arrays, booleans, integers, and floats. A warning is shown when your data contains null values, which TOML does not support.
Format comparison
YAML is the most human-readable - used for Docker Compose, GitHub Actions, and Laravel's services.yaml. JSON is universal - used in package.json, APIs, and config files. TOML was designed for configuration files (Rust's Cargo.toml, Python's pyproject.toml) - it is strongly typed and has no ambiguity between strings and numbers.
Using these formats in Laravel
Laravel config files use PHP arrays, but Illuminate\Support\Facades\Storage can read YAML and JSON files directly. To parse YAML in PHP use the symfony/yaml package: Yaml::parse(file_get_contents('config.yaml')). Laravel does not have built-in TOML support - use the yosymfony/toml package.