utilobox

Case converter: how to change text case without retyping

A headline came out in capitals, an email is all lowercase, or a list of names has to become code-friendly words. This guide shows how to use a case converter to change text case, what each button really does, and which results you must check by eye.

Last updated:

Case converter: pick the button by the job

Letter case is a small thing until a block of text has the wrong one, and then you want to change text case without retyping it. The Case converter turns what is in its box into another case with a single click, and the box itself changes, so there is no separate output area. In this case converter, two groups of buttons exist: ‘Letter case’ for ordinary writing, and ‘For code and file names’ for developers and anyone who needs words joined together. A third group, ‘Clean up’, tidies spaces.

Choose by what the text is for. A shouted email subject or a pasted all-capitals paragraph wants ‘lower case’ or ‘Sentence case’. A heading wants ‘Title Case’. A warning label or a short label wants ‘UPPER CASE’. A phrase that must become a variable name or a file name wants one of the code styles. The sections below say what each choice does with the details that usually go wrong.

Step by step: change the case of a text

Type or paste into the box labeled ‘Your text’. The counts for ‘Characters’, ‘Words’ and ‘Lines’ update under it. Click a button, such as ‘Sentence case’, and the whole text is converted at once; the status line confirms what was done. If the box is empty, the tool asks you to enter text first.

The conversion replaces the text in the box, so ‘Undo’ is your safety net. It steps back through up to 30 earlier states, which lets you try ‘Title Case’, dislike it, undo and try another style on the same original. When the result is right, use ‘Copy’, or ‘Download .txt’ to save it as a text file. ‘Clear’ empties the box, and that too can be undone.

Your text is kept in this browser, up to a large size, so a refresh does not lose it. Nothing is sent to a server, but on a shared computer you should clear the box when you finish.

Uppercase to lowercase and the other plain conversions

Going from uppercase to lowercase is the simplest job. ‘UPPER CASE’ and ‘lower case’ change every letter and leave everything else alone. They are the right choice for turning shouted text into something calm, or for making a search term uniform before you compare it with another list. They follow the rules of the page language, and unusual letters are handled: the German letter ß becomes SS in capitals.

‘iNVERSE cASE’ flips each letter to its opposite, so text that was typed with the caps-lock key on by mistake can often be fixed in one click. ‘aLtErNaTiNg cAsE’ alternates lower and upper case across letters, skipping spaces and symbols; it is a joke style and rarely useful, and you should not use it where people with screen readers will read the text.

Letters from scripts that have no capitals, such as Korean, Japanese and Chinese, stay as they are, while any Latin words in the same text still change. That is useful for mixed text, but it also means that nothing seems to happen when you convert a text written only in those scripts.

Title Case: the rule the tool follows

‘Title Case’ capitalizes the first letter of each word and lowercases the rest, with one English exception. Short joining words stay lowercase unless they come first or last: a, an, the, and, but, or, nor, for, so, yet, as, at, by, in, of, off, on, per, to, up, via and vs. So “harry potter and the order of the phoenix” becomes “Harry Potter and the Order of the Phoenix”.

That list is short and fixed, so words such as with, from, is and are are capitalized, and the tool does not know the style rule of any particular publisher. Different style guides disagree about these words, so if you follow one, check those words yourself. A small slip is also possible after a colon: in “the lord of the rings: a tale of two cities” the word “a” after the colon stays lowercase, because the tool treats it as a minor word and does not look at punctuation.

For languages other than English, the minor-word rule is not applied, and every word gets a capital. Apostrophes stay inside a word, so “don’t” becomes “Don’t” and not “Don’T”.

Sentence case: what it fixes and what it breaks

‘Sentence case’ lowercases everything first, then puts a capital on the first letter after the start of the text, after a period, exclamation mark or question mark, and after a line break. In English it also turns a lone “i” into “I”. A paragraph typed in capitals such as “HELLO THERE. I THINK SO! IS IT?” becomes “Hello there. I think so! Is it?”.

The catch is that lowercasing removes every capital you wanted to keep. Names, places, acronyms and product names are all flattened, so “NASA launched it in Paris” turns into “Nasa launched it in paris”. The same holds for abbreviations that end in a period: a capital is added after “Dr.” because the tool cannot tell an abbreviation from a sentence end.

With any case converter, do the conversion first and then repair the proper nouns by hand, or convert only the part that needs it. Since the text sits in the box and ‘Undo’ is available, it costs little to compare the result with the original. Read the converted text once from start to finish before you copy it.

camelCase, snake_case and the other code styles

The code styles are ‘camelCase’, ‘PascalCase’, ‘snake_case’, ‘kebab-case’, ‘CONSTANT_CASE’ and ‘dot.case’. They break the text into words at spaces, punctuation and changes of capitalization, then join the words in the chosen way. Each line is treated separately, so a list with one phrase per line becomes a list of one name per line, ready to paste.

Existing capitals are used to find the word breaks. “getHTTPResponse code” becomes getHttpResponseCode in camel style and get_http_response_code in snake style. Digits stay attached to the word that holds them, and any symbol is removed: “Order ID 2024-05” becomes order_id_2024_05. Beware of apostrophes, which are treated as a break, so “it’s a test” turns into it_s_a_test.

Check results against the naming rule of your project, since conventions differ on how to write acronyms and numbers. For file names, kebab-case and snake_case are the usual safe choices because they avoid spaces.

Clean up: extra spaces and trimming

Pasted text often carries double spaces, tabs and stray blanks at the start or end of lines. ‘Remove extra spaces’ turns every run of spaces and tabs into a single space and trims each line, keeping the line breaks. ‘Trim text’ is milder: it removes whitespace only at the very start and end of the whole text.

Run the clean-up before a case change when you are going to count or compare the text, since stray spaces change both. A common routine for a list is to clean spaces, convert the case, and then check the result with the Remove duplicate lines tool.

Questions and answers

How do I change uppercase to lowercase?

Paste the text into the box and click ‘lower case’. If you want a capital at the start of each sentence instead, click ‘Sentence case’.

Can I undo a case change?

Yes. ‘Undo’ steps back through up to 30 earlier states, so you can try several styles on the same text.

Why did Sentence case lowercase a name?

It lowercases all text first and only then adds capitals at sentence starts, so names and acronyms in the middle are not kept. Fix those by hand after converting.

Why did my Korean or Japanese text not change?

Those scripts have no capital letters, so there is nothing to convert. Latin letters in the same text still change.

Can I convert a list of names at once?

Yes. Put one name or phrase on each line and use a code style such as ‘snake_case’. Each line is converted on its own and the line breaks stay.

Is my text sent anywhere?

No. The conversion runs in your browser, and a copy is kept in this browser only so a refresh does not lose it.