Skip to content
FileTinker

JSON ⇄ YAML Converter

Convert between JSON and YAML both ways — paste one and get the other instantly. Handy for config files, Kubernetes manifests and API payloads. Everything runs in your browser, so your data is never uploaded.

The result will appear here.

More presets

Jump to another preset — each opens its own page ready to go:

How to convert JSON and YAML

  1. Choose the direction — JSON → YAML or YAML → JSON.
  2. Paste your document into the input box.
  3. Copy the converted result from the output box.

About JSON and YAML

JSON and YAML describe the same kinds of structured data — objects, arrays and scalars — in different styles. JSON uses braces and quotes and is the lingua franca of web APIs; YAML uses indentation, is less noisy, and is the usual choice for human-edited configuration like Kubernetes manifests, GitHub Actions and Docker Compose.

Converting between them lets you read an API response as YAML, or turn a YAML config into the JSON a program expects, without rewriting it by hand. This converter parses and re-serializes entirely in your browser, so your configs and payloads never leave your device.

Frequently asked questions

How do I convert JSON to YAML?

Pick the JSON → YAML direction, paste your JSON, and the YAML appears instantly. Switch the toggle to convert YAML → JSON instead.

Is the conversion lossless?

JSON maps cleanly to YAML and back for objects, arrays, strings, numbers, booleans and null. YAML-only features such as comments and anchors are not represented in JSON.

Why convert between them?

YAML is easier to read and write for config (Kubernetes, CI, Docker Compose); JSON is what most APIs and programs exchange. Converting lets you work in whichever fits the task.

Is my data uploaded?

No. The conversion happens entirely in your browser; nothing is sent to a server.