Case Converter
Convert text between camelCase, snake_case, PascalCase, kebab-case, UPPER_CASE, Title Case and more.
Converted formats
| Format | Result |
|---|
About Case Conversion
Different programming languages, frameworks, and contexts use different naming conventions. Converting between them is a common task when refactoring code, mapping API responses to variable names, or working across multiple languages. This tool handles all the major naming conventions used in software development.
Naming conventions and when they are used
- camelCase — Variables and functions in JavaScript, Java, Kotlin, Swift. Example:
getUserProfile - PascalCase / UpperCamelCase — Class names in most OOP languages (Java, C#, PHP, Python). React component names. Example:
UserProfileService - snake_case — Variables and functions in Python, Ruby, PostgreSQL, Rust. JSON API fields in some APIs. Example:
get_user_profile - SCREAMING_SNAKE_CASE — Constants in most languages (Python, C, Java). Environment variables. Example:
MAX_RETRY_COUNT - kebab-case — CSS class names, HTML attributes, URL slugs, command-line flags. Example:
user-profile-card - dot.case — Configuration keys in some frameworks and logging systems. Example:
user.profile.name
Common conversion scenarios
- Mapping a JSON API response with
snake_casekeys to JavaScript variables incamelCase - Converting database column names (
user_first_name) to PHP property names (userFirstName) - Creating a URL slug from a page title (
My Great Blog Post→my-great-blog-post) - Generating a constant name from a variable name for use in configuration
Frequently asked questions
What case formats does this support?
camelCase, PascalCase, snake_case, UPPER_SNAKE_CASE, kebab-case, Train-Case, Title Case, UPPERCASE, lowercase, Sentence case.