# Convert YAML to JSON with the structure kept

> Give a YAML file URL or paste the YAML, and get the same data as JSON, ready for applications and data pipelines that read JSON.

Who it is for: Developers and data analysts who need YAML configuration or data in JSON-based tools.

## What you get

- **Structure kept**: Nested maps and lists come out as the same structure in JSON.
- **Two inputs**: A URL to a YAML file, or YAML text pasted directly.
- **Ready to use**: The JSON is saved as an output file you can download or read through the API.

## How it works

1. Put a YAML file URL in `yamlUrl` or paste the YAML into `yamlText`.
2. Start the run and download the output JSON from the key-value store.

## Use cases

- Converting configuration files for a JSON-only tool.
- Turning YAML data into JSON inside an automated workflow.

## Pricing


Free Actor: you pay only for your Apify platform usage.

## Questions

### What does it cost?

It is a free Actor: you pay only for your Apify platform usage.

### Where is the JSON saved?

As the output file in the run's key-value store.

### Can I call it from my own code?

Yes, through the Apify API, like every Actor.

Convert YAML to JSON: https://apify.com/eloquent_mountain/yaml-to-json-converter?utm_source=actors.taskmastergpt.nl&utm_medium=llms&utm_campaign=yaml-to-json-converter
