Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more. Free and instant.
Paste your text and click any case button to convert instantly. Supports 10 different case styles.
0 characters
Why Text Case Matters More Than You Think
Text case isn't just about aesthetics — it's about conventions, readability, and consistency. In programming, the wrong case breaks your code: a variable named "userName" is completely different from "username" in case-sensitive languages. In writing, case signals intent: ALL CAPS reads as shouting, Title Case looks professional, and sentence case feels natural.
Naming conventions exist for a reason. JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case for functions and SCREAMING_SNAKE_CASE for constants. CSS uses kebab-case for properties. Mixing conventions makes code harder to read and maintain.
This converter handles all the common cases instantly. Paste your text, pick the target case, and copy the result. It handles edge cases like acronyms, numbers, and punctuation that trip up manual conversion.
Case Types Explained
| Case | Example | Used In |
|---|---|---|
| camelCase | myVariableName | JavaScript/TypeScript variables, Java methods |
| PascalCase | MyVariableName | React components, C# classes, TypeScript types |
| snake_case | my_variable_name | Python, Ruby, Rust, database columns |
| SCREAMING_SNAKE | MY_VARIABLE_NAME | Constants in most languages, environment variables |
| kebab-case | my-variable-name | CSS properties, HTML attributes, URL slugs |
| Title Case | My Variable Name | Headings, titles, UI labels |
| Sentence case | My variable name | Paragraphs, descriptions, normal text |
| UPPER CASE | MY VARIABLE NAME | Emphasis, headers, abbreviations |
| lower case | my variable name | Normalisation, search, comparison |
| dot.case | my.variable.name | Java packages, config keys, file extensions |
What this means for you: When converting between cases, the tool splits your text into words first, then reassembles with the target convention. This means "myVariableName" correctly converts to "my_variable_name" — it recognises word boundaries in any source format.
Naming Convention Best Practices
Be consistent within a project
Pick one convention per context and stick to it. If your API returns snake_case, use snake_case for those fields throughout. Mixing conventions in the same file is a code smell.
Follow language conventions
Every language has established norms. Python's PEP 8 says snake_case. JavaScript's community prefers camelCase. Fighting these conventions makes your code harder for other developers to read.
Handle acronyms carefully
Is it "XMLParser" or "XmlParser"? "getHTTPResponse" or "getHttpResponse"? Most style guides prefer treating acronyms as words: XmlParser, getHttpResponse. It's more readable and converts between cases more predictably.
Use case to signal intent
SCREAMING_SNAKE signals "don't change this" (constants). PascalCase signals "this is a class/component." camelCase signals "this is a variable/function." The case itself communicates meaning to other developers.
Case Conversion in Code
Most languages have built-in methods for basic case changes, but converting between naming conventions (camelCase → snake_case) usually requires a library or custom function:
| Language | Basic Case | Naming Convention |
|---|---|---|
| JavaScript | str.toLowerCase() | lodash: _.camelCase(str) |
| Python | str.upper() / str.title() | inflection.underscore(str) |
| Ruby | str.downcase / str.upcase | str.underscore / str.camelize |
| PHP | strtolower($str) | Str::camel($str) (Laravel) |
| SQL | UPPER(col) / LOWER(col) | No built-in support |
What this means for you: For one-off conversions, this tool is faster than writing code. For bulk transformations in a codebase, use your editor's find-and-replace with regex, or a dedicated rename refactoring tool.
Related Tools
How to use this tool
Paste or type your text into the input box
Click the desired case style button
Copy the converted text to your clipboard
Common uses
- Converting headings to Title Case for blog posts
- Generating UPPER CASE text for design mockups
- Creating camelCase or snake_case variable names
- Cleaning up ALL CAPS text from legacy data
Share this tool