Install
4Internet / developer utilities
YAML, JSON and XML Conversion Lab
Convert and update structured text with file and environment operators disabled.
A practical guide
How to use YAML, JSON and XML Conversion Lab
Convert between YAML, JSON and XML, or use a yq expression to select and update values before conversion. Input format, output format and expression are separate choices. The default dot expression preserves the parsed value while changing its representation.
- Paste structured text and choose its input format. Start with the supplied YAML example if you are trying the tool for the first time.
- Choose an output format. Leave the expression as a dot for conversion, use .service to select an object, or .service.replicas = 3 to preview an update.
- Choose Analyze and inspect the output before downloading it. Compare it with your original input when attributes, comments or scalar types matter.
Worked example
Illustrative input and expected interpretation. This example is not a live measurement.
Input
YAML service: with name example and replicas 2; expression .; JSON output
What to expect
{"service":{"name":"example","replicas":2}}What to watch for
- Conversion is not always lossless. YAML comments and presentation details, XML attributes and repeated elements, and implicit scalar types need explicit review.
- File loading and environment operators are disabled. Expressions cannot retrieve another file, a secret or a URL; source configuration is not executed.
- Input is limited to 64 KiB and the expression to 4 KiB. Multiple YAML documents can produce a sequence of output values rather than one JSON array.
Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.