YAML to JSON Converter

Paste YAML on the left, get valid JSON on the right. Runs entirely in your browser — ideal for converting Kubernetes manifests, CI configs, and other YAML files into JSON for APIs and tooling.

100% Client-Side Instant No uploadYour data never leaves your browser

How to use this tool

Paste your YAML into the input box on the left. Multi-document YAML (separated by ---) should be converted one document at a time.

Valid JSON appears on the right as you type. Invalid YAML surfaces a clear error message.

Use the Copy button to copy the resulting JSON for use in API calls, configuration management tools, or as input to other JSON tools.

This tool uses js-yaml, the same library that powers YAML tooling across the JavaScript ecosystem. It supports YAML 1.2 with anchors, aliases, multiline strings, and all common types.

Because conversion is local, you can safely process YAML containing secrets like database passwords or API tokens.

Frequently asked questions

How are YAML types mapped to JSON?

YAML scalars are auto-detected: unquoted true/false/null become JSON booleans/null, integer-looking values become numbers, and everything else becomes a string. Quoted strings stay strings. You can force a string by quoting it in the YAML.

Does this handle multi-document YAML?

Convert each document separately. Split on the --- marker and paste them one at a time for the most predictable results.

Are YAML anchors and aliases supported?

Yes. Anchors (&) and aliases (*) are resolved into the resulting JSON, just like in any standard YAML parser.

Is my YAML sent to a server?

No. Parsing and conversion happen entirely in your browser. There is no upload step and no server-side storage.

Related tools