HTTP Request Parser

HTTP Request Parser

Paste a raw HTTP request to parse method, path, HTTP version, query parameters, headers, and body; convert between cURL commands and JavaScript fetch() code in either direction; or convert a Postman/Insomnia collection to cURL commands or an OpenAPI skeleton.

Paste a raw HTTP request on the left to parse it

Parse raw HTTP request text, convert between cURL and Fetch API syntax, convert Postman collections to cURL/OpenAPI (and back), or build a GraphQL request and generate cURL/Fetch/Axios/Python/HTTPie/PowerShell/Go code for it.

HTTP Request Parser

Paste a raw HTTP request to parse method, path, HTTP version, query parameters, headers, and body; convert between cURL commands and JavaScript fetch() code in either direction; or convert a Postman/Insomnia collection to cURL commands or an OpenAPI skeleton.

Common uses

  • Parse a raw HTTP request copied from DevTools
  • Convert a cURL command to fetch() or paste fetch() to get cURL
  • Convert a Postman collection export to cURL commands
  • Generate an OpenAPI skeleton from a Postman collection

Also searched as

  • parse raw http request online
  • convert curl to fetch javascript
  • convert fetch to curl
  • postman collection to curl converter
  • postman collection to openapi
  • insomnia collection to curl
  • chrome copy as curl to code
  • extract headers and body from http request
  • curl command parser online
  • graphql curl converter

Frequently asked questions

How do I convert a cURL command to fetch()?

Paste the cURL command into the cURL and Fetch tab to get JavaScript fetch() code. It works in the other direction too.

Can I convert a Postman collection?

Yes, the Postman tab converts a Postman or Insomnia collection to cURL commands or an OpenAPI skeleton.

What does the raw request parser extract?

Method, path, HTTP version, query parameters, headers and body.

Does it handle GraphQL requests?

There is a dedicated GraphQL tab for converting GraphQL requests.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.