jfmt.dev

JSON to YAML

Paste JSON on the left and copy YAML on the right. Built for Kubernetes snippets, CI config, and docs that prefer YAML.

input.json

JSON formatter

Input0 B
Output · preview.json
{ }

Run a tool to see a polished result here

Live syncReady · processed locally in your browser
Local-only processing: your JSON never leaves this browser tab.

What conversion preserves

Objects, arrays, strings, numbers, booleans, and null map to YAML. Invalid JSON is rejected before conversion. YAML-to-JSON is available from the same editor sidebar. Everything stays local.

Sample input on this page

The editor is prefilled with a small example for JSON to YAML. JSON to YAML keeps objects, arrays, strings, numbers, booleans and null. Invalid JSON is rejected; switch the sidebar for YAML to JSON. Replace it with your own file; the sample and your payload stay in this tab.

{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "metadata": { "name": "jfmt" },
  "data": { "enabled": "true" }
}

How to use this tool

  1. Paste JSON into the JSON to YAML editor. The file stays in this browser tab and is not uploaded to jfmt.dev.
  2. Click Run. JSON to YAML keeps objects, arrays, strings, numbers, booleans and null. Invalid JSON is rejected; switch the sidebar for YAML to JSON.
  3. Copy the output, or continue with a related tool below. Related tools on this site include beautify, validate, minify, JSON to CSV, JSON to YAML and JSON to XML — all local.
  4. JFmt runs in a Web Worker in this tab. Do not paste production secrets if you share your screen.

When this page is the right choice

This dedicated JSON to YAML URL matches that search intent; the homepage stays the general formatter. JSON to YAML keeps objects, arrays, strings, numbers, booleans and null. Invalid JSON is rejected; switch the sidebar for YAML to JSON. Related tools on this site include beautify, validate, minify, JSON to CSV, JSON to YAML and JSON to XML — all local. JFmt runs in a Web Worker in this tab. Do not paste production secrets if you share your screen. Read errors in the output pane instead of sending production payloads to another service.

FAQ

Will comments in JSON survive?

Standard JSON has no comments. Repair comments first if you pasted JS-style input, then convert.

Is YAML-to-JSON on this page?

This URL starts in JSON→YAML. Switch the sidebar to convert the other way without leaving the editor.

Is my file uploaded?

No.

Does this tool upload my file?

No. Parsing and conversion run in a Web Worker in this tab. jfmt.dev does not receive the payload.

Why is there a separate URL from the homepage?

So people searching for this operation land on a page that already selects it. JSON to YAML keeps objects, arrays, strings, numbers, booleans and null. Invalid JSON is rejected; switch the sidebar for YAML to JSON.