JSON ↔ YAML Converter

Convert between JSON and YAML formats in real-time. Edit either side and see the conversion instantly.

JSON
YAML

How It Works

1

Type in either panel

Enter JSON on the left or YAML on the right. The other panel updates live with a 300ms debounce.

2

Fix errors

Invalid input shows an error with the line number. Fix it and the conversion resumes.

3

Format and copy

Use the format button to prettify, minify JSON, or swap panels. Copy from either side.

FAQ

YAML is more human-readable, supports comments, and is the standard for config files (Docker Compose, Kubernetes, GitHub Actions).
YAML comments are lost when converting to JSON (JSON doesn't support comments). Converting back won't restore them.
The js-yaml library supports basic YAML features including anchors (&) and aliases (*) for DRY configuration.

Varstatt Toolkit

Each tool works standalone, runs entirely in your browser, and requires no signup.

Built & Maintained by Varstatt

Varstatt is a one-person product studio run by Jurij Tokarski, product engineer since 2011. These tools are free and open — no signup, no catch.