cURL ↔ Code Converter

Convert HTTP requests across cURL, code, HAR, and structured formats with local secret protection.

Detected: curl · 100%
What is the cURL to Code Converter?

This local-first request transpiler turns HTTP and HTTPS cURL commands into project-ready code for Fetch, Axios, Python, Go, Java, C#, PHP, Rust, Ruby, Swift, and other supported targets. Unlike a template gallery, it first normalizes the request and reports behavior that a target changes or cannot represent.

How to convert a request
  1. 1.Paste cURL, raw HTTP, Request IR JSON, or import a HAR file.
  2. 2.Confirm the detected input type and choose Convert request.
  3. 3.Review or edit the normalized method, URL, headers, body, and transport settings.
  4. 4.Select a language and library, then review semantic fidelity and diagnostics.
  5. 5.Copy or download the generated output. Detected credentials are replaced with environment variables by default.
Semantic fidelity and Secret Shield

The fidelity report distinguishes preserved behavior from runtime-dependent, changed, and unsupported behavior. Ordered duplicate query parameters are retained. Authorization values, API keys, cookies, signed URL values, and common token shapes are detected locally and can be replaced consistently before code is copied or stored.

Scope and privacy

Phase 1 supports cURL, HAR single-request selection, raw HTTP, and versioned Request IR input. Arbitrary source code is not executed and reverse code parsing remains disabled until AST-based parsers can preserve unresolved expressions safely. Conversion runs entirely in the browser; request URLs, headers, bodies, cookies, and generated code are not uploaded.