Skip to content
ConvertPassConvertPass home

Developer

YAML to JSON

Parse YAML into JSON without custom tags or server-side processing.

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

0 B
Empty

Empty. Paste text, drop a file, or load the example.

What this tool does

The loader uses a JSON-compatible YAML schema. That is stricter than some CLI tools and is intentional: ConvertPass will not execute YAML tags or expand arbitrary types.

How to use it

  1. Paste YAML. Multi-document files become a JSON array.
  2. Copy or download the JSON.
  3. If parsing fails, the original YAML is not modified.

Supported input

  • YAML text, UTF-8, up to 2 MB

Output

  • Pretty-printed JSON

Privacy

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: UTF-8. Limit: 2 MB (2.00 MB).

Limitations

  • Custom tags, Python objects, and other unsafe YAML types are not supported.
  • Duplicate keys follow the loader behaviour; do not rely on duplicates.

Example

Input
service: convertpass
local: true
ports:
  - 3000
Output
{
  "service": "convertpass",
  "local": true,
  "ports": [
    3000
  ]
}

Troubleshooting

A country code or the word yes changed
Quote the value in YAML. This loader avoids several YAML 1.1 implicit booleans, but quoting is still the reliable fix.

FAQ

Are multiple YAML documents supported?

Yes. Documents separated by --- are returned as a JSON array in file order. A single document is returned as a JSON value, not wrapped in an array.

Why did a date stay a string?

The JSON-compatible schema does not promote timestamps to Date objects. That keeps serialisation stable.

Is YAML loaded unsafely?

No. ConvertPass does not use an unsafe schema. There is still no reason to treat untrusted YAML as executable content, and the site never renders it as HTML.

Can I convert Kubernetes manifests?

Often yes if they are ordinary mappings and lists. Custom resource tags or Helm templates are not YAML values and will fail.

Related tools

  • JSON to YAML

    Turn JSON into readable YAML without leaving your machine.

  • JSON validator

    Check whether text is valid JSON, with a useful error location.

  • TOML to JSON

    Turn TOML config into JSON without uploading your secrets file.

Related guides

Related formats

Last reviewed 16 August 2026. Report a problem. Reports do not include your input.