Case Converter

0 Characters0 Words0 Lines
For writing
For code

Which case should I use?

Sentence case is for ordinary writing: a capital at the start of each sentence, and nothing else. Title Case is for headings, book names and email subjects. UPPER CASE is for acronyms and the odd warning, and lower case is for tags, usernames and search words. Capitalized Case puts a capital on every word without exception.

The “for code” row is for names in a program. camelCase and PascalCase are the habit in JavaScript, Java and C#, snake_case in Python and in database columns, kebab-case in web addresses, file names and CSS, CONSTANT_CASE for fixed values, and dot.case for settings keys. A name already in one of these styles is split correctly, so userFirstName becomes user_first_name and HTMLParser becomes html_parser.

What does Title Case do with little words?

It leaves short words such as a, an, the, and, but, or, for, of, in, on, at, by and to in lower case, unless they come first or last, or straight after a colon. So “the lord of the rings: the return of the king” becomes “The Lord of the Rings: The Return of the King”. Style guides differ on the small print, and some capitalise words of four letters or more, so read a formal title once before you send it.

Will it spoil NASA or London?

No. Sentence, Title and Capitalized case first make everything small and then put back the capitals that a short built-in list knows: common acronyms such as NASA, USA, PDF and HTML, the days of the week, most months, and a few well-known countries and cities. A single “i” becomes “I”, also in i’m and i’ll. A name that is not on the list will become small, so give those a quick look.

Can I change only part of the text?

Yes. Select the words you want and press a case: only the selection changes. If something goes wrong, Undo puts back the text as it was, even after several changes. Text in any alphabet works, and scripts without capitals, such as Hindi, Arabic and Chinese, are left alone. Everything happens in your browser and nothing is sent anywhere.