YAML ⇄ JSON Converter
Convert YAML and JSON with multi-document YAML, JSON-compatible or core schemas, error locations, indentation, key sorting, and download.
How to Use
- 1
Choose conversion direction.
- 2
Paste YAML or JSON in the input area.
- 3
Read the converted output instantly on the right.
Features
- ✓Convert multiple YAML documents into a JSON array
- ✓Switch between JSON-compatible and core YAML schemas
- ✓Show syntax-error line, column, and nearby snippet
- ✓Two/four-space indent, recursive key sorting, copy, and download
FAQ
Q. Does it support YAML comments?
A. It parses standard YAML, but comments are not preserved in JSON output.
Q. Can I customize output indentation?
A. Yes. Choose two or four spaces. JSON-to-YAML conversion can also sort keys recursively.
Technical Notes
YAML parsing uses js-yaml loadAll, which recognizes document separators. One document becomes a single JSON value; multiple documents become a JSON array.
The JSON-compatible schema keeps date-like values as text. The core YAML schema may resolve timestamps to Date values that serialize as ISO strings in JSON.
Security & Privacy
All conversion runs locally in your browser with no external upload.
Useful for handling private config snippets safely.