Text Case Converter
Convert text case quickly with multiple naming conventions
Select Conversion Mode
What is Text Case Conversion?
Text case conversion transforms alphabetic characters to different case forms. Beyond basic uppercase, lowercase, and capitalize, it supports various programming naming conventions like camelCase, PascalCase, snake_case, etc.
These conversions are useful for programmers and editors to quickly standardize text formats or convert variable naming styles.
How to Use
Basic Operations
- Enter or paste text to convert in the left input box
- Click the corresponding button to select conversion mode
- The right side automatically shows the converted result
- Click 'Copy' to copy the result to clipboard
Conversion Mode Description
- UPPERCASE: Convert all letters to uppercase, e.g. HELLO WORLD
- lowercase: Convert all letters to lowercase, e.g. hello world
- Capitalize Words: Capitalize the first letter of each word, e.g. Hello World
- camelCase: First word lowercase, subsequent words capitalized, e.g. helloWorld
- PascalCase: Capitalize the first letter of all words, e.g. HelloWorld
- snake_case: Words connected by underscores, e.g. hello_world
- kebab-case: Words connected by hyphens, e.g. hello-world
Examples
Programming Naming Conversion
Text Format Conversion
Different Separator Conversion
FAQ
Q: What's the difference between camelCase and PascalCase?
A: camelCase starts with lowercase first word, PascalCase capitalizes all words. camelCase is commonly used for JavaScript variables and functions, PascalCase for class names and types.
Q: Can Chinese text be case-converted?
A: Chinese characters don't have case distinctions. Conversion mainly affects English letters. Chinese text remains unchanged during conversion.
Q: How to convert camelCase to snake_case?
A: Enter camelCase text (e.g. userName), click 'snake_case' button to convert to user_name. The tool automatically recognizes camelCase structure.
Q: What is toggle case used for?
A: Toggle case swaps uppercase to lowercase and lowercase to uppercase. For example, 'HeLLo' becomes 'hEllO', useful for special formatting needs or encoding scenarios.