🔄 Case Converter
Convert text to various case styles. Supports 8 conversion styles!
📝 Input Text
✨ Result
Select a case style to convert your text. Supports lowercase, UPPERCASE, Capitalize, camelCase, PascalCase, snake_case, kebab-case, and tOGGLE cASE.
Supported Conversion Styles
1. lowercase
Converts all characters to lowercase.
Input: Hello World
Result: hello world
2. UPPERCASE
Converts all characters to uppercase.
Input: Hello World
Result: HELLO WORLD
3. Capitalize Each Word
Capitalizes the first letter of each word.
Input: hello world
Result: Hello World
4. camelCase
First word lowercase, subsequent words capitalized.
Input: hello world example
Result: helloWorldExample
5. PascalCase
Capitalizes first letter of all words and removes spaces.
Input: hello world example
Result: HelloWorldExample
6. snake_case
Converts to lowercase and replaces spaces with underscores (_).
Input: Hello World
Result: hello_world
7. kebab-case
Converts to lowercase and replaces spaces with hyphens (-).
Input: Hello World
Result: hello-world
8. tOGGLE cASE
Swaps uppercase and lowercase characters.
Input: Hello World
Result: hELLO wORLD
Use Cases
💻 Programming
-
Variable Name Conversion: Convert to different naming conventions
// camelCase: userName
// snake_case: user_name
// PascalCase: UserName -
API Endpoints: Convert to URL format
// Original: User Profile
// kebab-case: user-profile
// Result URL: /api/user-profile
📝 Document Work
- Unify Title Style: Convert all titles to consistent format
- Organize Lists: Standardize item capitalization
🎨 CSS/HTML
- Generate Class Names: Convert component names to CSS classes
// Component: User Profile Card
// kebab-case: user-profile-card
// Class: .user-profile-card
🗄️ Database
- Table/Column Names: Convert according to database naming rules
// Original: User Name
// snake_case: user_name
Naming Conventions by Programming Language
JavaScript / TypeScript
// Variables, functions: camelCase
let userName = "John";
function getUserData() {}
// Classes, components: PascalCase
class UserProfile {}
const UserCard = () => {};
// Constants: UPPERCASE
const API_KEY = "abc123";
Python
# Variables, functions: snake_case
user_name = "John"
def get_user_data():
pass
# Classes: PascalCase
class UserProfile:
pass
# Constants: UPPERCASE
API_KEY = "abc123"
Java
// Variables, methods: camelCase
String userName = "John";
public void getUserData() {}
// Classes: PascalCase
public class UserProfile {}
// Constants: UPPERCASE
public static final String API_KEY = "abc123";
CSS / HTML
/* kebab-case */
.user-profile-card {
background-color: #fff;
}
#main-navigation {}
Tips
Pre-Conversion Checklist
- Special Characters: Special characters are removed or treated as separators depending on the conversion style
- Numbers: Numbers are preserved and not converted
- Spaces: Spaces are handled according to each style
Efficient Usage
- Multi-line Conversion: Enter multiple lines at once to convert all lines to the same style
- Copy and Reconvert: Paste the result back into the input field to convert to another style
🔗 Try These Next
- Text Comparison - Compare before and after conversion
- URL Encoder/Decoder - URL format conversion
- Character Counter - Check text statistics
Frequently Asked Questions
Q: Does it convert Korean characters? A: Korean doesn't have uppercase/lowercase concept, so it remains unchanged. Only spaces and special characters are processed according to the conversion style.
Q: What's the difference between camelCase and PascalCase?
A: camelCase starts with a lowercase first word (e.g., userName), while PascalCase starts all words with uppercase (e.g., UserName).
Q: When to use snake_case vs kebab-case? A: snake_case is used for variable/function names in Python, Ruby, SQL, while kebab-case is mainly used in URLs, CSS class names, and HTML attributes.
Q: Can I convert multiple lines at once? A: Yes! Enter multiple lines and all lines will be converted to the selected style.
💬 Was this tool helpful?
Feel free to send us your feedback or suggestions anytime!
Privacy
This tool operates entirely on the client side. Your text is never sent to a server and is processed only in your browser.