Text Case Converter
Nine case styles, including the programming conventions: camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.
The two families of case conversion
The first four styles are typographic: they change letter casing but leave your words, spaces and punctuation where they are. Sentence case lowercases everything and then capitalises the first letter after each sentence-ending punctuation mark, which is the usual fix for text that arrived in ALL CAPS. Title Case capitalises every word โ quick and predictable, though note it does not apply the editorial convention of leaving short words like "of" and "the" lowercase, because that rule varies by style guide and by language.
The last five are identifier styles used in code. These do more than change
case: they split your text into words first and then rejoin it with the right
separator. That means all five conversions work from any starting point โ
first_name, firstName, first-name and
First Name all normalise to the same word list before being rebuilt.
Which identifier style goes where
| Style | Example | Commonly used for |
|---|---|---|
| camelCase | lastLoginAt | JavaScript and Java variables, JSON keys |
| PascalCase | LastLoginAt | Class and component names, C# members |
| snake_case | last_login_at | Python, Ruby, SQL columns |
| kebab-case | last-login-at | URLs, CSS classes, CLI flags, file names |
| CONSTANT_CASE | LAST_LOGIN_AT | Environment variables and constants |
Acronyms are handled properly
Naive camelCase converters mangle acronyms: HTTPResponse becomes
hTTPResponse, and parseXMLFile loses its word boundaries
entirely. This converter detects the transition from a run of capitals into a
capitalised word, so HTTPResponse splits into
HTTP + Response and converts to
httpResponse or http_response as expected.
Line-by-line conversion
Identifier conversions apply to each line independently, so you can paste a whole column of database field names and convert them all in one pass rather than one at a time. The typographic styles work across the whole text at once, which is what you want for prose.
Frequently asked questions
Can I convert a whole list of names at once?
Yes. The identifier styles โ camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE โ convert each line separately, so you can paste an entire column of field names and convert them in a single pass.
How are acronyms like HTTP or XML handled?
They are detected as complete words. HTTPResponse becomes httpResponse in camelCase and http_response in snake_case, rather than being split letter by letter.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every word. Sentence case lowercases everything and then capitalises only the first letter of each sentence โ the usual way to rescue text typed in ALL CAPS.
Does it work with accented and non-English characters?
Typographic conversions do, since they use the browser's Unicode-aware case mapping. Identifier styles strip characters outside AโZ and 0โ9, because most programming languages and URL schemes expect ASCII identifiers.