cURL → Swift / Kotlin / Dart

API docs hand you a cURL command; your codebase speaks URLSession, OkHttp or package:http. Paste the command, take the native code. Converts locally in your browser — your endpoints and tokens are never sent anywhere.

 

Understands -X, -H, -d/--data*/--json, -u, -F (multipart), -G, -A, -b, -e, quoting and line continuations. Flags like -s/-v/-L/-k/--compressed are ignored on purpose.

Why this exists

Every API doc on earth gives you a cURL one-liner, and almost no mobile codebase can paste it. Rewriting headers, auth and bodies by hand is exactly the kind of work that produces the "why is this 401ing?" hour. This converter does the mechanical part: it parses the real cURL grammar (quotes, escapes, repeated -d, --json sugar, basic auth) and emits idiomatic requests — modern async/await Swift, OkHttp with proper RequestBody media types, and Dart that matches how package:http actually wants to be called.

It's the same idea that lives inside ReqPad: paste a cURL command into the app and it becomes a fully editable request — then export it back out as code in 20+ languages, not just these three. The difference is the app also sends the request: real responses, timing, auth flows and history, from your phone.

Working with tokens while you're here? The JWT decoder is equally client-side. And if you landed on this page from a Postman export, you might enjoy our honest answer to "is there a Postman mobile app?"

Stop transcribing requests by hand.

ReqPad imports cURL, Postman collections and OpenAPI specs — then generates code in 20+ languages. On your iPhone.