Skip to content

Aa · UPPER · camelCase · snake_case

Case converter

The case converter turns “the war of the worlds” into “The War of the Worlds” (title case) or “the_war_of_the_worlds” (snake_case). Type or paste text, then pick a style.

Eleven styles, converted as you click. The casing rules of the page language apply unless you pick another language in the list. The text never leaves this tab.

Scanned by NortonTM Safe Web

At a glance

Price
No charge
Account
None needed
Upload
Not applicable — the text never leaves your tab
Styles
UPPER, lower, Title, Title with small words, Sentence, tOGGLE, camel, Pascal, snake, kebab and CONSTANT
Language rules
Page language, English, Turkish, Azerbaijani or Lithuanian
Size limit
5,000,000 characters per text

All styles on one phrase, and the Turkish i

The first table converts “the war of the worlds” with every style. The second shows the same letters under the English and Turkish rules. Both come from the same code as the converter.

“the war of the worlds” in each style
StyleResult
UPPER CASETHE WAR OF THE WORLDS
lower casethe war of the worlds
Title CaseThe War Of The Worlds
Title Case with small wordsThe War of the Worlds
Sentence caseThe war of the worlds
tOGGLE cASETHE WAR OF THE WORLDS
camelCasetheWarOfTheWorlds
PascalCaseTheWarOfTheWorlds
snake_casethe_war_of_the_worlds
kebab-casethe-war-of-the-worlds
CONSTANT_CASETHE_WAR_OF_THE_WORLDS
Dotted and dotless i under two sets of rules
OperationInputEnglish rulesTurkish rules
Upper caseistanbulISTANBULİSTANBUL
Lower caseISPARTAispartaısparta
Title CaseistanbulIstanbulİstanbul

How to change the case of a text

1

Paste or type the text

Put the text in the first box. A sample phrase is already there. For the identifier styles (camelCase, snake_case and the others) every line is converted on its own, so a list of names stays a list.

2

Pick a style

Press a style button. The result appears in the second box at once, with a short line under the buttons that says what the style does. Pick another button to try a different style on the same text.

3

Copy or download the result

Press Copy to put the result on the clipboard, or Download to save it as a .txt file. Use result as text moves the result back into the first box when you want to convert it a second time.

How each style works

Upper case, lower case and toggle case change letters one by one. Title case makes the first letter of every word a capital and the rest lower case, using Unicode word boundaries, so “well-known” becomes “Well-Known”. The title case with small words style leaves these 18 words in lower case unless they are the first or last word: a, an, the, and, but, or, nor, for, so, yet, at, by, in, of, on, to, up, as. That list is one English style-guide convention; other guides use other lists, so check the one you must follow.

Sentence case lowercases everything, then capitalises the first letter after a full stop, question mark, exclamation mark or line break; a full stop inside an abbreviation such as “e.g.” followed by a space therefore also starts a capital. The five identifier styles split the text into words at spaces, underscores, hyphens and camelCase boundaries, drop other punctuation, and join the words again: camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Casing follows the language rules you select, which matters for Turkish and Azerbaijani: 'i'.toUpperCase() is 'I', but in Turkish the capital of i is İ and the lower case of I is ı.

Case converter questions

How do I convert text to title case?

Choose Title Case to capitalise every word, so “the war of the worlds” becomes “The War Of The Worlds”. Choose the small-words style to keep short words such as of, the and in lower case: “The War of the Worlds”. Both lower-case the rest of each word.

Which words stay lower case in title case?

That depends on the style guide. This page offers one convention: a, an, the, and, but, or, nor, for, so, yet, at, by, in, of, on, to, up and as stay lower case, except when they are the first or last word. Other guides also lower-case longer prepositions, so the result may need a manual check.

Why does the letter i become İ in Turkish?

Turkish and Azerbaijani have two letters i: the dotted i with capital İ, and the dotless ı with capital I. The default rule gives 'i'.toUpperCase() = 'I', which is wrong in Turkish, so “istanbul” would become “ISTANBUL” instead of “İSTANBUL”. Pick the language in the list, or use a page in Turkish, and the Turkish rules apply.

What is the difference between camelCase, PascalCase, snake_case and kebab-case?

All four join the words of a name without spaces. camelCase starts with a lower-case word (“helloBigWorld”), PascalCase capitalises every word (“HelloBigWorld”), snake_case joins lower-case words with underscores (“hello_big_world”) and kebab-case joins them with hyphens (“hello-big-world”). CONSTANT_CASE is snake_case in capitals.

Does it handle accented letters and the German ß?

Yes. Accented letters change case like any other letter, and the German ß becomes SS in upper case: “straße” gives “STRASSE”. Converting back gives “strasse”, because the upper-case form does not record which spelling was used.

Is my text sent to a server?

No. The conversion runs in your browser tab with the browser's own case functions, and the text is never uploaded. Texts up to 5,000,000 characters are accepted.