Command-line tool
yj
brew/yj
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
CLI to convert between YAML, TOML, JSON and HCL
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
cargo install yj
macOS
brew install yj cargo install yj
Linux
brew install yj cargo install yj
Convert [y]AML to JSON (default) from `stdin` and write the result to `stdout`
yj < file.yml -y
Convert [t]OML to [y]AML
yj < file.toml -ty
Convert [j]SON to [t]OML with [i]ndentation
yj < file.json -jti
Related command-line tools
- remarshal
Convert between TOML, YAML and JSON - convert2json
CLI utilities to convert BSON, CBOR, CSV, INI, MessagePack, Plist, RSV, TOML, XML & YAML into JSON and for use with… - dhall-toml
Convert between Dhall and Toml - dasel
JSON, YAML, TOML, XML, and CSV query and modification tool - jsongrep
Query tool for JSON, YAML, TOML, and other structured formats rust cli search json yaml command-line grep… - ferrite
A fast, lightweight text editor for Markdown, JSON, YAML, and TOML files. - otree
Command-line tool to view objects (JSON/YAML/TOML) in TUI tree widget - dhall-yaml
Convert between Dhall and YAML
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents