camelCase, snake_case, kebab-case, PascalCase and more
curl -sX POST 'https://api.whittly.dev/v1/case/convert' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"input":"myVariableName","formats":["snake","kebab","pascal"]}'
const res = await fetch('https://api.whittly.dev/v1/case/convert', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: "myVariableName", formats: ["snake","kebab","pascal"] }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/case/convert',
{ input: "myVariableName", formats: ["snake","kebab","pascal"] },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
Different programming ecosystems use different naming conventions: JavaScript prefers camelCase, Python uses snake_case, CSS uses kebab-case, and constants use SCREAMING_SNAKE_CASE. This tool converts any text between all common conventions instantly.