Convert JSON to YAML
Convert JSON to YAML locally in your browser.
Tool workspace
Convert JSON to YAML in your browser. Objects become mappings; arrays become sequences. Strings are quoted. Nothing you paste is uploaded.
How it works
Conversion runs entirely in your browser. A JSON object becomes a YAML mapping (safe identifier keys stay unquoted; otherwise keys are double-quoted). A JSON array becomes a YAML sequence. Nested objects and arrays recurse with indentation. Strings are double-quoted with escapes for backslash, quotes, and whitespace control characters. Numbers and booleans emit as plain YAML scalars; null emits null. Empty objects and arrays emit {} and [].
Empty input clears the result—no error. Invalid JSON shows a clear parse error. Nothing you paste is uploaded.
Examples
- {"name":"Alice","age":30} → name: "Alice" / age: 30
- [{"name":"Alice"},{"name":"Bob"}] → sequence of mappings
- {"tags":["a","b"]} → mapping with a nested sequence
- "hello" → "hello"
- null → null
Privacy
FAQ
Is my JSON uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
How are strings and keys quoted?
String values are always double-quoted. Keys that are plain identifiers (letters, digits, underscore, hyphen) stay unquoted; other keys are double-quoted.
Does this use a YAML library?
No. Emission is a small hand-rolled block-style writer for practical JSON→YAML conversion—not a full YAML 1.2 suite.
Do I need an account?
No. All published tools work for guests without login.