JSON to YAML converter

Source · JSON
Target · YAML

Drop JSON files here

or choose files from your device

Choose files or drop them here (up to 16 MiB each).

Advanced options
  • In your browser
  • No upload
  • Private by design

How to convert a document online

  1. Open a converter and choose files of its source format.
  2. Review the format limits and options, then start conversion.
  3. Download the results and check their content and layout.
Browse all document conversions →

What happens when you convert JSON to YAML?

Conversion uses Universal Text Conversion Engine (UTCE), with dedicated source readers, internal data models, transformations and target writers.

Reading the source

Ordered objects, arrays and supported scalar values enter a typed data model. Keys and array order are retained. Numbers must be finite and safely representable; duplicate keys and invalid Unicode are rejected.

Structure and transformation

Supported values and ordered structure transfer between the admitted data syntaxes. YAML aliases expand; comments, whitespace and spelling do not transfer. XML output uses the explicit typed mapping rather than a custom schema.

Writing the target

Supported JSON-compatible values become YAML 1.2 mappings, sequences and scalars. Output does not recreate source comments, custom tags or alias identity.

JSON

Source

JSON

.json

Storage: Text fileDocument model: Objects, arrays and scalar values

Ordered objects, arrays and supported scalar values enter a typed data model. Keys and array order are retained. Numbers must be finite and safely representable; duplicate keys and invalid Unicode are rejected.

Explore JSON format →
YAML

Target

YAML

.yaml / .yml

Storage: Text fileDocument model: Mappings, sequences, anchors and tags

Supported JSON-compatible values become YAML 1.2 mappings, sequences and scalars. Output does not recreate source comments, custom tags or alias identity.

Explore YAML format →

Is JSON → YAML right for you?

Good choice when

  • You want supported JSON-compatible data in a readable YAML 1.2 representation.
  • You can review the source interpretation and the target limitations before using the result.

Probably not when

  • Original whitespace and source spelling are not preserved. Unsafe integers, negative zero and values whose numeric meaning changes during serialization are rejected rather than silently rounded.
  • You require exact source layout, every metadata field or unsupported interactive features.

JSON to YAML conversion details

Reading the source
Ordered objects, arrays and supported scalar values enter a typed data model. Keys and array order are retained. Numbers must be finite and safely representable; duplicate keys and invalid Unicode are rejected.
Writing the target
Supported JSON-compatible values become YAML 1.2 mappings, sequences and scalars. Output does not recreate source comments, custom tags or alias identity.
Structure and transformation
Supported values and ordered structure transfer between the admitted data syntaxes. YAML aliases expand; comments, whitespace and spelling do not transfer. XML output uses the explicit typed mapping rather than a custom schema.
Technical evidence
Tested within a bounded profile. Compatibility is limited to the supported profile; review each result.
MIME
application/json → application/yaml
Adapter scope and specifications
IETF — RFC 8259Ecma — ECMA-404YAML — specification 1.2.2

Common questions

What can be read from JSON?

Ordered objects, arrays and supported scalar values enter a typed data model. Keys and array order are retained. Numbers must be finite and safely representable; duplicate keys and invalid Unicode are rejected. Original whitespace and source spelling are not preserved. Unsafe integers, negative zero and values whose numeric meaning changes during serialization are rejected rather than silently rounded.

What will the YAML output contain?

Supported JSON-compatible values become YAML 1.2 mappings, sequences and scalars. Output does not recreate source comments, custom tags or alias identity. Original whitespace and source spelling are not preserved. Unsafe integers, negative zero and values whose numeric meaning changes during serialization are rejected rather than silently rounded.

How does JSON structure change in YAML?

Supported values and ordered structure transfer between the admitted data syntaxes. YAML aliases expand; comments, whitespace and spelling do not transfer. XML output uses the explicit typed mapping rather than a custom schema. Value preservation is bounded by the admitted scalar and Unicode profile. It does not promise textual round-trip identity or arbitrary YAML features.

Will JSON look identical in YAML?

Original whitespace and source spelling are not preserved. Unsafe integers, negative zero and values whose numeric meaning changes during serialization are rejected rather than silently rounded. Value preservation is bounded by the admitted scalar and Unicode profile. It does not promise textual round-trip identity or arbitrary YAML features. Original whitespace and source spelling are not preserved. Unsafe integers, negative zero and values whose numeric meaning changes during serialization are rejected rather than silently rounded.

Can I convert JSON to YAML here now?

Convert locally in your browser. Select documents of the same source format, review the options and download the results. Tested within a bounded profile. Compatibility is limited to the supported profile; review each result.