Case Converter
Transform text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and 10+ other formats. Copy with one click!
UPPERCASE
HELLO WORLD
lowercase
hello world
Title Case
Hello World
Sentence case
Hello world
camelCase
helloWorld
PascalCase
HelloWorld
snake_case
hello_world
kebab-case
hello-world
CONSTANT_CASE
HELLO_WORLD
dot.case
hello.world
path/case
hello/world
aLtErNaTiNg
hElLo WoRlD
iNVERSE cASE
hELLO wORLD
You May Also Like
What Are Text Cases?
Text cases are different ways to capitalize letters in words. Just like how we write names with capital letters ("John") but regular words in lowercase ("hello"), programmers and writers use many different styles for specific purposes.
Think of it like dress codes - you wouldn't wear a suit to the beach, and you wouldn't use SCREAMING_CONSTANTS in a friendly email!
Common Case Styles Explained
For Writing:
- UPPERCASE - All capitals. Used for headings, acronyms (NASA, FBI), or EMPHASIS
- lowercase - All small letters. Casual, modern aesthetic
- Title Case - First Letter Of Each Word Capitalized. Used for titles, headlines
- Sentence case - Only first letter capitalized. Standard for most text
For Programming:
- camelCase - First word lowercase, rest capitalized. Used in JavaScript, Java variables
- PascalCase - Every word capitalized, no spaces. Used for class names
- snake_case - Words separated by underscores. Used in Python, databases
- kebab-case - Words separated by hyphens. Used in URLs, CSS classes
- CONSTANT_CASE - All caps with underscores. Used for constants
When to Use Each Style
| Case Style | Best For | Example |
|---|---|---|
| camelCase | JavaScript variables | userName, isLoggedIn |
| PascalCase | Class names, React components | UserProfile, ShoppingCart |
| snake_case | Python, databases, file names | user_name, created_at |
| kebab-case | URLs, CSS, HTML attributes | user-profile, nav-menu |
| CONSTANT_CASE | Constants, env variables | MAX_SIZE, API_KEY |
Why Naming Conventions Matter
In programming, using the wrong case isn't just a style issue - it can break your code!
// JavaScript is case-sensitive
let userName = "Alice";
console.log(username); // Error! "username" is not defined
Most programming languages and frameworks have strict conventions:
- Python:
snake_casefor variables,PascalCasefor classes - JavaScript:
camelCasefor variables,PascalCasefor components - CSS:
kebab-casefor class names - SQL:
snake_casefor columns,UPPERCASEfor keywords
Pro Tips
- Be consistent - Pick one style per context and stick with it
- Follow team/language conventions - Don't be the rebel using camelCase in Python
- Use descriptive names -
userEmailAddressbeatsueaany day - Avoid mixing styles -
user_Nameis a crime against readability