code

code — noun

1. any system of signs, characters, or digits that lets people pass hidden meaning

1.nounB2
Definition

any system of signs, characters, or digits that lets people pass hidden meaning between one another, or present data in a condensed way

Example

The spy sent all messages in code so that enemy agents could not read them.

in code — using a secret communication system

Each item in the warehouse has a bar code that a scanner can read instantly.

bar code — product identification system

Common collocations
  • break a code
  • crack a code
  • Morse code
  • bar code
  • area code
  • in code
  • postal code
Synonyms
  • cipher

    specifically a method of transforming a message to hide its meaning; more technical than code

  • symbol system

    broader; refers to any set of symbols that convey meaning, not necessarily secret

Antonyms
  • plain text

    a message in its original, readable form before being put into code

Grammar Patterns

code + for + noun

in code

Usage Note

Countable for individual systems (a secret code, a bar code); uncountable when referring to the concept of using codes (information sent in code).

Common Mistakes

I forgot the code to open the safe' (when you mean PIN or combination).
I forgot the code that opens the safe.
'code' works for a sequence of numbers used to unlock something, but a 'PIN' or 'combination' is more specific for personal security devices.

2. a collection of written regulations that govern the behaviour of members inside

2.nounC1
Definition

a collection of written regulations that govern the behaviour of members inside a particular profession, organization, or country

Example

All doctors must follow the medical code of conduct when treating patients.

code of conduct — rules for professional behaviour

The company introduced a new dress code that requires formal wear from Monday to Thursday.

dress code — rules about what to wear

Common collocations
  • code of conduct
  • code of practice
  • dress code
  • building code
  • penal code
  • tax code
  • professional code
Synonyms
  • regulations

    more formal and specific; regulations are often enforceable by law

  • guidelines

    less strict than a code; guidelines are suggestions rather than binding rules

Grammar Patterns

code of + noun

code for + noun

Usage Note

Commonly followed by 'of' (code of conduct, code of practice) or used as a compound noun (dress code, building code, penal code). When referring to law, often used with 'the' + specific jurisdiction (the German civil code).

Common Mistakes

The school has a strict dressing code.
The school has a strict dress code.
The noun is 'dress code', not 'dressing code'.

3. a set of personal or social beliefs about what is right and wrong, which guides

3.nounB2
Definition

a set of personal or social beliefs about what is right and wrong, which guides how a person or a group behaves

Example

According to their moral code, telling a lie is never acceptable even when it helps.

moral code — personal beliefs about right and wrong

Honour is a central value in the samurai code of behaviour.

Common collocations
  • moral code
  • code of honour
  • code of ethics
  • personal code
  • unwritten code
Synonyms
  • ethics

    more formal and often refers to a philosophical system; 'code' is more personal and practical

  • principles

    broader; principles are fundamental beliefs that may form a code

Grammar Patterns

code of + noun

Usage Note

Unlike sense 2 (RULES), this sense refers to unwritten, often personal principles rather than official written regulations. Frequently appears with personal possessives (his code, their code) or in phrases like 'code of honour' and 'moral code'.

4. a set of instructions written in a programming language that tells a computer wh

4.nounB2
Definition

a set of instructions written in a programming language that tells a computer what operations to perform

Example

Theo spent the whole weekend writing code for his new mobile game.

writing code — creating computer programs

A small mistake in the code caused the website to show the wrong prices.

Common collocations
  • write code
  • lines of code
  • piece of code
  • source code
  • machine code
  • code base
  • run code
Synonyms

Grammar Patterns

write code

code + verb

Usage Note

Usually uncountable (the code, some code, lines of code) but countable when referring to a specific program or section (this piece of code, the code for the login page).

Common Mistakes

I need to learn how to coding.
I need to learn how to code.
'code' as a verb does not take '-ing' after 'how to'.

5. the complete set of biological instructions stored in DNA that gives a living th

5.nounB2
Definition

the complete set of biological instructions stored in DNA that gives a living thing its characteristics and controls how its body works

Example

Scientists have successfully mapped the entire genetic code of the wheat plant.

genetic code — the biological information in DNA

A tiny change in the genetic code can sometimes cause a serious medical condition.

Common collocations
  • genetic code
  • genetic code + verb (determine, control, produce)
  • human genetic code
Synonyms
  • genome

    refers to the entire set of genetic material, while 'genetic code' refers specifically to the rules by which it works

  • DNA sequence

    the specific order of chemical units in DNA

Grammar Patterns

genetic code

Usage Note

Almost always appears in the phrase 'genetic code' in biology. The term 'code' alone is rarely used in this sense without 'genetic' modifying it.

6. a particular variety of language used by a specific group of people, or a system

6.nounC1
Definition

a particular variety of language used by a specific group of people, or a system of words that only insiders understand

Example

The children created a secret code using made-up words that their parents could not follow.

Linguists are working to document the spoken code used by older members of the fishing community.

spoken code — a language variety used by a particular group

Common collocations
  • secret code
  • spoken code
  • code-switching
  • code of slang
Synonyms
  • dialect

    a regional variety of language with distinct grammar and vocabulary

  • argot

    the special vocabulary used by a particular group, often to exclude outsiders

Usage Note

This sense overlaps with the COMMUNICATION SYSTEM sense (sense 1) but focuses specifically on language and dialect varieties rather than secret or technical encoding. It is less common in everyday speech and appears mostly in linguistics or social commentary.

code — verb

Word family

  • coding
    nounB2
  • coded
    adjectiveB2
  • coder
    nounB2
  • codify
    verbC1
  • codification
    nounC1
  • encoder
    nounC1
  • decoder
    nounB2
  • decode
    verbB2

Synonym discussion

Sense: noun/1

Code and cipher are often used interchangeably in everyday English, but a 'code' replaces whole words or phrases with other words or symbols (e.g., 'Alpha' means 'A'), while a 'cipher' transforms messages letter by letter using an algorithm. 'Symbol system' is a much broader term that covers any set of symbols with agreed-upon meanings, such as traffic signs or musical notation — it does not carry the secrecy aspect that 'code' implies. 'Encoding' refers to the process of converting information from one form to another, which can be either secret or non-secret (for example, encoding audio into MP3 format). 'Cryptography' is the formal academic and technical field of designing secure communication systems. In practical use: 'The children invented their own code for passing notes in class' suggests a simple word-substitution system, whereas 'The mathematician developed a new cipher for military communications' implies a complex letter-level transformation.

ciphersymbol systemencodingcryptography

Common collocations

Nouns

  • code of conduct
  • code of practice
  • code of honour
  • source code
  • genetic code
  • dress code
  • bar code
  • area code
  • postal code
  • penal code
  • tax code
  • building code

Adverbs

  • secretly coded
  • genetically coded
  • digitally coded
  • carefully coded
  • specially coded

Phrases

  • in code
  • break a code
  • crack a code
  • write code
  • lines of code
  • code of behaviour
  • code of ethics

Prepositions

  • code for
  • code into
  • code as
  • code by
  • code in
  • code with

Etymology

LatinFrenchEnglish

The word 'code' entered English from French 'code' (meaning a set of laws), which came from Latin 'codex' — a book made of wooden writing tablets, later any legal text. The original Latin 'caudex' referred to a tree trunk or block of wood, which ancient Romans split into flat sheets for writing. Over centuries the meaning expanded: first from 'book of laws' to 'any system of rules' (18th century), then to 'a system of secret signals' (19th century, especially in military and telegraphy). The computing sense emerged in the 1940s-50s with the development of stored-program computers, and the genetic sense followed as biologists began to describe DNA's instructions as a 'code' in the 1960s.