Case Converter
Convert text to camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, UPPERCASE or lowercase in one click, right in your browser.
Input text
Stays in your browserConverted
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to Slug Generator or Word & Character Counter.
Free Online Case Converter
Type or paste any text to instantly see it converted into every common naming convention at once — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, UPPERCASE, lowercase, and Title Case — each with its own copy button. It helps frontend and API developers normalize variable names, database fields, labels, and URL-friendly identifiers.
Why naming conventions matter
Different languages, frameworks, and style guides expect different naming conventions: JavaScript variables are conventionally camelCase, Python variables and database columns are typically snake_case, CSS classes and URL slugs use kebab-case, and class names across most languages use PascalCase. Manually retyping a name in a different convention is tedious and error-prone — this tool converts a name (or a whole block of text) into every common style at once.
How the conversion works
The tool first breaks your input into individual words, splitting on existing separators (spaces, hyphens, underscores) and on lowercase-to-uppercase letter transitions within a word — so myVariableName, my-variable-name, and my_variable_name are all recognized as the same three words and convert identically to any target format.
Common use cases
- Renaming a variable when porting code between languages with different conventions
- Converting a database column name into a matching JavaScript property name
- Turning a page title into a URL-safe kebab-case slug or a PascalCase component name
Worked example
myVariableName tokenizes as three words (my, Variable, Name) and converts cleanly to my_variable_name, my-variable-name, and MY_VARIABLE_NAME. userID tokenizes as two words (user, ID) and converts to user_id.
Common mistakes and edge cases
- An acronym stays together as one word.
APIResponsebecomesapi_response,XMLHttpRequestbecomesxml_http_requestandparseXMLResponsebecomesparse_xml_response. - Digits stay with the letters before them, so
version2Updateis read asversion2andUpdate.