A developer case converter transforms identifiers between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE instantly. Paste a variable name in any format, click the target convention, copy the result. No regex, no manual editing, no typos.
| Language / Context | Variables | Functions | Classes / Components | Constants | Files / URLs |
|---|---|---|---|---|---|
| JavaScript / TypeScript | camelCase | camelCase | PascalCase | CONSTANT_CASE | kebab-case |
| Python | snake_case | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| Ruby | snake_case | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| Java | camelCase | camelCase | PascalCase | CONSTANT_CASE | PascalCase |
| C# | camelCase | PascalCase | PascalCase | CONSTANT_CASE | PascalCase |
| Go | camelCase | PascalCase (exported) | PascalCase | camelCase | snake_case |
| Rust | snake_case | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| CSS | — | — | — | — | kebab-case |
| HTML attributes | — | — | — | — | kebab-case |
| URLs / slugs | — | — | — | — | kebab-case |
| Env variables | — | — | — | CONSTANT_CASE | — |
| Database columns | snake_case | — | — | — | — |
| Input | camelCase | snake_case | kebab-case | PascalCase | CONSTANT_CASE |
|---|---|---|---|---|---|
| user profile card | userProfileCard | user_profile_card | user-profile-card | UserProfileCard | USER_PROFILE_CARD |
| getUserData | getUserData | get_user_data | get-user-data | GetUserData | GET_USER_DATA |
| max_retry_count | maxRetryCount | max_retry_count | max-retry-count | MaxRetryCount | MAX_RETRY_COUNT |
| background-color | backgroundColor | background_color | background-color | BackgroundColor | BACKGROUND_COLOR |
| API_BASE_URL | apiBaseUrl | api_base_url | api-base-url | ApiBaseUrl | API_BASE_URL |
Your JavaScript codebase uses camelCase: getUserProfile, updateCartItems, fetchOrderHistory. Python convention is snake_case: get_user_profile, update_cart_items, fetch_order_history. Paste each name and click snake_case instead of manually inserting underscores and lowercasing.
An API returns snake_case JSON keys (user_name, created_at, is_active) but your React frontend uses camelCase (userName, createdAt, isActive). Convert the key names instantly for your mapping layer, or vice versa when building API request payloads.
Your React component is UserProfileCard (PascalCase). The CSS class should be user-profile-card (kebab-case). Paste the component name, click kebab-case, prefix with a dot in your stylesheet.
"How to Build a REST API" → kebab-case → "how-to-build-a-rest-api." Clean, URL-safe, SEO-friendly. No manual hyphenation.
Your config object has camelCase keys: databaseHost, apiSecretKey, maxConnectionPool. Environment variables use CONSTANT_CASE: DATABASE_HOST, API_SECRET_KEY, MAX_CONNECTION_POOL. Paste and convert instead of manually uppercasing and inserting underscores.
Converting "getUserAccountBalanceHistory" to snake_case manually means:
One missed boundary creates a bug. One wrong underscore creates a different variable name. The converter handles it consistently every time: get_user_account_balance_history.
Convert between camelCase, snake_case, kebab-case, and more — free, instant, private.
Open Case Converter