Data Representation

Binary Flipper

Click the bits below to toggle them between 0 and 1. Watch how the denary total changes!

128
64
32
16
8
4
2
1
Denary Value: 0

Hex & Nibble Splitter

A hex digit represents exactly 4 bits (a nibble). Toggle the bits to see how two hex digits make a full 8-bit byte.

8
4
2
1
Hex: 0
8
4
2
1
Hex: 0
Combined Hex: 00
Combined Denary: 0

Units of Data Storage

The byte is the smallest addressable unit of memory in a computer. Memory size is measured in multiples. A Kilobyte (KB) is 1,000 bytes. This scales up to Megabyte (MB), Gigabyte (GB), Terabyte (TB), and Petabyte (PB).

Sound & Metadata

Sound waves are analogue and have to be stored in a digital format as a series of binary numbers. The sample resolution (bit depth) is the number of bits used to store each sample. The sample rate is the frequency with which you record the amplitude of the sound, measured in Hertz.

Metadata is data about data. For sound files, metadata can include details such as the artist, track title, album, and duration.

Sound Size Calculator

3528000 Bits
(441000 Bytes / 441 KB)

Hexadecimal Rules

Hexadecimal (Base 16) uses letters A to F to represent the digits 10 to 15. Every 4 bits (a nibble) directly translates to a single hex digit. 1111 in binary is F in Hex.

Binary Shifts

If a binary number is shifted to the left this is equivalent to multiplying the number by 2 for each shift to the left. Shifting binary numbers to the right has the opposite effect i.e. each shift to the right has the affect of dividing by 2.

128
64
32
16
8
4
2
1
Denary Value:

Overflow Errors

The biggest number you can represent with 8 bits is 255. If you add two binary numbers together that result in a number bigger than 255, it will need 9 or more bits. A computer stores things in memory in a finite amount of space. If you cannot represent the number in that amount of space because it is too big, then overflow occurs.

  11111111 (255)
+ 00000001 (1)

1
9th Bit Overflow!
00000000 (256)

Images & Metadata

A vector graphic is made up of lines and shapes with specific properties. A bitmap image is broken down into very small elements called pixels. The number of bits used to store each pixel dictates how many colours an image can contain, referred to as the colour depth.

Metadata is data about data. For images, this often includes the file format, resolution (width x height), colour depth, device used to capture, date/time created, and author.

Image Size Calculator

1920000 Bits
(240000 Bytes / 240 KB)

Compression

Compression is used to reduce the amount of storage needed and allow a file to be transmitted in less time. Lossy compression is where files are compressed by removing some of the detail, which is used for images, audio, and video. Lossless compression means no data is lost, which is an essential factor for text and data files.

ASCII & Character Sets

Live Text to Binary Translator

Type any text below to see how a computer stores those characters in denary (ASCII code) and binary.

Common ASCII Values Cheat Sheet

In the exam, character codes are grouped and run in sequence. If 'A' is 65, 'B' is 66, and 'C' is 67.

'A' = 65'B' = 66'Z' = 90
'a' = 97'b' = 98'z' = 122
'0' = 48'1' = 49'9' = 57
Space = 32

Character Sets

Every time a character is typed on a keyboard a code number is transmitted to the computer. The basic ASCII codes use 7 bits for each character. This gives a total of 128 possible unique symbols.

Unicode is the new standard for representing the characters of all the languages of the world. 16-Bit Unicode uses twice as many bits per character as extended ASCII and can represent 65,536 unique characters.

Full 7-bit ASCII Table

DecHexBinChar

Base Converter

Revision Quiz

Quiz Settings

1286432168421
A=10B=11C=12D=13E=14F=15

Quiz Complete!