Tool workspace
Case Converter
Input
Change the capitalization and format of your text with this free online Case Converter. Convert text to uppercase, lowercase, title case, sentence case, and programming-friendly naming styles such as camelCase, PascalCase, snake_case, and kebab-case.
Input
Output
Loading tool
Text Tools
Case Converter
Change the capitalization and format of your text with this free online Case Converter. Convert text to uppercase, lowercase, title case, sentence case, and programming-friendly naming styles such as camelCase, PascalCase, snake_case, and kebab-case.
Enter or paste your text, choose a conversion style, and review the result as you type or after selecting Convert. You can copy the converted text or download it as a TXT file.
Quick guide
How to use
Enter your text: Type or paste text into the input area.
Choose a conversion style: Select one of the available formats, such as uppercase, sentence case, camelCase, or snake_case.
Review the result: Check the converted text in the output area. Use the live preview or select Convert, depending on the available mode.
Copy your result: Use the copy option to place the converted text on your clipboard.
Download the text: Download the result as a TXT file if you want to save it.
You can change the input or select another format to create a different version.
Details
About this tool
Change the capitalization and format of your text with this free online Case Converter. Convert text to uppercase, lowercase, title case, sentence case, and programming-friendly naming styles such as camelCase, PascalCase, snake_case, and kebab-case.
Enter or paste your text, choose a conversion style, and review the result as you type or after selecting Convert. You can copy the converted text or download it as a TXT file.
Available Case Conversion Styles
The Case Converter supports 12 formats for everyday writing, text editing, and naming identifiers in code.
Text and prose formats
Programming and naming conventions
These formats are commonly used for variable names, function names, constants, and other identifiers.
Title Case vs. Sentence Case
Title case and sentence case both use uppercase letters, but they follow different patterns.
Title case capitalizes the first letter of each detected word. It is commonly used for headings, titles, and labels.
Example: a guide to working with text becomes A Guide To Working With Text.
Sentence case capitalizes the beginning of a sentence while keeping the remaining words in lowercase, apart from letters that are already uppercase according to the conversion rules.
Example: a guide to working with text. another example. becomes A guide to working with text. Another example.
Title case is useful for headings, while sentence case is generally more suitable for paragraphs and ordinary writing.
Understanding Programming Naming Conventions
Different programming languages and projects use different naming styles. The right format depends on the conventions used in your codebase.
camelCase: Often used for JavaScript variables and functions, such as customerName.
PascalCase: Common for class names and components, such as CustomerProfile.
snake_case: Used in Python variables and functions, such as customer_name.
kebab-case: Common in CSS class names and URL slugs, such as customer-profile.
CONSTANT_CASE: Often used for constants, such as MAX_RETRY_COUNT.
dot.case: Useful for dot-separated labels or keys, such as customer.profile.name.
These are common conventions, not strict rules for every programming language.
How Punctuation and Words Are Handled
The converter handles prose formats and naming conventions differently.
For uppercase, lowercase, title case, sentence case, alternating case, and inverse case, punctuation and spacing are preserved as part of the text.
For programming and naming formats, the converter detects word tokens and joins them using the selected convention. Punctuation and separators may therefore be removed or replaced.
For example, converting Customer profile - account settings to snake_case produces:
customer_profile_account_settings
Word detection can vary with punctuation, numbers, Unicode characters, and language-specific spelling. Review the result before using it as a variable, function, class, or other identifier.
Help
Frequently asked questions
What is a case converter?
A case converter is a tool that changes how letters are capitalized or how words are joined. It can format ordinary text or transform phrases into programming naming conventions.
What is the difference between uppercase and lowercase?
Uppercase changes letters to capital letters, such as hello to HELLO. Lowercase changes letters to small letters, such as HELLO to hello.
What is the difference between camelCase and PascalCase?
Both combine words without spaces or separators. camelCase starts with a lowercase first word, such as customerName. PascalCase starts every word with an uppercase letter, such as CustomerName.
What is the difference between snake_case and kebab-case?
snake_case separates words with underscores (customer_name), while kebab-case uses hyphens (customer-name).
Does the converter preserve punctuation?
Prose conversions preserve punctuation and spacing. Naming conversions extract word tokens and join them using the selected separator or capitalization style, so punctuation may be removed or replaced.
Can I use this tool for programming variables and class names?
Yes. You can convert text into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. Review the output to make sure it follows your project's naming rules.
Can I convert text containing Unicode characters?
The converter supports Unicode words. However, capitalization and word detection can vary by language and character, so check the output when working with non-English text.
Can I download the converted text?
Yes. You can copy the result or download it as a TXT file.