Online Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case and more. All 15 formats update as you type, and you can convert a whole list line by line.
Click a result or its Copy button to copy it. Words are detected from spaces, hyphens, underscores, punctuation and camelCase boundaries.
How to use Case Converter on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with Case Converter
Everything this tool offers.
About Case Converter on KickSolve
What it does and how to get the best results.
What is a case converter?
A case converter changes the capitalization and word separators of text. Programmers use it to follow naming conventions such as camelCase and snake_case, and writers use it to switch between Title Case, Sentence case and UPPERCASE.
How words are detected
The converter splits on spaces, hyphens, underscores and punctuation, and on lowercase-to-uppercase changes such as userName. Acronym boundaries are handled too, so XMLHttpRequest becomes XML, Http and Request. Apostrophes are removed so don't becomes dont in code styles.
Title Case rules
With Smart Title Case on, short words such as a, an, the, and, of, in and to stay lowercase unless they are the first or last word. Turn it off, or use Capitalize Each Word, to capitalize every word.
Limits
Names with special capitalization, such as iPhone or macOS, and domain-specific abbreviations should be checked by hand. Letters from any language are supported, but case rules follow your browser's locale.
Read the KickSolve privacy policy for details about the site itself.
Naming conventions by language
Which case style each language and ecosystem usually uses.
| Language | Variables and functions | Classes and types | Constants | File names |
|---|---|---|---|---|
| JavaScript / TypeScript | camelCase | PascalCase | CONSTANT_CASE | kebab-case or camelCase |
| Python | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| Java | camelCase | PascalCase | CONSTANT_CASE | PascalCase |
| C# | camelCase (locals), PascalCase (methods) | PascalCase | PascalCase | PascalCase |
| Go | camelCase (private), PascalCase (exported) | PascalCase | PascalCase or camelCase | lowercase or snake_case |
| Ruby | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| Rust | snake_case | PascalCase | CONSTANT_CASE | snake_case |
| PHP | camelCase | PascalCase | CONSTANT_CASE | PascalCase |
| CSS and HTML | kebab-case | - | - | kebab-case |
| SQL | snake_case | - | UPPERCASE keywords | snake_case |
One phrase in every code format
The phrase "user profile settings".
| Format | Result | Common use |
|---|---|---|
| camelCase | userProfileSettings | JavaScript variables and functions |
| PascalCase | UserProfileSettings | Classes, components, types |
| snake_case | user_profile_settings | Python, Ruby, database fields |
| kebab-case | user-profile-settings | CSS classes, URL slugs |
| CONSTANT_CASE | USER_PROFILE_SETTINGS | Constants, environment variables |
| dot.case | user.profile.settings | Config keys, package names |
| path/case | user/profile/settings | URL and file paths |
| Train-Case | User-Profile-Settings | HTTP headers |
Frequently asked questions
Quick answers.
What is a case converter?
A case converter changes capitalization and word separators. It can turn text into camelCase, PascalCase, snake_case, kebab-case, Title Case and other formats.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter, for example userName. PascalCase capitalizes the first letter of every word, including the first, for example UserName.
What is the difference between snake_case and kebab-case?
snake_case joins lowercase words with underscores, and kebab-case joins them with hyphens. snake_case is common in Python and databases, kebab-case in CSS and URLs.
How do I convert text to camelCase?
Paste your text. The camelCase result lowercases the first word and capitalizes the first letter of the rest, with spaces and punctuation removed.
What is the difference between Title Case and Capitalize Each Word?
Title Case lowercases the rest of each word and, with Smart mode, keeps small words like of and the lowercase. Capitalize Each Word only uppercases the first letter of every word.
Can I convert many lines at once?
Yes. With Convert each line separately on, every line is converted on its own, which is ideal for lists of field or variable names.
Does it handle existing camelCase or acronyms?
Yes. It splits lowercase-to-uppercase transitions and acronyms, so XMLHttpRequest becomes XML Http Request before it is reformatted.
Does it work with accented and non-English letters?
Yes. Letters and digits from any language are kept, and case changes follow your browser locale.
Why did my apostrophes disappear?
Code formats drop apostrophes so that don't becomes dont. Text formats such as Title Case keep them.
Is my text uploaded?
No. Conversion runs in your browser and nothing is sent to a server.
Is the case converter free?
Yes. It is free with no signup and no limits.
More free tools from KickSolve
Related everyday tools.