Two-way JSON and YAML conversion that runs entirely in your browser. Paste or load a .json / .yaml file, flip the direction, and copy or download the result.
All conversions happen locally in your browser. Your files never leave your device.
The converter is two-way: JSON to YAML parses with the built-in JSON.parse and serializes with js-yaml, and YAML to JSON does the reverse. Conversion runs automatically as you type (debounced by a quarter of a second), and a syntax error in either direction shows the parser message on a red line and clears the output.
hello stays unquoted.JSON.parse stores them in the object.--- are not supported — this tool parses a single document, so split a stream and convert each part separately. Duplicate keys in JSON collapse to the last value, as the format requires.2024-01-01 to native date objects. The parser used here follows the modern core schema instead: we verified that date-like strings load as plain strings and are dumped with quotes ('2024-01-01'), so they survive a round trip as text and never silently turn into timestamps.No. JSON has no comment syntax at all, so JSON to YAML cannot add any, and YAML to JSON drops every comment while parsing. If you keep commented config, copy the comments over by hand after converting.
JSON objects become YAML mappings (key: value) and JSON arrays become block sequences (- item), with all nesting preserved in both directions. An array of objects turns into the familiar list of dash-prefixed records used by Kubernetes and CI files.
No. Older YAML 1.1 parsers resolved bare values like 2024-01-01 to date objects, but the parser here keeps date-like and version-like values as strings and quotes them on output, so a JSON string stays a YAML string and survives a round trip.
Everything runs in your browser tab, so file size is limited by your available memory. A few megabytes of JSON or YAML convert instantly; very large documents (tens of megabytes) can briefly freeze the tab while they are parsed and serialized.
No. Parsing, serializing, copying and downloading all happen locally in your browser. Your documents are never sent anywhere, so confidential configs stay on your device.
If you just finished with JSON to YAML Converter, the natural next steps are JSON Diff, CSV ↔ JSON Converter, CSV Viewer, or browse every tool in Daily Tools.