YAML to JSON Converter
Runs in browserConvert YAML to JSON or JSON to YAML bidirectionally — type preservation, null handling, and configurable indentation.
Last updated 01 Apr 2026
Convert YAML to formatted JSON or JSON to clean YAML with a single click. Handles nested objects, arrays, YAML anchors, aliases, multi-line strings, and all standard scalar types (strings, numbers, booleans, nulls). Configurable indentation. Free, browser-based, no data sent to any server, no signup required.
How to use
- 1
Paste your YAML or JSON
Paste your YAML config, Kubernetes manifest, GitHub Actions workflow, or any YAML document into the input panel on the left.
- 2
Choose conversion direction
Click YAML → JSON to convert YAML to formatted JSON output, or JSON → YAML to convert in the reverse direction.
- 3
Configure indentation
Select 2-space or 4-space indentation for JSON output to match your project's code style.
- 4
Copy the output
Click Copy to copy the converted result to your clipboard. The output is ready to paste into your editor, terminal, or API client.
Frequently asked questions
What YAML features are supported?
Are YAML types preserved correctly in JSON?
Will YAML comments appear in the JSON output?
Does it support Kubernetes manifests and Helm charts?
What happens with YAML anchors and aliases?
Is there a file size limit?
Is my data sent to a server?
Can I validate YAML syntax without converting it?
Can I convert GitHub Actions workflow YAML to JSON?
YAML to JSON Converter handles bidirectional conversion between YAML and JSON with
correct type semantics. Paste YAML on the left and click YAML → JSON to get a
properly formatted JSON output. Paste JSON and click JSON → YAML to get clean,
human-readable YAML.
The converter uses js-yaml under the hood, which implements YAML 1.2 with full
support for all scalar types, nested objects and arrays, multi-line strings (literal
| and folded > block styles), YAML anchors and aliases (& and *), and document
markers (--- and ...). Type preservation is correct: YAML booleans become JSON
booleans, nulls become null, numbers stay numbers — no silent coercion to strings.
Configurable JSON indentation (2 or 4 spaces) lets you match your project's code
style. Common uses include converting Kubernetes/Helm chart YAML to JSON for API
payloads, transforming CI/CD pipeline YAML for validation, converting GitHub
Actions workflow files for programmatic processing, or simply validating that
a YAML config parses correctly.
Syntax errors are reported clearly so you can locate and fix invalid YAML before
it causes a runtime failure in your application. All conversion runs in your
browser with no data sent to any server.
Related tools
JSON Formatter
Format, validate, and minify JSON instantly — with configurable indentation, error location, and tree view.
CSV to JSON Converter
Convert CSV to JSON or JSON to CSV instantly — paste data or upload a file with full delimiter and header control.
Diff Checker
Compare two texts, code files, or documents side by side — word-level diff highlighting, private and browser-based.
SQL Formatter
Format, beautify, and minify SQL queries with dialect support for MySQL, PostgreSQL, SQL Server, BigQuery, and more.