Case Converter
Convert text, variable names, and filenames to UPPER, camelCase, snake_case, kebab-case, and more.
Category: Text Tools
When to use?
Use it to align naming across API field names, environment variables, CSS class names, filenames, and URL slugs. Quickly turn a phrase into camelCase, PascalCase, snake_case, or kebab-case, or unify titles to Title Case.
How to use
- Enter text.
- Pick a case format or view all formats at once.
- Use the copy button to copy the result you want.
Input Explanation
Enter English text, variable names, filenames, sentences, or code snippets. Mixed spaces, hyphens, and underscores are split into words for conversion.
Calculation Basis
It splits words via regular expressions, then applies each case rule (camel, pascal, snake, kebab, etc.) with the right capitalization and separators.
Usage Examples
- Convert variable name formats - Align API fields, type names, and components to camelCase, PascalCase, or snake_case.
- Unify title formats - Batch-convert document titles to Title Case.
- Generate URL slugs - Convert text with spaces to kebab-case.
- Tidy filenames/CSS classes - Tidy text that needs separator rules, like image filenames, CSS classes, or test IDs.
Examples
- "hello world" → camelCase: helloWorld, PascalCase: HelloWorld, snake_case: hello_world, kebab-case: hello-world
- "user profile id" → userProfileId, UserProfileId, user_profile_id
Cautions
- Results can vary by whether spaces are included and how line breaks are handled.
- For code use, language reserved words and identifiers starting with a number have syntax limits — verify per your project rules.
Guides
Conversion types
uppercase is all caps, lowercase is all lower, Title Case capitalizes each word's first letter. camelCase, snake_case, and kebab-case are common in coding conventions.
Apply coding conventions
Useful for unifying variable names, filenames, and API keys. Pair with the slug generator for URL-friendly lowercase+hyphen forms.
Where each case is used
camelCase for JavaScript variables, PascalCase for React components and types, snake_case for some API/DB fields, kebab-case for URL slugs and CSS classes.
Tidy text before converting
If copied text has many duplicate spaces or line breaks, clean it first with the whitespace remover or line sorter for more predictable results.
FAQ
What is the difference between camelCase and PascalCase?
camelCase lowercases the first word and capitalizes later words (helloWorld); PascalCase capitalizes every word (HelloWorld).
Is text with Korean converted?
Korean has no case, so it is left as-is and only the English parts are converted.
What is the difference between snake_case and kebab-case?
snake_case uses underscores (_); kebab-case uses hyphens (-).
How do I copy a result?
Click the copy button next to each result to copy it to the clipboard.
Related Tools
- Slug Generator - Convert a title or sentence into a URL-friendly slug string.
- Text Template Filler - Replace {variable} placeholders with your values in bulk.
- Whitespace Remover - Remove whitespace in various ways — leading/trailing, duplicate, or per-line.
- Line Sorter - Sort each line of text in ascending/descending order, or shuffle randomly.
- Character Counter - Count characters with and without spaces, and line count, in real time.
- Byte Counter - Calculate the byte length of text when stored as UTF-8.