YAML to JSON
Convert YAML configuration into JSON, or JSON back into clean YAML. Parse errors report the line and column so you can fix the file quickly.
yaml0 ln / 0 ch
json
readyruns locally
local / nothing uploadedAbout this tool
YAML is pleasant for humans to edit; JSON is what most programs parse. Converting lets you inspect a Kubernetes manifest or CI config as plain data. Because both formats are parsed rather than transformed textually, comments cannot corrupt the result.
How to use it
- Paste your YAML into the input pane.
- The JSON appears as you type.
- If there is a syntax problem, the error names the line to look at.
- Copy the JSON for use in code or tests.
Examples
A small manifest
service:
name: api
ports:
- 8080{
"service": {
"name": "api",
"ports": [8080]
}
}Limits and notes
- YAML comments are dropped in the JSON output, since JSON has no comment syntax.
- Duplicate keys resolve to the last value, which the parser reports.
Frequently asked questions
- Are anchors and aliases resolved?
- Yes. The parser expands them into the resulting data rather than leaving references behind.
- Why does my YAML fail to parse?
- The usual culprits are inconsistent indentation and tabs. YAML requires spaces and consistent nesting.
- Is the data uploaded?
- No, parsing happens in the browser.
Want the details? Read the full guide: Reading a Kubernetes Manifest as Plain Data.
Related Tools
CSV to JSONConvert CSV data to a JSON array of objects. Automatically maps the first row to object keys, perfect for importing spreadsheet data into web applications or APIs.
JSON to CSVConvert a JSON array into a clean CSV file. Extract unique keys to form the header row, perfect for exporting API data for analysis in Excel or Google Sheets.
XML to JSONConvert XML documents to JSON objects. Bridge the gap between legacy SOAP APIs and modern frontend applications while preserving attributes and hierarchical data.
JSON to XMLConvert JSON objects to valid XML markup. Automatically handle arrays, attributes, and special characters, making it easy to integrate with older enterprise systems.
JSON to YAMLTurn a JSON object into readable, correctly indented YAML. Handy for turning API responses into Kubernetes manifests, Docker Compose files or CI config.
SQL to JSONTurn INSERT statements into JSON rows, or generate INSERT statements from a JSON array. Handles escaped quotes, NULL, booleans and a union of keys across rows.
JSON to SQLGenerate INSERT statements from a JSON array of objects. Column names are derived from the union of all keys, and values are quoted safely.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.