Tools for converting between various data formats
Updates
Recently shipped improvements
Provides bidirectional conversion between JSON and YAML formats.
Useful for writing config files or converting data formats.
JavaScript Object Notation, commonly used for API communication
Human-readable format, commonly used for config files
Bidirectional conversion
Real-time conversion
A tool that provides bidirectional conversion between JSON and YAML data serialization formats. Convert JSON to YAML and YAML to JSON in real-time, with indentation settings and input/output swap features for quick configuration format conversion and data migration.
Choose a Conversion Direction
At the top, choose 'JSON → YAML' or 'YAML → JSON.'
Enter the Data
Enter JSON or YAML in the left editor, or load a sample.
Review the Result
The converted result appears in the right editor in real time. An error message appears if the input is invalid.
Copy or Swap
Copy the result, or use Swap to move it into the input and convert it in the opposite direction.
JSON is a strict format that uses braces, brackets, and quotation marks and is well suited to machine processing. YAML is indentation-based and easier for people to read and write. JSON is common in API communication, while YAML is common in configuration files such as Kubernetes and Docker Compose.
YAML comments (#) are removed during conversion because JSON does not support comments. If you need comments, keep the YAML format or consider an extended format such as JSON5.
In the options panel, set YAML and JSON indentation independently to either 2 or 4 spaces. Match your project's coding conventions.
Swap moves the converted result into the input and reverses the conversion direction. It is useful for converting JSON → YAML and then converting the result back to JSON for comparison with the original.
Because conversion runs in the browser, very large data sets may affect performance. Typical configuration files of a few hundred KB work without issue.