# cURL to code converter

Turn a curl command into the same request in JavaScript, Python, C# or Go.

## How it works

The command is read like a shell would read it: quotes, escapes and line continuations. Method, headers, body and basic auth are carried over.

## Questions

### Which curl options are supported?

-X, -H, -d and its variants, --json, -u and --url. Other options are ignored.

### Should I keep tokens in code?

No. Move them to environment variables or a secret store before committing.

## Related tools

- [Regex tester](https://powertraces.com/tools/regex-tester)
- [Diff checker](https://powertraces.com/tools/diff-checker)
- [YAML ⇄ JSON converter](https://powertraces.com/tools/yaml-json)
- [SQL formatter](https://powertraces.com/tools/sql-formatter)

[All tools](https://powertraces.com/tools)
