Dictionary entry

camel case

noun

Last updated

UK/ˈkæməl keɪs/
US/ˈkæməl keɪs/

Meanings

  1. noununcountablecomputing

    A way of writing several words joined together with no spaces, where each word after the first begins with a capital letter.

    Grammar: Used without 'a' or 'the' when talking about the style in general: written in camel case.

    Patterns

    • in camel case
    • write something in camel case
    • use camel case

    The variable name userName is written in camel case.

    Web developers often use camel case for JavaScript functions like getElementById.

    In camel case, the first letter of the whole name is usually lowercase.

  2. nouncountablecomputing

    A specific word or name written in this joined-up style, with capitals marking the start of each part.

    Grammar: Can be countable when referring to one particular instance: a camel case like 'iPhone'.

    Patterns

    • a camel case
    • camel case names

    The brand name 'YouTube' is a well-known camel case.

    When you create a new file, choose a camel case for the filename.

Common combinations

in camel case
Please write all class names in camel case.
camel case notation
The style guide recommends camel case notation for methods.
convert to camel case
The tool can convert your text to camel case automatically.
camel case variable
Name the camel case variable starting with a lowercase letter.

Synonyms and how they differ

mixed case
A broader term for any text that mixes upper- and lowercase letters, not necessarily joined words.
Pascal case
Similar, but every word including the first starts with a capital, as in 'PowerPoint'.

Opposites

snake casekebab case

Commonly confused: camel case or snake case? camel case or title case?

camel case vs snake case

Snake case joins words with underscores, like 'user_name', while camel case uses capitals and no separators.

camel case vs title case

Title case capitalizes each word but keeps spaces, as in 'The Lord of the Rings'.

Practice

Which of these identifiers is written in camel case?

Make it your own

Write a sentence using “camel case”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words