Dev Tools

YAML to JSON

Browser-only

Convert YAML to JSON, or JSON to YAML. Preserves types and multi-document files. All in your browser.

100% FreeNo SignupNo WatermarkRuns in Your BrowserFiles Never Uploaded

Used when you click Download .json. The .json extension is added if you leave it off.

Paste some YAML to get started.

About YAML to JSON

Workforge YAML to JSON converts in both directions - YAML to JSON and JSON to YAML - right in your browser. The parser implements the full YAML 1.2 spec including anchors, aliases, multi-line strings (literal and folded), and multi-document files split by the --- separator. Types are preserved end to end: strings stay strings, numbers stay numbers, booleans stay booleans, nulls stay nulls, and dates parse as ISO 8601 timestamps.

JSON output is pretty-printed with either 2 or 4 space indent (your choice) and matches the shape of the source YAML exactly. The reverse direction, JSON to YAML, uses block style by default because that is what humans read; a flow-style option produces the compact inline form when you need it. Multi-doc YAML files export as a JSON array (or, in reverse, an array of JSON documents converts to a multi-doc YAML file).

Validation runs live as you type. Errors highlight the exact line and column with a message explaining what went wrong. A sort-keys option produces alphabetically ordered output for reproducible diffs in code review. Line-endings normalize to LF by default with a CRLF option for Windows-only workflows.

Online YAML converters that upload your data are a real risk because YAML is where config lives - and config often contains secrets, endpoints, and infrastructure detail. Workforge YAML to JSON runs entirely in your browser, so a Kubernetes manifest, Docker Compose file, or CI config never leaves your device.

Frequently asked questions

Is my YAML or JSON uploaded to a server?

No. Parsing and conversion run in your browser. Your data never leaves your device.

Which YAML features are supported?

YAML 1.2 in full: anchors, aliases, multi-line literal and folded strings, and multi-document files split by ---.

Are multi-document YAML files handled?

Yes. Multi-doc YAML converts to a JSON array of documents. In reverse, a JSON array of documents converts back into a multi-doc YAML file.

Are comments preserved?

YAML comments are dropped when converting to JSON (JSON has no comment syntax). Converting back to YAML produces comment-free output.

Is there a sort-keys option?

Yes. Sort keys alphabetically for reproducible diffs in code review. Off by default so key order matches the source.

Related tools

Explore all Dev Tools

YAML to JSON is part of the Workforge Dev Tools suite. Every tool runs in your browser. No upload, no signup, no tracking.

See all Dev Tools