Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, and more.
camelCase
helloWorld
PascalCase
HelloWorld
snake_case
hello_world
kebab-case
hello-world
SCREAMING_SNAKE
HELLO_WORLD
Title Case
Hello World
dot.case
hello.world
flatcase
helloworld
About This Tool
Case styles are conventions for writing compound identifiers. Different programming languages, frameworks, and contexts have strong preferences for specific cases. Converting between them is a daily task for developers working across multiple layers of a tech stack.
When to Use
- Naming variables in different languages: Python/SQL use snake_case, JavaScript uses camelCase, PHP classes use PascalCase.
- Converting column names from a database (snake_case) to JSON API fields (camelCase).
- Creating CSS class names (kebab-case) from JavaScript variable names (camelCase).
- Converting human-readable feature names to constants (SCREAMING_SNAKE_CASE).
Practical Examples
Cross-language mapping"user_profile_image" (DB) → "userProfileImage" (JS) → "UserProfileImage" (C#) → "user-profile-image" (CSS)
Config constants"max retry count" → MAX_RETRY_COUNT (environment variable)
Common Mistakes to Avoid
- Using camelCase for CSS class names — browsers are case-insensitive but it's non-standard.
- Mixing cases in the same codebase. Consistency is more important than which style you pick.
Frequently Asked Questions
Q. What's the difference between camelCase and PascalCase?A. camelCase starts with a lowercase letter (helloWorld), PascalCase always starts uppercase (HelloWorld). PascalCase is also called UpperCamelCase.