Text and dataRuns in your browser

YAML ↔ JSON Converter

Convert mappings, sequences, and scalars between JSON and supported YAML without uploading data.

  • Two-way conversion
  • Limited YAML support
  • Up to 5,000 nodes
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input data

Result

—

The YAML parser supports a safe configuration subset: mappings, sequences, quoted/plain scalars, and JSON-style inline collections. Anchors, aliases, custom tags, merge keys, and block scalars are rejected.

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Choose YAML → JSON or JSON → YAML.

  2. 2

    Paste the document and run the conversion.

  3. 3

    Copy the result and verify it in the target application.

02

What the tool can do

  • Indented mappings and sequences using two-space indentation.
  • Plain, single-quoted, and double-quoted scalars, numbers, booleans, and null.
  • Inline arrays and objects when written with JSON syntax.
  • JSON → YAML for JSON-compatible values with safe quoting of ambiguous strings.
03

Common use cases

  • Preparing a simple CI/CD or application configuration.
  • Finding duplicate keys and indentation errors.
  • Converting test data between JSON and YAML.
04

How it works inside

YAML indentation must use multiples of two spaces; tabs are rejected.

Input is limited to 500,000 characters, 5,000 nodes, and depth 32.

05

Questions and answers

Will YAML comments survive conversion to JSON?

JSON does not support comments, so they will not appear in the result. Keep the source YAML separately if the notes matter. Conversion preserves data rather than document formatting.

Why are some YAML files rejected?

The tool supports a limited YAML subset. Reusable block references and special tags are not processed. Read the error and use a dedicated YAML parser if your file relies on those features.