JSON ↔ YAML Converter
Convert
Paste JSON and get clean YAML, or paste YAML and get JSON with consistent indentation. Built on js-yaml, so the parser handles anchors, multi-line scalars, and the usual YAML quirks correctly. Useful for moving between Kubernetes manifests, GitHub Actions workflows, Astro / Vite configs, and JSON-based tools.
name: AZ Tools version: 1.0.0 tags: - fast - private - client-side deploy: host: aztools.app port: 443
How to use
- Pick the direction — JSON → YAML or YAML → JSON.
- Paste your input. The result updates as you type.
- Change the indent (2 or 4) for the output.
- Swap uses the output as the next input.
Frequently asked questions
- What YAML version is supported?
- YAML 1.2 via js-yaml. Anchors, flow style, multi-line scalars, booleans, and null are all handled.
- Does it preserve key order?
- Yes. JSON's natural object order is kept when emitting YAML, and YAML mapping order is kept when emitting JSON.
- What if the input is invalid?
- You'll see the parser error (line and column) in red. Fix the input and the output updates immediately.
- Does it handle comments?
- YAML comments are dropped because JSON has no equivalent. Going JSON → YAML produces a comment-free document.
Related tools
Number to Words
Spell out any number in English, Korean, or Japanese — for cheques, contracts, or just clarity.
CSS Unit Converter
Convert between px, rem, em, pt, vw, vh, and % using your own base font size and viewport.
Data Size Converter
Convert between bytes, KB, MB, GB, TB — in decimal (1000) or binary (1024).
Roman Numeral Converter
Convert between Arabic numbers and Roman numerals from 1 to 3999.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.