HCODX/YAML to JSON
100% browser-based · UTF-8 safe · No upload

YAML to JSON

Convert YAML documents into JSON. Anchors (&ref), references (*ref), multiline strings, and all standard YAML 1.2 types are supported via js-yaml — entirely in your browser.

YAML input
JSON output
Conversion options
Reverse (JSON → YAML)
Input size
0 B
Output size
0 B
Output lines
0
Status
Ready
Example

YAML in, JSON out

A small sample to show the shape of the conversion. Pretty-printed output, types preserved where possible.

YAML
name: hcodx
tags:
  - dev
  - tools
JSON
{
  "name": "hcodx",
  "tags": ["dev", "tools"]
}
Use cases

What you'll use this for

YAML to JSON shows up in every backend and ETL stack — feeding APIs, migrating configs, debugging payloads.

API & data imports

Prepare payloads for REST APIs and ingestion endpoints.

Data migration

Move configuration and tabular data between systems and formats.

Debugging

Inspect production data in a sensible, structured form.

ETL pipelines

Stage transformations between formats in your data flow.

Step by step

How to convert YAML to JSON

1

Paste your YAML

Drop your source into the left editor. The sample loads on first visit — replace it with your data.

2

Click Convert

Or leave Auto-convert on for live updates as you type. Conversion runs locally.

3

Review the output

The right pane shows pretty-printed JSON with status, byte counts, and line count.

4

Copy or download

Use the action bar to copy to clipboard or save as a file. Or jump to the reverse converter for round-trip checks.

FAQ

Frequently asked questions

YAML 1.2 via js-yaml 4.x — the de facto JS parser used by Webpack, GitHub Actions tooling, etc.

Yes — &name anchors and *name aliases are dereferenced inline before output.

Block scalars (|, >) and their chomping/folding modifiers are supported.

Yes for the safe-load subset (!!str, !!int, !!seq, etc.). Custom tags throw.

Yes. js-yaml runs in the browser; nothing is uploaded.

About

About YAML to JSON

YAML is the human-friendly config format. Kubernetes manifests, GitHub Actions workflows, Ansible playbooks, OpenAPI specs — all YAML. JSON is what tools speak. This converter bridges them using js-yaml's safe loader.

How parsing works

  • jsyaml.load parses YAML 1.2 (safe schema by default).
  • Anchors and references resolve to real values.
  • Numbers, booleans, nulls, dates, lists, and maps map naturally to JSON.
  • JSON output is pretty-printed.

Use cases

  • Inspect Kubernetes manifests as JSON for kubectl-free tooling.
  • Convert GitHub Actions workflows for static analysis.
  • Translate OpenAPI YAML specs for JSON-only validators.
Related

Related tools