How to change the case of text
- Add your text. Paste or type into the Your text box; the word and character counts update as you go.
- Pick a conversion. Choose one of the fifteen buttons under Convert to, such as Sentence case, camelCase or url-slug.
- Tidy the spacing. Turn on Collapse repeated spaces to squeeze double spaces and trim the ends before converting.
- Copy or chain it. Press Copy result, or Use as input to run a second conversion on the output.
All fifteen conversions
Each button below applies to the whole text at once. The middle column shows what the phrase “hello world example” becomes.
| Conversion | “hello world example” | Typical use |
|---|---|---|
| UPPER CASE | HELLO WORLD EXAMPLE | Short headings, signs, labels |
| lower case | hello world example | Normalising a list before sorting |
| Sentence case | Hello world example | Body copy, descriptions |
| Capitalise Each Word | Hello World Example | Names, form labels |
| Title Case (AP) | Hello World Example | Article and page titles |
| aLtErNaTiNg | hElLo WoRlD eXaMpLe | Jokes and mocking quotes |
| iNVERSE cASE | HELLO WORLD EXAMPLE | Fixing caps-lock mistakes |
| camelCase | helloWorldExample | JavaScript and Java variables |
| PascalCase | HelloWorldExample | Classes, React components |
| snake_case | hello_world_example | Python names, SQL columns |
| CONSTANT_CASE | HELLO_WORLD_EXAMPLE | Constants, environment variables |
| kebab-case | hello-world-example | CSS classes, file names |
| dot.case | hello.world.example | Config keys, namespaces |
| url-slug | hello-world-example | Page addresses |
| esreveR | elpmaxe dlrow olleh | Puzzles, testing |
How the conversions decide where words start
The everyday cases work on the text as you wrote it. Sentence case lower-cases everything, then capitalises the first letter of the text and the first letter after each full stop, question mark or exclamation mark followed by a space. Capitalise Each Word capitalises the first letter after every word boundary, which includes an apostrophe, so “don’t” can come out as “Don’T”. Title Case capitalises only the first letter of each word, so it handles apostrophes cleanly.
The programming cases first break the text into words. A space, underscore, hyphen or dot is a break, and so is a lower-case letter or digit followed by a capital. That is why “user_first-name”, “userFirstName” and “user first name” all become the same userFirstName in camelCase. The words are then joined with the separator the case calls for and given the right capitals.
Title case is not one rule
Style guides disagree about which words stay small in a title. This converter is close to AP style: articles (a, an, the), coordinating conjunctions (and, but, or, nor, so, yet) and short prepositions such as of, in, on, to, by and via stay lower case unless they are the first or last word. Chicago style treats prepositions differently, and many house styles capitalise any word of four or five letters or more. Choose one style for a publication and apply it to every heading, because a mix of styles on one page is more noticeable than either choice.
Things to check after converting
- Acronyms and names. The editorial cases lower-case the text before capitalising, so “BBC” becomes “Bbc” and proper nouns in the middle of a sentence lose their capital. Fix them by hand afterwards.
- Abbreviations with full stops. Sentence case treats “e.g. this” as a new sentence and capitalises “This”.
- Runs of capitals in code. “parseHTMLString” splits into “parse” and “HTMLString”, because only a lower-case letter followed by a capital counts as a break. Rename such identifiers by hand.
- Hyphenated words in titles. Title Case capitalises the start of each space-separated word only, so “well-known” stays “Well-known”.
Making a clean URL slug
A slug is the readable part of a web address. The url-slug option removes accents, lower-cases the text and swaps every run of spaces and punctuation for one hyphen, so nothing in it needs percent-encoding. Keep slugs short and descriptive, leave out words that add nothing, and avoid changing a slug once a page is live unless you redirect the old address to the new one.
- Readable:
/printable-graph-paper/ - Hard to read:
/page?id=8842&cat=17 - Too long:
/the-complete-guide-to-every-kind-of-printable-graph-paper/
Fixing a caps-lock accident
Typing with caps lock on and the shift key held at the start of each sentence gives text like “hELLO tHERE”. iNVERSE cASE swaps every letter back in one go. Run Sentence case afterwards if the capitals still need tidying.
Related text tools
The word counter gives word, character and reading-time figures for the same text, and the lorem ipsum generator makes placeholder copy to test a layout before the real words are ready.
Frequently asked questions
What is the difference between Title Case and Capitalise Each Word?
Which programming case should I use?
camelCase is used for JavaScript and Java variables, PascalCase for classes and React components, snake_case for Python names and SQL columns, CONSTANT_CASE for constants and environment variables, and kebab-case for CSS classes and file names.Does the converter understand text that is already in camelCase?
Why did my acronyms and names turn lower case?
What does the url-slug option do?
cafe-bar-menu-2026.