Text Case Converter — UPPER, lower, Title, camelCase & More
Paste any text and switch between eight common case styles in one click. Whether you need camelCase for code, Title Case for headings, or UPPER CASE for emphasis, the conversion happens instantly — no server involved.
Case conventions by programming language
| Language | Variables, functions | Types, classes | Constants |
|---|---|---|---|
| Python (PEP 8) | snake_case | CapWords | UPPER_SNAKE |
| JavaScript, TypeScript, Java, PHP (PSR-12) | camelCase | PascalCase | UPPER_SNAKE |
| C# | camelCase locals, PascalCase methods | PascalCase | PascalCase |
| Go | mixedCaps, or MixedCaps when exported | MixedCaps | MixedCaps |
| Rust (RFC 430), Ruby | snake_case | UpperCamelCase | UPPER_SNAKE |
| Swift | lowerCamelCase | UpperCamelCase | lowerCamelCase |
In Go a capital first letter exports a name from its package, so renaming userID to UserID changes the program.
Where a case style is required, not chosen
| Context | Style | Reason |
|---|---|---|
| URL slugs | kebab-case | Google splits words at hyphens but joins them at underscores |
| Environment variables | UPPER_SNAKE | Portable POSIX names allow letters, digits and underscores only, so API-KEY is illegal |
| File names | lowercase kebab-case | Linux treats Header.css and header.css as two files; macOS and Windows do not |
| HTML data attributes | kebab-case | The browser maps data-user-id to dataset.userId |
The converter turns parseHTTPResponse into parseHttpResponse. C# guidelines agree: acronyms of three or more letters keep only their first capital, as in HtmlButton. PEP 8 and Effective Go keep acronyms whole (HTTPServerError, ServeHTTP); restore them by hand. Small caps is a font feature, not a case (font-variant-caps in CSS); copied out, the text is plain lowercase.
Frequently asked questions
- Does the converter handle camelCase or PascalCase input?
- Yes. It splits on separators and on capital letters, so pasting 'UserAccountSettings' and clicking snake_case gives 'user_account_settings'. Runs of capitals are kept together as one word: 'parseHTTPResponse' becomes 'parse_http_response', not 'parse_h_t_t_p_response'.
- Why does Title Case capitalise 'of' and 'the'?
- The converter capitalises the first letter of every word and lowercases the rest, with no style-guide exceptions. 'the lord of the rings' becomes 'The Lord Of The Rings' and 'NASA' becomes 'Nasa', so fix small words and acronyms by hand.