Text Case Converter
Convert text to upper, lower, and other cases
Enter text to convert case
Conversion result
What is Text Case Converter?
Text Case Converter lets you transform a string into formats such as camelCase, snake_case, and kebab-case. It is useful when you want to align variable names, compare naming styles used by APIs or databases, or decide which case fits your project.
It shows 12 formats at once, so it also works well when you want to compare several naming conventions before choosing one.
How to Use
- Enter the text you want to convert.
- Review the converted results shown below.
- Copy the version you need.
It is especially useful with phrases such as labels, variable name ideas, or short strings where you want to compare how each case looks.
Input Example
If you enter a string such as user profile image, you can compare outputs like these:
userProfileImageuser_profile_imageuser-profile-imageUserProfileImage
The right choice depends on where you plan to use it.
Use Cases
- Checking camelCase for JavaScript or TypeScript variables
- Reviewing snake_case for Python code or database columns
- Creating kebab-case strings for CSS classes or URL slugs
- Formatting labels or headings with Capital Case or Sentence case
- Comparing naming candidates for API docs, UI copy, or file names
Supported Formats
Common Naming Conventions for Development
CamelCase
Joins words together and capitalizes each new word while keeping the first character lowercase. Common for variables and function names in JavaScript and Java.
Example: thisIsSampleText
PascalCase
Joins words together and capitalizes every word, including the first one. Often used for class names and component names.
Example: ThisIsSampleText
SnakeCase
Converts everything to lowercase and separates words with underscores (_). Common in Python, Ruby, and database column naming.
Example: this_is_sample_text
KebabCase
Converts everything to lowercase and separates words with hyphens (-). Often used for CSS classes and URLs.
Example: this-is-sample-text
DotCase
Converts everything to lowercase and separates words with periods (.). You may see this in config keys or some identifiers.
Example: this.is.sample.text
PathCase
Converts everything to lowercase and separates words with slashes (/). Useful when checking strings that resemble paths or hierarchical keys.
Example: this/is/sample/text
PascalSnakeCase
Capitalizes each word and separates them with underscores (_). Useful when checking special naming rules or constant-like identifiers.
Example: This_Is_Sample_Text
TrainCase
Capitalizes each word and separates them with hyphens (-). Useful when checking formats such as HTTP header-style names.
Example: This-Is-Sample-Text
Formats for Labels and Display Text
LowerCase
Converts all characters to lowercase.
Example: this is sample text
UpperCase
Converts all characters to uppercase.
Example: THIS IS SAMPLE TEXT
CapitalCase
Capitalizes the first letter of each word and separates words with spaces.
Example: This Is Sample Text
SentenceCase
Capitalizes only the first character of the sentence. Same format as regular sentences.
Example: This is sample text
Things to Keep in Mind
- Word boundaries may not always be split the way you expect, depending on the input string
- Strings that contain numbers or symbols may look different across cases
- This tool is best for comparing naming candidates, not for automatically renaming an entire codebase
The best case style depends on the conventions of your language, framework, or project. In practice, it works best as a quick comparison tool before you settle on a final name.