Changing text case, including the naming conventions developers need
Fixes caps-lock accidents, and converts between the naming conventions code actually uses.
The everyday use is rescuing text typed with caps lock on, or received from a system that shouts everything in capitals. Retyping a paragraph because of that is a waste of a few minutes that a case converter removes entirely.
The version developers care about is different: converting between naming conventions. camelCase for JavaScript variables, snake_case for Python and database columns, kebab-case for URLs and CSS classes, PascalCase for component names. Converting a list of field names between these by hand is exactly the sort of tedium that produces typos. Both live in ToolHub.
Change Text Case: the facts that matter
| Prose cases | UPPER, lower, Title Case, Sentence case |
| Code cases | camelCase, snake_case, kebab-case, PascalCase |
| Proper nouns | Need a manual check after conversion |
| Batch | Works on a whole list at once |
| Privacy | Runs in the browser |
How to do it, step by step
- 1Open the case converter in ToolHub and paste your text.
- 2Pick the target case. Sentence case is usually what you want for rescued prose.
- 3For code identifiers, pick camelCase, snake_case, kebab-case or PascalCase as appropriate.
- 4Check proper nouns afterwards. Automatic sentence case will lowercase names it does not recognise.
- 5Copy the result out.
Three things worth knowing
- Sentence case is the right target for rescuing all-caps prose, not Title Case.
- For code, pick one convention per language and stick to it. Mixed conventions in one codebase cause real bugs.
- Naming conventions are one of the first things taught properly on Code With Squad, because they cause more confusion for beginners than any syntax.
Common problems, solved
Where to run it
This tool is part of the ToolHub tool library, a library of over 1,000 browser-based tools covering PDF, image, video, audio, text and developer work. Everything runs in the browser and none of it needs an account.
ToolHub is built by codaiman.com, an AI-first software company in Ahmedabad. Related to this page: CWS (Code With Squad) coding education platform with courses, an in-browser code playground and one-to-one mentorship.
Change Text Case, in the browser: no install, no sign-up, no upload queue. Part of the ToolHub library from CodeAiMan.
Open ToolHubRelated tools
Word & Character Counter
Useful mainly because so many things have hard character limits. Here are the ones worth memorising.
Read guideRemove Duplicate Lines
The traps are invisible: trailing spaces and case differences mean identical-looking lines are not duplicates.
Read guideJSON Formatter
Four mistakes cause almost every JSON parse error. Trailing commas top the list.
Read guide