---
title: "An Agreed Code: How the Same Bits Mean Letters or Colours"
description: "A pattern of bits means nothing on its own. It becomes a letter, a colour or a note only because a code says so, and both ends have to be using the same code."
canonical: https://lightmysky.com/learn/computing/an-agreed-code-how-the-same-bits-mean-letters-or-colours-mt_IQY-PHtZVZ
source: https://lightmysky.com/learn/computing/an-agreed-code-how-the-same-bits-mean-letters-or-colours-mt_IQY-PHtZVZ.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# An Agreed Code: How the Same Bits Mean Letters or Colours

A pattern of bits means nothing on its own. It becomes a letter, a colour or a note only because a code says so, and both ends have to be using the same code.

Subject: Computing · Area: Computing Fundamentals · Ages 12 to 13
Page: https://lightmysky.com/learn/computing/an-agreed-code-how-the-same-bits-mean-letters-or-colours-mt_IQY-PHtZVZ

## Ready when they can

- Invent a code for a small set of symbols and use it to send a short message to someone holding the same code
- Show what comes out when the two ends use different codes for the same bits
- Give two things the same bit pattern could stand for in two different files

## Lesson: Both ends must use the same code

A pattern of bits means nothing on its own. It becomes a letter, a colour, or a note only because a code says so. Both ends must use the same code, or the message scrambles.

**Example.** One computer sends the bits 01001000 01101001, and a friend reading them with the letter code sees Hi. Another computer reads the same bits with a number code and gets 18537. Same bits, two meanings, because the codes differ.

**Example.** You and a friend can invent a code for a few symbols and swap messages with it. If you shift every letter one step forward, Hi becomes Ij. Your friend decodes it only because she holds the same rule.

**Tip.** When a message looks like nonsense, suspect a code mismatch before you blame the sender. Ask which code each end used. The same eight bits can be a letter in one file and a shade of grey in another.

**Recap.** Bits borrow meaning from a shared code, so matching codes at both ends keeps messages clear.

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Why a Computer Works with Only Two Symbols](https://lightmysky.com/learn/computing/why-a-computer-works-with-only-two-symbols-mt_r0wLIjpi5R)

## Opens up

- [Character Sets: Storing Text as Numbers](https://lightmysky.com/learn/computing/character-sets-storing-text-as-numbers-mt_839VNNZlp2)
- [Spotting a Mistake in Stored or Sent Data](https://lightmysky.com/learn/computing/spotting-a-mistake-in-stored-or-sent-data-mt_wKwax55eo-)
