What is a Case Converter?
A case converter is a text transformation tool that changes the capitalization of text. It supports various naming conventions used in programming (camelCase, snake_case, PascalCase) and general text formatting (Title Case, Sentence case). This tool makes it easy to convert between all common case formats instantly.
How to Use
- Type or paste your text in the input area.
- Click one of the 12 case format buttons.
- The converted text appears in the output area below.
- Click Copy to copy the result.
- Use Swap to move output back to input for chaining.
Features
- 12 case formats: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, alternating, inverse
- Word and character count for input and output
- Swap input/output for chaining conversions
- Handles multi-word text and special characters
- 100% client-side processing
Case Format Reference
| Format | Example | Common Use |
|---|---|---|
| camelCase | helloWorld | JavaScript, Java variables |
| PascalCase | HelloWorld | Class names, components |
| snake_case | hello_world | Python, Ruby, databases |
| kebab-case | hello-world | URLs, CSS classes |
| CONSTANT_CASE | HELLO_WORLD | Constants, env variables |
| Title Case | Hello World | Headings, titles |
| Sentence case | Hello world | Sentences, descriptions |
FAQ
What is camelCase?
camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter, with no spaces. Example: "hello world" becomes "helloWorld". It is commonly used in JavaScript and Java for variable names.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (helloWorld), while PascalCase starts with an uppercase letter (HelloWorld). PascalCase is typically used for class names and React components, while camelCase is used for variables and functions.
When should I use snake_case?
snake_case uses underscores to separate words (hello_world). It is the standard naming convention in Python (PEP 8), Ruby, and many database column names. It is also commonly used in environment variables and configuration files.
What is kebab-case?
kebab-case uses hyphens to separate words (hello-world). It is commonly used in URLs, CSS class names (BEM methodology), HTML attributes, and npm package names. It is the standard naming convention in many web frameworks.