Case Converter API

Convert case online: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case and more. Smart acronym and digit splitting. Free, instant, no sign-up.

The Case Converter is also available as a free REST API. Send a POST request with a JSON body to https://dot.tools/api/tools/case-converter — no authentication, no API key, CORS enabled. Successful calls return { "ok": true, "result": { … } }; failures return HTTP 400 or 422 with an error body.

Request body

FieldTypeRequiredDescription
textstringrequiredThe text to convert, in any mix of camelCase, PascalCase, snake_case, kebab-case or plain words.
target"camel" | "pascal" | "snake" | "screaming-snake" | "kebab" | "lower" | "upper" | "title"requiredTarget case: camel (camelCase), pascal (PascalCase), snake (snake_case), screaming-snake (SCREAMING_SNAKE_CASE), kebab (kebab-case), lower (lower case), upper (UPPER CASE) or title (Title Case).

Response

FieldTypeRequiredDescription
resultstringrequiredThe converted text. Empty when the input contains no letters or digits.

Example request

curl -X POST https://dot.tools/api/tools/case-converter \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "XMLHttpRequest version2Update",
  "target": "snake"
}'

Sample response

{
  "ok": true,
  "result": {
    "result": "xml_http_request_version_2_update"
  }
}

Use the free Case Converter in your browser, read the Case Converter guide, or import the full OpenAPI specification.