Case Converter
Paste text and switch it between UPPERCASE, lowercase, Title Case, Sentence case and the naming styles programmers use: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case. Accented letters, numbers and line breaks are handled, and scripts without letter case, such as Arabic, are left alone. Everything runs in your browser.
Result
Converted text
- Characters
- Words
- Lines
Examples
The same input in every style (the first row is the input):
| Style | Result |
|---|---|
| Original | hello World-wide web2 XMLHttpRequest |
| UPPERCASE | HELLO WORLD-WIDE WEB2 XMLHTTPREQUEST |
| lowercase | hello world-wide web2 xmlhttprequest |
| Title Case | Hello World-Wide Web2 Xmlhttprequest |
| Sentence case | Hello world-wide web2 xmlhttprequest |
camelCase | helloWorldWideWeb2XmlHttpRequest |
PascalCase | HelloWorldWideWeb2XmlHttpRequest |
snake_case | hello_world_wide_web2_xml_http_request |
kebab-case | hello-world-wide-web2-xml-http-request |
CONSTANT_CASE | HELLO_WORLD_WIDE_WEB2_XML_HTTP_REQUEST |
dot.case | hello.world.wide.web2.xml.http.request |
Formula & Methodology
Text is split into words at spaces, punctuation, underscores and hyphens, at camelCase boundaries (fooBar becomes foo Bar) and where an acronym ends (XMLHttp becomes XML Http). Digits stay attached to their word. The words are then joined and capitalized according to the style. Each line of your text is converted separately, so line breaks are kept.
Notes and limitations
- Title Case capitalizes every word by default. The short-words option follows common English style and only applies to English words.
- Sentence case capitalizes the first letter after a period, question mark or exclamation mark. It does not know names or acronyms, so check the result.
- Languages without capital letters, such as Arabic, Hebrew or Chinese, are not changed by the upper, lower, title and sentence styles.
- The programmer styles (camelCase, snake_case and so on) drop punctuation and symbols and keep letters and digits.
- Some languages have special case rules. The Turkish option handles i and ฤฐ correctly.
How to Use
- Paste or type your text.
- Choose a case style.
- Adjust the options if you need them.
- Copy the converted text or download it.
Frequently Asked Questions
What is the difference between title case and sentence case?
Title Case capitalizes the first letter of every word. Sentence case capitalizes only the first letter of each sentence, as in normal writing.
When do I use camelCase, snake_case or kebab-case?
They are naming styles for code. camelCase is common for JavaScript variables, snake_case for Python and databases, kebab-case for URLs and CSS classes, and CONSTANT_CASE for constants.
Does it work with accented letters?
Yes. Letters such as รฉ, รฑ and รผ are converted correctly, and accents are kept.
What happens to Arabic text?
Arabic has no capital letters, so the upper, lower, title and sentence styles leave it unchanged. The programmer styles keep the Arabic words and change only the separators.
Is anything sent to a server?
No. Conversion runs in your browser and nothing you enter is uploaded or sent to analytics.
Last updated: