Case Converter for Developers
Type or paste any phrase and instantly see it converted to all five major naming conventions used in programming: camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Each output has its own copy button, so you can grab exactly the format you need.
Try These Examples
get user profile data— A typical function or method namemaximum retry count— A constant or configuration valueblog post featured image— A CSS class or database column
How It Works
The tool splits your input into individual words by looking for spaces, hyphens, underscores, and camelCase boundaries. It then reassembles those words according to the rules of each naming convention:
- camelCase — The first word is entirely lowercase, and every subsequent word has its first letter capitalised with no separators. This is the standard for JavaScript and TypeScript variables, function names, and object properties:
getUserProfileData. - PascalCase — Every word starts with a capital letter, including the first, with no separators. Used for class names in most languages, React and Angular component names, and TypeScript interfaces:
GetUserProfileData. - snake_case — All words are lowercase and joined by underscores. This is the dominant convention in Python, Ruby, Rust, and SQL column names:
get_user_profile_data. - kebab-case — All words are lowercase and joined by hyphens. Primarily used for CSS class names, HTML data attributes, URL slugs, and CLI flags:
get-user-profile-data. - CONSTANT_CASE — All words are uppercase and joined by underscores. Reserved for constants and environment variables in virtually every language:
GET_USER_PROFILE_DATA.
Everything runs client-side in plain JavaScript — your text never leaves your browser.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
Both conventions join words without separators and capitalise the first letter of each word. The difference is the very first letter: camelCase starts with a lowercase letter (e.g. getUserName), while PascalCase starts with an uppercase letter (e.g. GetUserName). In JavaScript, camelCase is the standard for variables and functions, while PascalCase is used for class names and React components.
When should I use snake_case vs kebab-case?
snake_case separates words with underscores and is the standard naming convention in Python, Ruby, and SQL. kebab-case separates words with hyphens and is primarily used in CSS class names, HTML attributes, URL slugs, and CLI flags. Choose the convention that matches the language or context you are working in.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) writes every letter in uppercase and separates words with underscores. It is used for constant values and environment variables across most programming languages — for example, MAX_RETRY_COUNT in JavaScript or DATABASE_URL in a .env file.
Is my text sent to a server?
No. This tool runs entirely in your browser using JavaScript. Your text is never transmitted over the network — there are no API calls, no server processing, and no data storage. You can verify this by checking the Network tab in your browser's developer tools.