AZ Tools

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.

Output
name: AZ Tools
version: 1.0.0
tags:
  - fast
  - private
  - client-side
deploy:
  host: aztools.app
  port: 443

How to use

  1. Pick the direction — JSON → YAML or YAML → JSON.
  2. Paste your input. The result updates as you type.
  3. Change the indent (2 or 4) for the output.
  4. 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