DM Tool Studio logoDM Tool Studio

JSON ↔ YAML Converter

Convert JSON to YAML or YAML to JSON — errors point to the exact line. Everything runs in your browser; your text is never uploaded.

Drop a .json, .yaml or .yml file here, or click to choose one

Input

Result

How to use

1. Pick a direction (JSON → YAML or YAML → JSON) and paste your text on the left, or drop a .json / .yaml / .yml file above — the direction follows the file type. 2. Click Convert. 3. If the input is invalid, the notice shows the line and column of the first error and jumps the cursor to it. 4. Copy the result or download it.

FAQ

Is my text uploaded? No. Parsing and conversion run in your browser with js-yaml; nothing passes through our server.
Are YAML comments kept? No. YAML comments are dropped when converting to JSON — comments are not data. Converting JSON to YAML never creates comments either.
Is “yes” a boolean? Here, no. This tool follows YAML 1.2: only true / false are booleans. yes / no / on / off stay strings. If your old config relies on YAML 1.1 booleans, quote them or use true / false.
What happens to dates? A YAML timestamp such as 2026-11-08 is parsed as a date and becomes an ISO string (for example 2026-11-08T00:00:00.000Z) in JSON. To keep it as plain text, quote it: "2026-11-08".
What about multi-document YAML? Documents separated by --- are all read and converted to a JSON array, one item per document. Anchors (&) and merge keys (<<) are supported; a circular anchor reference cannot become JSON and is reported as an error.
Can YAML keys be numbers? YAML allows them, JSON does not: numeric or boolean keys become strings in the JSON output (1: a becomes "1": "a").