Text Case
Convert text between camelCase, snake_case, kebab-case and more
About Text Case
Rewrites a word, phrase or identifier in nine naming styles at once, from camelCase and snake_case to Title Case and UPPERCASE, with a copy button beside each result. Output updates as you type and is rebuilt from the detected words, so mixed input like my-variable_name or MyVariableName converts cleanly. Handy for renaming variables, constants, CSS classes and file names.
Category: Text.
Frequently asked questions
What cases are supported?
▾
Nine: camelCase, PascalCase, snake_case, SCREAMING_SNAKE (also called CONSTANT_CASE), kebab-case, dot.case, Title Case, lowercase and UPPERCASE. Other styles such as path/case or Sentence case are not generated.
How does it split the input into words?
▾
It breaks words at spaces, underscores, hyphens and dots, at lowercase-to-uppercase changes (myVariable) and at acronym boundaries (XMLHttp). Digits and other characters such as commas or slashes are not separators and stay inside the words.
Are acronyms and short words handled specially?
▾
No. Every word is lowercased before the output is rebuilt, so XMLHttpRequest becomes xmlHttpRequest in camelCase and XmlHttpRequest in PascalCase. Title Case also capitalizes every word, including short ones like 'of' and 'the'.
Where are camelCase, PascalCase and kebab-case used?
▾
camelCase is typical for variables and functions in JavaScript, TypeScript and Java (getUserById), PascalCase for classes, types and React components (UserProfile), and kebab-case for CSS classes, URL slugs, CLI flags and file names (my-component.tsx). snake_case is common in Python and SQL, and SCREAMING_SNAKE for constants.