SmartQueryTools

YAML ↔ JSON Converter

Convert between YAML and JSON text with a direction toggle. Paste either format and switch direction instantly. For file-based conversion use the YAML to JSON file tool. Runs in your browser.

Frequently Asked Questions

What is the difference between this and the YAML to JSON file converter?

This tool converts text you paste directly — no file required. The file converter tool accepts .yaml files and downloads a .json file. Use this tool for quick paste-and-convert tasks.

Does this support multi-document YAML (--- separators)?

Multi-document YAML is parsed as an array of documents. For standard single-document YAML the output is a plain JSON object or array.

Are YAML comments preserved when converting to JSON?

No. JSON does not support comments, so YAML comments are dropped in the output. The data values are fully preserved.

Is my data private?

Yes — completely. Everything runs locally in your browser. Nothing is sent to any server, and nothing is retained after you close the tab.

Related Tools