YAML ⇄ JSON Converter
Convert YAML to JSON and JSON to YAML for Kubernetes manifests, GitHub Actions, Docker Compose and config files, with clear parse errors.
Runs on your device
Result
Results appear here as you type.
What it does
Paste YAML or JSON and choose the direction. Parsing uses the js-yaml library in safe mode, so custom YAML tags that could run code are not supported.
How to use it
- Choose a direction.
- Paste YAML or JSON.
- Copy or download the converted file.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Editing CI pipelines.
- Converting API responses into config.
- Debugging indentation errors.
Questions
Are YAML comments kept?
No. JSON has no comments, so they are lost when converting to JSON.
Does it support multiple YAML documents?
Yes; documents separated by --- become a JSON array.
More developer tools
See all 25- CSS & JavaScript Minifier Minify JavaScript with Terser and CSS with a safe whitespace and comment remover, and see how many bytes and percent you save.
- CSS Gradient Generator Build linear and radial CSS gradients from up to five colours, preview them, and copy ready to use CSS for backgrounds and buttons.
- HTTP Status Code Lookup Look up what any HTTP status code means, from 200 OK and 301 redirects to 404, 429 and 503, with practical notes for debugging.
- User Agent Parser Parse a browser user agent string into browser, version, operating system, rendering engine and device type. Shows your own by default.
- XML Formatter & Validator Pretty print and validate XML for sitemaps, RSS feeds, SOAP and config files, with clear well formedness errors. Parsed safely, never executed.
- Password Strength Checker Check how strong a password is with an entropy estimate, common password and pattern detection, and an estimated offline cracking time.
People also use
Browse all 200 tools- To Do List A simple to do list that remembers your tasks in your browser. Add, tick off, reorder and clear tasks with no account or app. Time & productivity
- One Rep Max Calculator Estimate your one rep max from any set of up to 12 reps using the Epley, Brzycki and Lombardi formulas, with a percentage training table. Health & fitness
- Word Unscrambler Unscramble letters into every English word you can make, grouped by length, with ? for blank tiles. Perfect for Scrabble, Words with Friends and anagrams. Text & writing
- Email Address Syntax Validator Check a list of email addresses for syntax errors, common domain typos (gmial.com), disposable providers and role based addresses before you send. Leads & site analysis