Text Case
Converter
Instantly convert any text between 12 different cases — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and alternating case. Paste your text, click a case, copy the result.
userID not userId if your team prefers it). snake_case is standard in Python and SQL. kebab-case is used in CSS class names and URLs. CONSTANT_CASE is used for environment variables and constants across most languages.
| Format | Example Output | Common Use | Languages / Context |
|---|---|---|---|
| UPPERCASE | HELLO WORLD | Emphasis, headings, constants | All |
| lowercase | hello world | URLs, tags, filenames | All |
| Title Case | Hello World | Headlines, book titles, names | English writing |
| Sentence case | Hello world | Normal prose, UI copy | English writing |
| camelCase | helloWorld | Variables, function names | JavaScript, Java, Swift |
| PascalCase | HelloWorld | Class names, components | C#, Java, React, TypeScript |
| snake_case | hello_world | Variables, functions, DB columns | Python, Ruby, SQL, Rust |
| kebab-case | hello-world | CSS classes, HTML attributes, URLs | CSS, HTML, REST APIs |
| CONSTANT_CASE | HELLO_WORLD | Constants, env variables | All languages |
| dot.case | hello.world | Config keys, namespace paths | Java properties, i18n |
| path/case | hello/world | File paths, URL segments | File systems, REST APIs |
| aLtErNaTiNg | hElLo wOrLd | Mocking tone, sarcasm (internet) | Social media |
When to use Title Case vs Sentence case
Title Case capitalizes every major word — used for headlines, book titles, article headings, and proper nouns. Sentence case only capitalizes the first word and proper nouns — used for UI button labels, menu items, and most modern app copy (it feels more conversational). AP Style, Chicago Style, and APA all have different rules for which words to capitalize in Title Case; this tool uses a general rule capitalizing all words except short prepositions, articles, and conjunctions under 5 letters.
camelCase vs PascalCase in programming
Both join words without spaces, but they differ in the first letter. camelCase starts lowercase (userProfile, fetchData) and is the standard in JavaScript, Java, and Swift for variable and function names. PascalCase starts uppercase (UserProfile, FetchData) and is used for class names, React components, and TypeScript interfaces. Most style guides are consistent within a language — mixing them is a code smell that makes PRs harder to review.
Why snake_case is dominant in Python and SQL
Python's PEP 8 style guide explicitly recommends snake_case for all function and variable names (my_variable, calculate_total). SQL column names traditionally use snake_case because SQL is case-insensitive and underscores are easier to read than camelCase in query results. PostgreSQL, MySQL, and most ORMs follow this convention. The underscore was chosen over hyphens because hyphens are subtraction operators in code — a bareword like user-id is parsed as subtraction.
kebab-case in CSS and URLs
CSS class names use kebab-case (.nav-bar, .hero-title) because CSS identifiers can't contain underscores in older parsers, and uppercase letters are meaningless (CSS selectors are case-insensitive for class names in HTML). URLs use kebab-case for readability and SEO — Google treats hyphens as word separators but treats underscores as word joiners, meaning "hello_world" is indexed as one word while "hello-world" is indexed as two. Always prefer kebab-case in URLs and slugs.
Convert text between camelCase, snake_case, UPPER_SNAKE, kebab-case, title case, and more.