
Computers represent text, images, sound, and video as bit patterns. A format tells software how to interpret those patterns. Communication then moves that encoded information from one place to another.
1. Representing information
Digital circuits use ranges of physical signals to represent discrete values, commonly 0 and 1. A bit is one binary digit. A byte is eight bits and can represent 256 distinct patterns. The meaning depends on context: the same pattern might be a number, part of a character, or a component of a color.

Multiply bytes by 8 to get bits, and divide bits by 8 to get bytes. For example, 128 bits occupy 16 bytes. An unsigned sequence of n bits can represent integers from 0 to 2ⁿ − 1. See the computing units lesson for larger amounts.
2. Number systems and conversions
| System | Base | Digits | Example for decimal 26 |
|---|---|---|---|
| Decimal | 10 | 0–9 | 26 |
| Binary | 2 | 0–1 | 11010 |
| Octal | 8 | 0–7 | 32 |
| Hexadecimal | 16 | 0–9 and A–F | 1A |
2.1. Positional notation
A digit’s position determines its weight. In decimal, 324 equals 3×10² + 2×10 + 4. In binary, 11010 equals 1×16 + 1×8 + 0×4 + 1×2 + 0×1 = 26.
2.2. Converting between bases
- Binary to octal: group bits in threes from the right, padding with leading zeros as needed. For 11010, use 011 010, which is octal 32.
- Binary to hexadecimal: group bits in fours. 0001 1010 gives hexadecimal 1A. To reverse either conversion, replace each digit with its three- or four-bit group.
- Decimal to another base: repeatedly divide by the target base and read the remainders in reverse. For 26 in base 16, quotient 1 and remainder 10 give 1A.
- Back to decimal: multiply each digit by its positional weight and add. Octal 32 is 3×8 + 2 = 26.

Use a calculator’s programmer mode to check your conversions after working through them by hand.
3. Alphanumeric characters
A character encoding maps text to numeric values and bytes. A homemade two-bit code could assign 00 to A, 01 to B, 10 to C, and 11 to D. That only works when both sides agree on the mapping.
In ASCII, uppercase A is decimal 65, or 0x41. Unicode assigns characters code points, such as U+0041. UTF-8 represents that code point with one byte, 0x41, and represents other characters with sequences of up to four bytes per code point. A displayed symbol can include more than one code point.
4. Images
4.1. Raster images
A raster stores a grid of pixels. Width and height describe the number of pixels; bit depth determines how much information is stored for each pixel. A 100 × 100 image with 24 bits per pixel takes 30,000 raw bytes before headers or compression.
4.2. Vector images
A vector image describes geometry, such as points, paths, and fills. You can usually scale the drawing without losing edge detail. SVG is common for icons, diagrams, and logos.
4.3. Choosing an image format
Use a raster format for photos and other pixel-based images. Lossless formats preserve pixel values; lossy formats trade some detail for a smaller file. Vector formats suit illustrations that can be described with shapes.
5. Sound
To digitize sound, sample the signal at regular intervals and quantize each measurement. Sample rate, bit depth, and channel count determine the raw data rate. Stereo PCM at 44,100 samples per second and 16 bits per sample uses 1,411,200 bits per second before overhead or compression.
6. Video
Video stores a sequence of frames, often with audio. Resolution, frame rate, and color representation affect the amount of data. Codecs compress it, while a container holds the streams and associated metadata.
7. Communicating information

A sender encodes a message and sends it through a channel. A receiver decodes the signal using a compatible code or protocol. Noise or interference can corrupt the signal, so a system may detect errors or ask for retransmission. Both ends must agree on how to interpret the message.

8. Information in quantum computing
A qubit is a quantum system whose state can be a superposition of basis states. Measuring it in the computational basis yields a classical bit. Quantum algorithms manipulate amplitudes so interference affects the probability of useful results. This differs from storing a classical bit as either 0 or 1.
9. Data transfer over buses
A bus or interconnect moves information between components. The architecture must convey values, the intended location or device, and control information. Some designs send several signals in parallel; others transmit serialized data over independent lanes or links.
10. Practice exercises
- Convert binary 101101 to decimal, octal, and hexadecimal.
- True or false: a byte and a bit are equivalent, and octal uses the digits 0 through 7.
- Complete the sentence: Unicode defines character ______ and UTF-8 represents them as ______.
- Match each term to its use: pixels, paths, sampling rate, and frame rate.
- Calculate the raw payload of a 640 × 480 image with 24 bits per pixel.
Show the answers
- 45 decimal, 55 octal, 2D hexadecimal.
- The first statement is false and the second is true.
- Code points and bytes.
- Raster images, vector images, sound, and video, respectively.
- 640 × 480 × 3 = 921,600 bytes.