YAML Converter
Convert YAML to and from JSON, XML, CSV, and TSV. Choose a direction and target format, paste your data, and get a clean conversion powered by js-yaml.
Recommended Settings
Pro Tips
- •Click the direction button to flip between YAML → Format and Format → YAML without retyping anything
- •JSON and XML conversions preserve nested objects and arrays; CSV and TSV are flat, so nested structures are not supported in that direction
- •YAML parsing and generation use the js-yaml library for full spec compliance, including anchors, multi-line strings, and type inference
- •When converting an array of objects to CSV/TSV, the header row is built from the union of every object's keys
- •The whole conversion happens locally in your browser - nothing is uploaded anywhere
Most Popular
Most users convert YAML config files to JSON for use in JavaScript applications
When to Use This Tool
Convert YAML configuration files (Docker Compose, Kubernetes manifests, CI/CD pipelines) to JSON for tools or scripts that expect JSON input.
Transform YAML API specs or responses into JSON or XML for integration with systems that don't natively support YAML.
Move data between YAML-based systems and JSON, XML, or CSV-based databases and applications.
Convert a flat YAML list of records into CSV or TSV for opening directly in Excel or Google Sheets.
How It Works
Parse the input using the appropriate parser for the selected format (js-yaml, JSON.parse, DOMParser, or a CSV/TSV tokenizer)
Convert the parsed data into a plain JavaScript value shared across all formats
Serialize that value into the target format - js-yaml for YAML, JSON.stringify for JSON, a custom XML builder, or a CSV/TSV writer
Display the resulting output, ready to copy or download
100% Private
Files never leave your device. All processing happens locally in your browser.
Lightning Fast
Powered by js-yaml + Browser DOMParser for optimal performance on modern browsers.
Open Source
Built with verified, open-source libraries. Fully transparent.
Frequently Asked Questions
Which format conversions are supported?
You can convert YAML to JSON, XML, CSV, or TSV, and convert any of those formats back to YAML. Use the direction button to flip between the two directions for the currently selected format.
Will nested YAML structures be preserved?
Yes for JSON and XML, which both support nested objects and arrays. CSV and TSV are flat formats, so deeply nested YAML structures should be flattened before converting to those formats.
How does the tool handle YAML-specific features like anchors?
YAML parsing uses the js-yaml library, which fully supports anchors, aliases, multi-line strings, and YAML's native type inference (numbers, booleans, null, dates).
Is my data uploaded to a server?
No. All parsing and conversion happens locally in your browser using js-yaml and the native DOMParser API. Your data never leaves your device.
What happens if my input is invalid?
The tool shows a specific error message describing what's wrong with the input - a YAML syntax error, invalid JSON, malformed XML, or an empty CSV/TSV file - so you can fix it before retrying.