Curl ⇄ YAML Conversion

Convert curl commands
to YAML and back

Bidirectional conversion between raw curl commands and curl-runner YAML specs. Paste a curl command from docs or DevTools, get clean YAML. Convert YAML back to canonical curl commands.

Paste curl, get clean YAML

convert.yaml
# Convert a curl command to YAML
curl-runner convert curl "curl -X POST \
  https://api.example.com/users \
  -H 'Authorization: Bearer TOKEN' \
  -d '{\"name\":\"Alex\"}'"

# Output:
# request:
#   method: POST
#   url: https://api.example.com/users
#   auth:
#     type: bearer
#     token: TOKEN
#   body:
#     json:
#       name: Alex
Key Benefits

Why use Curl ⇄ YAML Conversion?

Zero Friction Onboarding

Paste any curl command and instantly get a structured, editable YAML spec. No manual translation needed.

Batch Script Migration

Convert entire shell scripts full of curl commands into a single YAML collection with one command.

Loss-Aware Translation

Unsupported curl flags are reported as warnings so you know exactly what was and wasn't converted.

Use Cases

Perfect for these scenarios

Importing curl commands from API documentation
Migrating shell scripts to structured YAML workflows
Sharing YAML specs as curl commands with teammates
Converting browser DevTools network requests to test specs

Ready to try Curl ⇄ YAML Conversion?

Get started with curl-runner and unlock powerful curl ⇄ yaml conversion capabilities for your API testing workflow.