Case Converter: Change Text to Upper, Lower, Title or Sentence Case
FREEBy TheToolsBank Editorial TeamLast updated:
How to convert text case
- Type or paste your text into the box.
- Click a case button. UPPERCASE is selected when the page loads.
- Read the result below. It updates as you type or switch cases.
- Click Copy result to copy it, or Clear to start over.
Text styles keep your line breaks and punctuation. The four code styles (camelCase, PascalCase, snake_case, kebab-case) join everything into one name.
What each case looks like
These are the exact results the tool gives for the input Hello World.
| Case | Output | Typical use |
|---|---|---|
| UPPERCASE | HELLO WORLD | Headings, labels, emphasis |
| lowercase | hello world | Fixing text typed with Caps Lock on |
| Title Case | Hello World | Headlines, titles, product names |
| Sentence case | Hello world | Normal sentences, UI text, subject lines |
| camelCase | helloWorld | JavaScript and Java variables and functions |
| PascalCase | HelloWorld | Class names, React components, C# types |
| snake_case | hello_world | Python names, database columns |
| kebab-case | hello-world | URLs, CSS classes, file names |
| aLtErNaTiNg cAsE | hElLo wOrLd | Jokes and memes |
| InVeRsE cAsE | hELLO wORLD | Swapping every letter's case |
How Title Case and Sentence case work here
Title Case capitalizes the first letter of every word and lowercases the rest, including short words: "the lord of the rings" becomes "The Lord Of The Rings". AP and Chicago style keep words like a, an, the, and and of lowercase unless they start the title: "The Lord of the Rings".
Because the rest of each word is lowercased, brand names and acronyms change too: "iPhone" becomes "Iphone" and "NASA" becomes "Nasa". Accented first letters are handled correctly: "élan vital" becomes "Élan Vital".
Sentence case lowercases everything, then capitalizes the first letter of each line and any letter after a period, question mark or exclamation point plus a space. So "hello. world" on one line and "foo" on the next becomes "Hello. World" and "Foo". It cannot recognize names: "my name is sam and i live in Ohio." becomes "My name is sam and i live in ohio."
camelCase vs snake_case vs kebab-case
All three join words without spaces. camelCase marks each new word with a capital letter, snake_case uses underscores, and kebab-case uses hyphens. JavaScript usually uses camelCase, Python's style guide uses snake_case, and web addresses use kebab-case. For page URLs, the Slug Generator is built for the job.
There is no CONSTANT_CASE button. To get one, convert to snake_case, paste the result back in, and choose UPPERCASE: "max retry count" becomes MAX_RETRY_COUNT.
Accents, apostrophes and word breaks in code styles
The code styles keep letters from any alphabet, accented ones included, plus digits. Spaces, punctuation and symbols count as word breaks and are removed:
- Accented letters stay: "café au lait" becomes caféAuLait and café_au_lait. If a system only accepts plain A to Z names, swap them for plain letters first.
- Apostrophes split words: "don't stop" becomes donTStop and don_t_stop.
- Numbers stay: "version 2 update" becomes version2Update and version_2_update.
- A lowercase letter followed by a capital starts a new word, so "helloWorld example" becomes hello_world_example. A run of capitals or a digit before a capital does not: XMLHttpRequest becomes xmlhttp_request and version2Update becomes version2update.
Leading and trailing spaces and punctuation are dropped, so " hello world! " becomes helloWorld. The text styles keep stray spaces as they are; trim them with the Whitespace Remover.
Common Mistakes to Avoid
Expecting style-guide title case
Solution:
Running Sentence case on text with names or acronyms
Solution:
Expecting acronyms to split in code styles
Solution:

