Case Converter
Convert text between different case formats (camelCase, snake_case, kebab-case, etc.)
Conversions
1. What is Case Conversion?
Case conversion transforms text between different capitalization and word-separation formats. These naming conventions are used across programming languages, with each serving specific purposes in code organization and readability.
2. How does it work?
The converter first parses the input by detecting word boundaries (spaces, underscores, hyphens, or camelCase transitions). It then applies the selected format's rules: capitalizing specific letters, adding separators, or removing spaces. Each format follows language-specific conventions.
Available Formats
- UPPERCASE - All characters uppercase
- lowercase - All characters lowercase
- Title Case - First letter of each word capitalized
- camelCase - First word lowercase, rest capitalized (no spaces)
- PascalCase - All words capitalized (no spaces)
- snake_case - Lowercase with underscores
- kebab-case - Lowercase with hyphens
- CONSTANT_CASE - Uppercase with underscores
Common Use Cases
- camelCase: JavaScript variables and functions
- PascalCase: Class names, React components
- snake_case: Python variables, database columns
- kebab-case: CSS classes, URLs
- CONSTANT_CASE: Environment variables, constants
3. Examples
Example: hello world
camelCase: helloWorld, snake_case: hello_world, kebab-case: hello-world
Example: user profile data
camelCase: userProfileData, PascalCase: UserProfileData, CONSTANT_CASE: USER_PROFILE_DATA