Text Case Converter — UPPER, lower, Title, camelCase, snake_case
Instantly switch text between different capitalization styles. Perfect for cleaning up headlines, formatting variable names (camelCase, snake_case), or shouting on the internet (UPPERCASE).
Programming cases are not stylistic preferences, they are conventions each language enforces socially or literally. JavaScript and Java use camelCase for variables and PascalCase for classes; Python and Rust use snake_case; CSS classes, URL slugs, and command-line flags use kebab-case; constants are SCREAMING_SNAKE_CASE nearly everywhere. The converter handles the awkward part — splitting an existing identifier back into its words before rebuilding it — so pasting getUserAPIKey and asking for snake_case gives get_user_api_key rather than a mangled string.
How to use Text Case Converter
- Enter your text — Paste or type the text you want to format into the input area. The tool strips out weird spacing and readies it for conversion.
- Choose a standard case — Click "UPPERCASE" to shout, "lowercase" to normalize text, "Title Case" for blog headlines, or "Sentence case" for standard paragraphs.
- Choose a developer case — Need to format variables? Click "camelCase" (myVarName), "snake_case" (my_var_name), "kebab-case" (my-var-name), or "PascalCase" (MyVarName).
- Copy and use — The conversion happens instantly in the browser. Click the Copy button to grab the formatted text and paste it into your code editor or CMS.
Features
- Many formats — Upper, Lower, Title, Sentence, camel, snake, kebab.
- Instant — Zero latency.
- Privacy-First — Your text is processed entirely inside your browser. No content is uploaded to any server.
- Understands existing identifiers — Splits camelCase, PascalCase, snake_case, and kebab-case input back into words before rebuilding, so converting between programming cases works in either direction.
Frequently Asked Questions
What is the difference between camelCase, snake_case, and kebab-case?
These are the three primary naming conventions in programming. **camelCase** removes all spaces and capitalizes the first letter of each word except the very first one (e.g., `myVariableName`) — it is the standard for JavaScript and Java. **snake_case** replaces spaces with underscores and keeps everything lowercase (e.g., `my_variable_name`) — it is the standard for Python and database columns. **kebab-case** replaces spaces with hyphens (e.g., `my-variable-name`) — it is the standard for CSS classes and URL slugs.
When should I use Title Case vs Sentence case?
**Title Case** Capitalizes The First Letter Of Almost Every Major Word. You should use this specifically for formal blog post titles, book titles, and major H1 headlines. **Sentence case** capitalizes only the very first word and proper nouns (just like a normal sentence). It is significantly easier for humans to read and is recommended by UX experts for mobile apps, body paragraphs, and UI buttons. For example, Apple's internal design system strictly uses sentence case.
What is PascalCase and how is it used?
PascalCase is identical to camelCase, but the very first letter is also capitalized (e.g., `MyVariableName`). It is generally used in object-oriented programming to denote Classes or structural components. For example, in React or Angular frameworks, component files are strictly written in PascalCase (like `UserProfile.tsx` instead of `userProfile.tsx`).
Which case should I use where?
camelCase for variables and functions in JavaScript, Java, and C#. PascalCase for classes, components, and types. snake_case for Python, Ruby, and Rust, and for database column names. kebab-case for CSS classes, URL slugs, and CLI flags. SCREAMING_SNAKE_CASE for constants and environment variables. Following the language's convention matters more than which one you personally prefer.
What is the difference between Title Case and Sentence case?
Title Case capitalises the principal words and leaves short articles, conjunctions, and prepositions lowercase — 'The Rise of the Machines'. Sentence case capitalises only the first word and any proper nouns — 'The rise of the machines'. Most modern style guides and product interfaces prefer sentence case for headings, because it reads faster and is easier to apply consistently.