CamelCase

Updated: 12/31/2022 by Computer Hope
CamelCase and other examples

Alternatively known as bicapitalisation, bicapitalization, InterCaps, medial capitals, and Pascal case, CamelCase describes a compound word with capital letters to delimit the word parts. The name refers to the internal capital letters, which resemble the humps on a camel's back. For example, ComputerHope, FedEx, and WordPerfect are all examples of CamelCase. With computer programming, CamelCase is used as a naming convention for variables, arrays, and other elements. For example, $MyVariable is an example of a variable that uses CamelCase.

Examples of CamelCase computer words

The following list has examples of CamelCase (UpperCamelCase) computer-related words in alphabetical order. The following words are either company names or brand names.

What is lowerCamelCase?

Words that begin with a lowercase letter followed by a capital letter (e.g., iPhone) are considered lowerCamelCase words. Below is a list of examples of lowerCamelCase computer-related words in alphabetical order. The following words are either company names or brand names.

Do you capitalize a lowerCamelCase letter at the beginning of a sentence?

When writing a sentence, lowerCamelCase words like "iPad" should be avoided as the first word in a sentence. However, when it cannot be avoided, follow the rules of the style guide you use in your writing. For example, The Associated Press Stylebook mentions capitalizing the first letter of a lowerCamelCase word at the beginning of a sentence. However, the Chicago Manual of Style mentions brand names and company names starting with a lowercase letter should remain lowercase even at the beginning of a sentence.

Computer Hope always tries to re-word any sentence beginning with a lowerCamelCase. However, when it's not possible, it keeps the lowercase letter in the lowerCamelCase word even when it's at the beginning of a sentence.

How to convert text into CamelCase

Converting text to CamelCase is possible using a single regular expression, as shown in the Perl example below.

my $camelcase = "This is a test";
$camelcase =~ s/ ([a-z])/\u$1/g;

The example above converts the text This is a test to ThisIsATest.

Use the conversion tool below to convert any text to CamelCase and other forms of converted text.

Conversion tool


Pascal, Programming terms, Typography terms, Underscore