How to use the case converter
- Type or paste your text.
- Click the case you want.
- Copy the output.
About this tool
Change text case in one click. Use sentence and title case for writing, and camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE for code and file names. The converter splits words on spaces, dashes, underscores and existing capitals.
All the cases at a glance
| Case | Result for "hello world example" |
|---|---|
| UPPER CASE | HELLO WORLD EXAMPLE |
| lower case | hello world example |
| Title Case | Hello World Example |
| Sentence case | Hello world example |
| camelCase | helloWorldExample |
| PascalCase | HelloWorldExample |
| snake_case | hello_world_example |
| kebab-case | hello-world-example |
| CONSTANT_CASE | HELLO_WORLD_EXAMPLE |
Which one for what
- camelCase for variables and functions in JavaScript and Java.
- PascalCase for classes and React components.
- snake_case for Python variables and database columns.
- kebab-case for URLs, CSS class names and file names.
- CONSTANT_CASE for environment variables and constants.
How words are detected
For the code cases, the converter splits text on spaces, dashes, underscores and changes from lowercase to uppercase, and it keeps acronyms together, so getHTTPResponse becomes get_http_response in snake case. Numbers stay attached to the word before them.
Limits of Title Case
Title Case capitalises every word, including small words such as "of" and "the" that many style guides keep lowercase. Sentence case capitalises the first letter after a full stop, question mark or exclamation mark. Names, acronyms and brand names with unusual capitals need a quick manual check afterwards.
Frequently asked questions
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariable). PascalCase starts with an uppercase letter (MyVariable).
Does Title Case skip small words?
No. It capitalises every word. Edit small words like "of" by hand if your style guide needs it.
Is my text uploaded?
No. Everything runs in your browser. Nothing is uploaded.
How do I change all caps to normal case?
Paste the text and choose Sentence case or Title case. Both lowercase everything first and then capitalise.
Does it work with Hindi or other scripts?
Scripts without upper and lower case, such as Devanagari, are left as they are. Letters with accents in the Latin script are handled correctly.