Text Case Converter
Instantly convert text to camelCase, PascalCase, snake_case, kebab-case, and more. Works with any input including existing camelCase or snake_case strings.
All processing is client-side — your text never leaves your browser.When to Use Each Case
camelCase
Standard for JavaScript and TypeScript variable and function names. The first word is all lowercase, every subsequent word starts with a capital. Example: getUserProfile, fetchApiData.
PascalCase
Used for class names, React components, TypeScript interfaces, and constructors across most languages. Every word starts with a capital letter, no separators. Example: UserProfile, ApiClient.
snake_case
The preferred convention in Python for variables, functions, and module names (PEP 8). Also the standard for SQL column names and database identifiers. Example: user_profile, fetch_api_data.
kebab-case
Required for CSS class names and custom properties, and the recommended convention for URL slugs and HTML attributes. Hyphens are valid in URLs without encoding. Example: user-profile, api-data.
How to use
- 1Type or paste your text
Enter the text you want to convert in the input area.
- 2Choose a format
Click any case button — camelCase, PascalCase, snake_case, kebab-case, UPPER CASE, lower case, Title Case, or Sentence case.
- 3Copy the result
The converted text appears instantly. Use the Copy button to grab it.
Frequently asked questions
What is camelCase?
camelCase writes compound words with no spaces: the first word is lowercase and each subsequent word starts with an uppercase letter (e.g., myVariableName). It is the standard naming convention in JavaScript, Java, and many other languages.
What is snake_case?
snake_case uses all lowercase letters with underscores between words (e.g., my_variable_name). It is the standard convention in Python, Ruby, and SQL.
What is the difference between camelCase and PascalCase?
Both use uppercase first letters for each word except the first. The difference is that PascalCase capitalizes the very first word too (e.g., MyVariableName), while camelCase keeps the first word lowercase (myVariableName). PascalCase is standard for class names in most languages.
What is kebab-case?
kebab-case uses all lowercase letters with hyphens between words (e.g., my-variable-name). It is the standard for CSS class names, HTML attributes, and URL slugs.