Case converter: uppercase, lowercase, title, sentence, camel and snake case
A case converter changes the capitalisation of text without retyping it. Sentence case capitalises the first letter of each sentence; Title Case capitalises the main words of a heading; camelCase, PascalCase, snake_case and kebab-case are the conventions programmers use for identifiers. This tool converts between all of them instantly in your browser.
Your files never leave your device. Processing happens in your browser.How that works.
How it works
- Paste your text.
- Click a case style: UPPER, lower, Sentence, Title, camel, Pascal, snake, kebab, CONSTANT or aLtErNaTiNg.
- Copy the result or share the URL.
Runs as JavaScript inside this tab. Turn off your connection after the page loads and it still works.
Case styles reference
| Style | Example | Where it is used |
|---|---|---|
| UPPERCASE | HELLO WORLD |
Headlines, acronyms, emphasis |
| lowercase | hello world |
Body text, URLs, email addresses |
| Sentence case | Hello world |
Sentences, most UI text, modern headings |
| Title Case | Hello World |
Book, article and film titles; small words (a, and, of, the…) stay lowercase unless first or last |
| Capitalized Case | Hello World |
Every word capitalised, no exceptions |
| camelCase | helloWorld |
JavaScript, Java, Kotlin, Swift variables and functions |
| PascalCase | HelloWorld |
Class and type names in most languages; React components |
| snake_case | hello_world |
Python, Ruby, Rust variables; database columns |
| kebab-case | hello-world |
URLs, CSS classes, HTML attributes, file names |
| CONSTANT_CASE | HELLO_WORLD |
Constants and environment variables |
| dot.case | hello.world |
Configuration keys, package namespaces |
| aLtErNaTiNg | hElLo wOrLd |
Mocking SpongeBob meme text |
| iNVERSE | hELLO wORLD |
Swaps every letter’s case |
Title case rules used here
The converter follows the common style-guide convention: capitalise the first and last word and every word except articles (a, an, the), short conjunctions (and, but, or, nor, so, yet) and short prepositions (as, at, by, for, in, of, on, per, to, via, vs). Words after a hyphen are capitalised (Self-Aware). For Chicago, AP or APA specifics, check the guide; they differ on prepositions of four letters or more.
Identifier splitting
Converting to camel, Pascal, snake, kebab or constant case first splits the input into words at spaces, punctuation and existing case boundaries. userProfileURL becomes user Profile URL, so snake_case gives user_profile_url and kebab-case gives user-profile-url.
Worked examples
Title Case: “the lord of the rings: the return of the king” → The Lord of the Rings: The Return of the King
“of” and “the” stay lowercase in the middle; the first word of each part is capitalised.
Sentence case: “first sentence here. second one! is this the third? yes, i think so.” → First sentence here. Second one! Is this the third? Yes, I think so.
Capitals after each terminal mark, and the pronoun “I” is restored.
camelCase: “user profile image URL” → userProfileImageUrl
Acronyms become ordinary words in camelCase; most style guides recommend this (Url not URL) for consistency.
snake_case from camelCase: “getHTTPResponseCode” → get_http_response_code
Boundaries are detected between a lowercase letter and the next capital, and between an acronym and the word that follows it.
CONSTANT_CASE: “max retry count” → MAX_RETRY_COUNT
Frequently asked questions
What is the difference between Title Case and Capitalized Case?
Capitalized Case uppercases the first letter of every word. Title Case follows style-guide rules and keeps short words such as a, an, the, of, and, in lowercase unless they start or end the title.
How does Sentence case detect sentences?
It lowercases everything, then capitalises the first letter after a period, question mark or exclamation mark followed by a space, and the first letter of each line.
What is camelCase vs PascalCase?
Both join words without separators and capitalise each word; camelCase starts with a lowercase letter (userName) and PascalCase with an uppercase one (UserName).
Does it work with accented characters?
Yes. Conversions use Unicode-aware case mapping, so é becomes É and ß is handled according to Unicode rules.
Case converter · last updated · changelog · part of Canned Tuna