Case
The /case endpoint converts text between 9 case formats using universal tokenization (camelCase splitting, _, -, ., spaces).
gethttps://api.moxon.dev /v6/case
Try itget/v6/case
curl -X GET \ "https://api.moxon.dev/v6/case"Send the request to see the response here.
- —
textstringrequiredText to convert
tostringoptionalDefault:
camel.Target case format
- camel
- pascal
- snake
- kebab
- constant
- title
- sentence
- upper
- lower
| Target | Description | Example (hello_world) |
|---|---|---|
camel | camelCase | helloWorld |
pascal | PascalCase | HelloWorld |
snake | snake_case | hello_world |
kebab | kebab-case | hello-world |
constant | CONSTANT_CASE | HELLO_WORLD |
title | Title Case | Hello World |
sentence | Sentence case | Hello world |
upper | UPPERCASE | HELLO_WORLD |
lower | lowercase | hello_world |
textstringThe original input text
tostringThe target case format
resultstringThe converted text
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a text (?text={text})Thetextparameter is missing - 400
Text cannot exceed 1000 charactersThetextexceeds the maximum length - 400
Text must contain at least one alphanumeric characterThetextcontains only separators/punctuation (e.g.---), leaving nothing to convert - 400
Invalid target case. Valid values: camel, pascal, snake, kebab, constant, title, sentence, upper, lowerThetovalue is not valid
Last updated on September 12, 2026