Case Converter
Convert text between lowercase, UPPERCASE, Title Case, camelCase, snake_case, kebab-case, and 6 more formats.
Advertisement
Input Text
Text Cases
Code Cases
Result
Enter text above to see the converted result
Advertisement
How to Use the Case Converter
Type or paste your text into the input field, then select the desired case format. The converted result appears instantly below the case options. Click “Copy” to copy the result to your clipboard, or use “Swap” to feed the result back as input for chained conversions.
The converter supports 12 different case formats organized into two categories: text cases (lowercase, UPPERCASE, Title Case, Sentence case, tOGGLE) and code cases (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case). Each format is a single click away.
The “All Conversions” section at the bottom shows your text converted to every supported format simultaneously. This is useful when you need to quickly compare formats or are unsure which convention to use. The smart word splitter correctly handles input from any format — camelCase, snake_case, regular sentences, and more.
Common use cases include converting variable names between programming language conventions (e.g., JavaScript's camelCase to Python's snake_case), generating URL slugs in kebab-case, creating constant names in CONSTANT_CASE, and formatting titles and headings in Title Case.
Everything runs locally in your browser. No text is sent to any server, making it safe to convert sensitive variable names, API keys, or other confidential text.
Frequently Asked Questions
What is camelCase?
camelCase is a naming convention where the first word starts with a lowercase letter and each subsequent word starts with an uppercase letter, with no separators between words. Examples: 'firstName', 'getUserById', 'isActive'. It's the standard convention for variable and function names in JavaScript, TypeScript, Java, and many other programming languages.
What is the difference between camelCase and PascalCase?
The only difference is the first letter: camelCase starts with a lowercase letter (e.g., 'myVariable'), while PascalCase starts with an uppercase letter (e.g., 'MyVariable'). PascalCase is also known as UpperCamelCase and is typically used for class names, type names, and component names in languages like C#, TypeScript, and React.
When should I use snake_case vs kebab-case?
snake_case (words separated by underscores) is the convention in Python, Ruby, Rust, and SQL. kebab-case (words separated by hyphens) is used for CSS class names, URL slugs, HTML attributes, and file names. Most programming languages cannot use hyphens in variable names, so kebab-case is limited to non-code contexts.
What is CONSTANT_CASE?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses all uppercase letters with underscores separating words. It's the standard convention for constants and environment variables across most programming languages. Examples: 'MAX_RETRY_COUNT', 'API_BASE_URL', 'DATABASE_HOST'.
How does the text-to-code case conversion work?
When converting regular text to code cases (camelCase, snake_case, etc.), the tool first splits the input into individual words. It recognizes word boundaries from spaces, hyphens, underscores, dots, slashes, and camelCase transitions (lowercase-to-uppercase). The words are then joined using the target format's convention.