Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, and more. Instant results with copy buttons.
camelCase—
PascalCase—
snake_case—
SCREAMING_SNAKE—
kebab-case—
UPPER CASE—
lower case—
Title Case—
Sentence case—
Common Examples
| Input | camelCase | snake_case | kebab-case |
|---|---|---|---|
| hello world | helloWorld | hello_world | hello-world |
| user name | userName | user_name | user-name |
| background color | backgroundColor | background_color | background-color |
| api endpoint | apiEndpoint | api_endpoint | api-endpoint |
| get user by id | getUserById | get_user_by_id | get-user-by-id |
Frequently Asked Questions
camelCase writes compound words with no spaces, where each word after the first starts with a capital letter — for example, "backgroundColor" or "getUserById". It is the dominant naming convention in JavaScript, TypeScript, Java, Swift, and Kotlin. Variables, object properties, and function names in these languages almost always use camelCase. The name comes from the capital letters resembling camel humps in the middle of the word.
PascalCase (also called UpperCamelCase) capitalises every word including the first — for example, "BackgroundColor" or "UserProfile". camelCase only capitalises from the second word onward. PascalCase is typically used for class names, constructor functions, React components, and TypeScript interfaces. If you see a name that starts with a capital and has internal capitals, it is almost certainly a class or component name.
snake_case joins words with underscores in lowercase — for example, "background_color" or "user_id". It is the standard convention in Python (variables, functions, and modules), database column names, REST API parameters, and configuration files. SCREAMING_SNAKE_CASE (all uppercase with underscores) is used for constants and environment variables such as DATABASE_URL or MAX_RETRIES.
kebab-case joins words with hyphens — for example, "background-color" or "user-id". It is standard in CSS property names ("font-size", "border-radius"), HTML attributes, and URL slugs. Many design systems and configuration files also use kebab-case for keys. It is easy to read and widely used in front-end development, where hyphens are natural separators in identifiers.