Skip to main content

Runs locally in your browser

YAML ↔ JSON Converter

Convert common data-oriented YAML to formatted JSON or turn JSON into readable YAML. Your document stays in the browser.

JSON output
✓ Converted locally

Convert configuration and API data

YAML is convenient for human-edited configuration, while JSON is widely used by APIs and programming tools. Convert between them to inspect configuration, prepare request payloads, or move structured data between systems.

Advanced YAML is intentionally rejected

This tool focuses on portable data structures. It does not interpret anchors, aliases, custom tags, directives, or multiple YAML documents. Use a schema-aware YAML library in your application when those features are required.

Frequently asked questions

Which YAML features are supported?

The converter supports common data-oriented YAML: nested mappings, sequences, flow collections, quoted and plain scalars, null, booleans, numbers, comments, and literal or folded block text.

Why are YAML anchors and custom tags rejected?

Anchors, aliases, custom tags, directives, and multiple documents add schema and execution complexity. Rejecting them keeps this local converter predictable and avoids silently changing advanced YAML semantics.

Does JSON preserve YAML comments?

No. JSON has no comment syntax, so comments cannot survive a YAML-to-JSON-to-YAML round trip.

Is the document uploaded?

No. YAML and JSON parsing run locally in your browser.

Related tools