JSON → YAML

FreePrivatejs-yaml

Turn JSON into YAML for configs, Kubernetes manifests, and CI files.

JSON input
YAML output
Ctrl+Enter Convert

JSON to YAML Converter Online

JSON is perfect for APIs and browsers; YAML is often easier for humans editing Kubernetes manifests, GitHub Actions, Ansible playbooks, and Docker Compose files. Paste valid JSON and get readable YAML instantly. no CLI install, no upload.

Where Is This Useful?

Kubernetes & Helm
Translate JSON samples from API docs into YAML snippets for values files and overlays. When Helm or your API emits JSON sidecars, compare revisions with JSON Diff.
CI / GitHub Actions
Move JSON workflow definitions or env blobs into YAML pipelines. If CI also emits JSON logs, repair them with JSON Repair before committing.
Round-trip
Need JSON again? Use the companion YAML → JSON page on the same site.

How to Use

  1. Paste JSON in the input panel (or load sample)
  2. Click Convert or press Ctrl+Enter
  3. Copy YAML into your repo or download via your editor

Example

Input JSON
{
  "service": "api",
  "replicas": 3,
  "ports": [80, 443]
}
YAML output
service: api
replicas: 3
ports:
  - 80
  - 443

Features

  • Strict JSON in → readable YAML out
  • Uses js-yaml with sensible line wrapping
  • Copy-friendly output panel for long configs
  • Local history for recent inputs
  • 100% private (browser-only)

Frequently Asked Questions

Is conversion lossless?

For typical data, yes: round-trip preserves values. YAML anchors, custom tags, and multi-doc streams are not preserved when going through JSON.

Which YAML library is used?

The tool uses js-yaml in the browser. suitable for common config-style YAML.

Is data uploaded?

No. Conversion runs entirely on your device.

Related Tools