JSON to XML
Convert JSON to well-formed XML with custom root and item names, attributes, and indentation.
Convert JSON to clean, readable YAML instantly. Free, private, and 100% in your browser.
YAML is the format of choice for configuration: Kubernetes manifests, Docker Compose files, CI/CD pipelines, and many application configs are written in it. This tool converts JSON, such as an API response or a generated config, into idiomatic YAML that is ready to commit.
Nested objects and arrays use clean, indented block YAML, the style used in most configuration files.
Strings that YAML would misread, such as "yes", "no", "1.0", or dates, are quoted so their type never changes.
Strings with line breaks are written as readable literal blocks (|) instead of long escaped lines.
Output is valid YAML 1.2 and also reads correctly in older YAML 1.1 parsers.
Your JSON is validated as you type, with the exact line and column of any error.
The conversion runs entirely in your browser. Your data is never uploaded.
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": { "name": "web", "labels": { "app": "web" } },
"spec": {
"replicas": 3,
"enabled": "yes",
"containers": [
{ "name": "web", "image": "nginx:1.27", "ports": [80, 443] }
]
}
}apiVersion: apps/v1
kind: Deployment
metadata:
name: web
labels:
app: web
spec:
replicas: 3
enabled: "yes"
containers:
- name: web
image: nginx:1.27
ports:
- 80
- 443
Note that "yes" stays quoted, so YAML does not turn it into the boolean true.
In YAML, unquoted values such as yes, no, on, off, null, 1.0, or 2026-01-15 are read as booleans, null, numbers, or dates. To keep them as strings, exactly as in your JSON, the converter wraps them in double quotes.
Yes. YAML 1.2 is a superset of JSON, so JSON is technically valid YAML. Converting to block-style YAML makes it far easier to read and edit, which is why tools like Kubernetes and Docker Compose prefer it.
Yes. The output is standard block-style YAML that works with kubectl, Helm, Docker Compose, GitHub Actions, GitLab CI, Ansible, and other YAML-based tools.
Two spaces is the most common convention, used by Kubernetes and most CI systems. Both options produce valid YAML, so pick the one that matches your project.
No. The converter runs entirely in your browser using JavaScript. Your JSON never leaves your device.
Convert JSON to well-formed XML with custom root and item names, attributes, and indentation.
Turn JSON arrays into CSV for Excel or Google Sheets, with nested object flattening and custom delimiters.
Encode JSON as Base64 or base64url for headers, tokens, environment variables, and data URIs.
Decode Base64 or base64url back into readable, validated, and pretty-printed JSON.