About curl2ts
Most cURL converters treat TypeScript as an afterthought: they emit untyped JavaScript and paste the request body as an opaque JSON string. curl2ts does one thing — turn a cURL command into idiomatic, strictly-typed TypeScript you can drop straight into a Next.js, Vite, React, Hono or Node project.
What it generates
- Named interfaces for the JSON request body, including nested objects and typed arrays.
- A
QueryParamsinterface for the URL's query string. - An async client function for native Fetch, Axios or Ky, returning
Promise<TResponse>.
Privacy first
Real cURL commands copied from DevTools are full of production tokens and session cookies. That's why everything runs locally in your browser — no request ever leaves the page. Read the privacy policy.
Open and simple
curl2ts is a small static site built with Astro and hosted on Cloudflare Pages. No accounts, no tracking of your input, no backend.