What is a case converter?
A case converter changes the capitalisation of text without retyping it. It rescues paragraphs typed with Caps Lock on, tidies headlines into consistent title case, and turns phrases into the naming styles programmers use for variables, functions, files and database columns.
- Title Case capitalises major words but keeps short words such as “of”, “the” and “and” lowercase unless they start or end the title.
- Sentence case capitalises only the first letter of each sentence.
- camelCase and PascalCase join words with capitals, common in JavaScript, Java and C#.
- snake_case and CONSTANT_CASE join words with underscores, common in Python, SQL and environment variables.
- kebab-case joins words with hyphens, used in URLs and CSS class names.
How to use it
- Type or paste your text into the top box.
- Choose a case style. The result updates immediately.
- Click Copy result, or Use as input to chain another conversion.
How words are detected
For programming cases, the converter splits text at spaces, punctuation, underscores and hyphens, and also at existing case changes. That means it can convert between styles directly: getHTTPResponse becomes get_http_response in snake_case, and user-profile-page becomes UserProfilePage in PascalCase.
Title case follows the common convention used by many style guides for short articles, conjunctions and prepositions. Publications differ on details, for example whether to capitalise longer prepositions such as “about”, so review important headlines.
Examples
| Style | “the quick brown fox” |
|---|---|
| Title Case | The Quick Brown Fox |
| Sentence case | The quick brown fox |
| camelCase | theQuickBrownFox |
| snake_case | the_quick_brown_fox |
| kebab-case | the-quick-brown-fox |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX |
More worked examples
Programming: “user profile page” becomes userProfilePage in camelCase and USER_PROFILE_PAGE as a constant.
Common mistakes to avoid
- Expecting sentence case to keep names capitalized. Fix proper nouns by hand afterwards.
- Using title case for URLs. URLs work best in lowercase; use the text to slug converter.
- Assuming one title case standard. AP, Chicago and APA styles differ on short words, so check your style guide.
Sources and methodology
The calculations on this page follow these published standards and references. The code is covered by automated tests against known values.