belun.app

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_caseCapWordsUPPER_SNAKE
JavaScript, TypeScript, Java, PHP (PSR-12)camelCasePascalCaseUPPER_SNAKE
C#camelCase locals, PascalCase methodsPascalCasePascalCase
GomixedCaps, or MixedCaps when exportedMixedCapsMixedCaps
Rust (RFC 430), Rubysnake_caseUpperCamelCaseUPPER_SNAKE
SwiftlowerCamelCaseUpperCamelCaselowerCamelCase

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 slugskebab-caseGoogle splits words at hyphens but joins them at underscores
Environment variablesUPPER_SNAKEPortable POSIX names allow letters, digits and underscores only, so API-KEY is illegal
File nameslowercase kebab-caseLinux treats Header.css and header.css as two files; macOS and Windows do not
HTML data attributeskebab-caseThe 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.

Related tools