text

Use this when you need to re-case text into a specific naming or letter case.

Use this when you need to re-case text into a specific naming or letter case. Given text and a target case (upper, lower, title, sentence, camel, snake, kebab, or constant), returns the converted string. Smart word tokenization splits camelCase, snake_case, kebab-case, and whitespace, so a phrase in any style re-cases consistently; title case honors an editorial stop-word list and preserves ALL-CAPS acronyms. Empty text returns an empty result. Deterministic: same input, same output. Example: {text: "myVariableName", case: "constant"} -> result "MY_VARIABLE_NAME".

post/v1/convert_case

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/convert_case
  • Auth: none declared

Request body

textstring required

The input text to convert.

case'upper' | 'lower' | 'title' | 'sentence' | 'camel' | 'snake' | 'kebab' | 'constant' required

Target case: upper (UPPER CASE), lower (lower case), title (Title Case with stop-words), sentence (Sentence case), camel (camelCase), snake (snake_case), kebab (kebab-case), constant (CONSTANT_CASE).

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.