Free Text Case Converter Online
Convert text between 12 cases — UPPERCASE, lowercase, smart Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, aLtErNaTiNg, and Inverse Case. Detects word boundaries inside camelCase input.
0 chars
When to use each case
| Case type | Common use |
|---|---|
| camelCase | JavaScript variables, JSON keys |
| PascalCase | Class names, React components |
| snake_case | Python variables, database columns |
| kebab-case | CSS classes, URL slugs |
| CONSTANT_CASE | Environment variables, constants |
| Title Case | Article headlines, book titles |
| Sentence case | Paragraphs, email subjects |
Frequently Asked Questions
- What is camelCase?
- camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter, with no spaces. Example: myVariableName. It is widely used in JavaScript, Java, and JSON.
- What is the difference between camelCase and PascalCase?
- Both remove spaces and capitalize each word. The difference is the first word: camelCase starts lowercase (myVariable), while PascalCase capitalizes the first word too (MyVariable). PascalCase is used for class names and React components.
- What is snake_case used for?
- snake_case uses underscores between words with all lowercase letters. It is the standard naming convention in Python, Ruby, and most database column names.
- What is kebab-case?
- kebab-case uses hyphens between lowercase words, resembling items on a kebab skewer. It is used for CSS class names, HTML attributes, and URL slugs.
- What is title case?
- Title case capitalizes the first letter of each significant word. Articles, prepositions, and conjunctions under 4 characters (a, an, the, and, but, or) are not capitalized unless they are the first word.