Why is my JSON invalid, and are trailing commas allowed?
JSON requires double-quoted keys and strings and does not allow trailing commas, comments, undefined, or functions. The editor reports the detected line, column, and nearby token so you can correct the source without losing it.
Are my JSON or YAML document contents uploaded?
No. Parsing and output generation run in this browser with js-yaml 4.1.0, and document contents are not submitted for conversion. The page and its same-origin dependency still have to be loaded normally.
Is JSON key order preserved?
By default, object keys are emitted in JavaScript enumeration order, which normally follows the parsed JSON order. Turning on Sort object keys deliberately changes that order, and integer-like keys may follow JavaScript ordering rules.
Is the output YAML 1.2 compatible?
The converter uses js-yaml 4.1.0 and emits YAML supported by that library. JSON scalar values map cleanly to common YAML 1.2 types, but this tool is not a full YAML specification conformance checker.
How are strings quoted in YAML?
js-yaml automatically quotes strings when plain text would be ambiguous. You can prefer single or double quotes and force quotes for non-key strings; multiline text may still use YAML block scalar syntax when appropriate.
Are YAML comments, anchors, aliases, tags, or multiple documents preserved?
No. JSON has no equivalent for those YAML features. YAML to JSON parses one YAML document into data, so comments and presentation details are discarded, aliases are resolved, and multiple documents are rejected.
What does Remove null values do?
It recursively removes null-valued object properties and null array items before output. This changes the data rather than only formatting it, so the option is off by default.
Are large integers preserved exactly?
Not always. Parsing uses JavaScript numbers, so integers outside the safe range of minus 9,007,199,254,740,991 to plus 9,007,199,254,740,991 can lose precision. Quote identifiers and large integer-like values when exact digits matter.
What file sizes are supported?
The visible file picker and drag-and-drop importer accept one .json, .yaml, or .yml file up to 2 MB. Automatic conversion pauses above 500 KB; use the Convert button for those larger documents.
Does the converter work offline?
Conversion makes no document-content request once the page and its same-origin js-yaml file are available. It can keep working in an already loaded tab, but a fresh offline visit depends on whether your browser has cached the page assets.