Case Converter
Type a text and see it converted into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case at the same time.
Type a text and see it converted into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case at the same time.
In programming, case (or casing) is the convention for how the words in an identifier — a variable, function, class, file or constant name — are joined and capitalized. Every language and every context has its own conventions, and converting between them by hand is tedious and error-prone. This tool converts to all formats at once, live, as you type.
userName). Common in JavaScript, Java and C# variables and functions.UserName). Used for class and component names.user_name). Common in Python, Ruby and database column names.user-name). Used in URLs, file names and CSS classes.USER_NAME). Standard for constants and environment variables.User Name). Useful for titles and readable labels.
The tool first splits the text into words, recognizing both common
separators (space, _, -, ., among others)
and the upper/lowercase boundaries of a text that is already in camelCase or
PascalCase. It then rebuilds those words in the format of each output. So you can
paste myTestVariable and get my_test_variable right away.
Because in most cases you don't know beforehand which format you'll need — or you need more than one. Seeing all of them at once, updated live, is faster than picking one format at a time. Each row has its own copy button.
Non-alphanumeric characters are treated as word separators. Accented letters are preserved within words, with only the case (upper/lower) adjusted according to the target format.
Yes. Digits remain part of the words. For example, user 2 test
becomes user2Test in camelCase, keeping the number in place.