← Back to Home

Case Converter

/case/:type/:text
Convert text between different cases: upper, lower, title, camel, pascal, snake, kebab.
Try it now

Parameters

type path
Case type: upper, lower, title, camel, pascal, snake, kebab
text path
Text to convert

Examples

curl
curl https://tcpdata.com/case/upper/hello%20world
curl
curl https://tcpdata.com/case/lower/HELLO%20WORLD
curl
curl https://tcpdata.com/case/title/hello%20world
curl
curl https://tcpdata.com/case/camel/hello%20world
curl
curl https://tcpdata.com/case/pascal/hello%20world
curl
curl https://tcpdata.com/case/snake/Hello%20World
curl
curl https://tcpdata.com/case/kebab/Hello%20World

Notes

upper: Converts all letters to UPPERCASE

lower: Converts all letters to lowercase

title: Capitalizes The First Letter Of Each Word

camelCase: firstWordLowerRestCapitalized (used in JavaScript, Java variables)

PascalCase: FirstWordAndRestCapitalized (used in class names)

snake_case: words_separated_by_underscores (used in Python, Ruby)

kebab-case: words-separated-by-hyphens (used in URLs, CSS)