Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more
Read more: Convert Text Between camelCase, snake_case, and More
Different text cases serve different purposes in writing and programming. Here is a reference of all supported case types:
| Case | Example | When to Use |
|---|---|---|
| UPPERCASE | HELLO WORLD | Headings, acronyms, emphasis, constants |
| lowercase | hello world | URLs, email addresses, casual text |
| Title Case | Hello World | Book titles, article headings, proper nouns |
| Sentence case | Hello world | Body text, UI labels, natural prose |
| camelCase | helloWorld | JavaScript/Java variables and functions |
| PascalCase | HelloWorld | Class names, C# methods, Go types |
| snake_case | hello_world | Python variables, Ruby, database columns |
| kebab-case | hello-world | CSS classes, URL slugs, CLI flags |
| CONSTANT_CASE | HELLO_WORLD | Environment variables, constants in code |
| dot.case | hello.world | Java packages, configuration keys |
| aLtErNaTiNg | hElLo WoRlD | Sarcasm text, memes, stylistic emphasis |
| iNVERSE | hELLO wORLD | Swap existing case of each character |
Programming languages and ecosystems each have their own naming conventions:
getUserName, isActiveget_user_name, is_activeUserProfile, HttpClientMAX_RETRIES, API_BASE_URLmain-content, --output-dirQuick reference for common case conversions in popular languages:
str.toUpperCase(), str.toLowerCase(). No built-in Title Case; use str.replace(/\b\w/g, c => c.toUpperCase())str.upper(), str.lower(), str.title(), str.capitalize()str.ToUpper(), str.ToLower(), CultureInfo.CurrentCulture.TextInfo.ToTitleCase(str)strings.ToUpper(s), strings.ToLower(s), strings.Title(s) (deprecated; use cases.Title)For camelCase, snake_case, and other developer-oriented conversions, most languages require a library or a custom function that splits words on boundaries and re-joins them with the appropriate separator and capitalization.
What is Title Case?
Title Case capitalizes the first letter of each word, except for short articles, prepositions, and conjunctions like "a", "an", "the", "in", "on", "at", "to", "for", "of", "and", "but", and "or" -- unless they are the first or last word. It is the standard style for book titles, article headlines, and headings in most style guides.
What is the difference between camelCase and PascalCase?
Both join words without separators. camelCase starts with a lowercase letter (myFunction), while PascalCase starts with an uppercase letter (MyFunction). Use camelCase for variables and functions in JavaScript/Java, and PascalCase for class names and React components.
How do I convert snake_case to camelCase?
Paste your snake_case text into the input area and click the camelCase button. The tool splits your text on underscores, lowercases the first word, capitalizes the first letter of each remaining word, and joins them. For example, my_variable_name becomes myVariableName.
Is my text sent to a server?
No. All conversion happens locally in your browser using JavaScript. Your text never leaves your device. There is no server-side processing, no upload, and no storage.