Introduction
Data representation in computers is essential to today’s society, as computers are used for communication, education, commerce and even for research. Whilst computers can ‘read’ text, pictures, audio and video, they manipulate this data by translating it into digital binary code (which comprises 0s and 1s). Electronic devices can then store and analyse this code and send it along electronically.
Computers have various ways of translating information so that it can be analysed and stored. Data representation in computers is important because computer science, programming and information technology all benefit from an understanding of how digital information is processed and stored. This includes knowledge of binary code, as well as of bytes, bits and data size. Furthermore, computers have distinct ways of translating text, pictures, audio and video data into digital code, which can then be shared between devices through computer networks.
What is Data Representation?
Computers have various techniques to translate information into digital form. All computer functions are based around data being translated into binary code. For instance, when computers are viewing information, analysing numbers or listening to audio, the information will first need to be translated so that it can be accessed in digital form.
Whilst there are differing ways of translating information, all digital data is in fact translated into binary. Information can be translated in a variety of ways. Text is translated using character encoding; pictures using pixels and colour coding; audio using digital sampling; and video using a series of still images, including data representation in computers.
Understanding Binary Code
Binary code is integral to digital computers. Unlike our decimal number system, which includes the digits 0-9, the binary system only includes 0 and 1. As its name suggests, it is based upon the number 2 and therefore each digit is a power of 2. Computers can recognise and analyse information effectively using binary as electronic components can easily recognise two simple states.
Binary 1011 is equivalent to 11 in decimal. This is worked out as (1 x 8) + (0 x 4) + (1 x 2) + (1 x 1). Computers can also complete mathematical functions such as addition, subtraction, multiplication and division using binary code.
Bits and Bytes
A bit is the most basic unit of digital data and corresponds to a single 0 or 1. Groups of bits can then be used to translate further information. For instance, there are 4 combinations of 2 bits and 256 combinations of 8 bits.
Eight bits make up a byte and this is often used to quantify data. Text, images, programmes and videos all have varying data sizes and are all quantified in bytes. Having an understanding of bits and bytes is helpful in comprehending how computers store and analyse data.
Kilobytes, Megabytes, Gigabytes and Terabytes
Computer data is quantified in a range of units, such as kilobytes, megabytes, gigabytes and terabytes. This helps us to appreciate how much data can be held on devices such as smartphones, laptops, memory sticks and external hard drives.
Typically, data can be quantified both in decimal and in binary. Whereas decimal operates in units of 1,000, the binary system is based on units of 1,024. Consequently, there can sometimes be a slight variance between the data size that appears on a computer and that which is advertised for a given device.
Kilobytes (KB)
A kilobyte is a relatively small data quantity. Under the decimal system, one kilobyte is equal to 1,000 bytes. A kilobyte is equal to 1,024 bytes. Kilobytes are often used to quantify data for small text, settings and data items.
Megabytes (MB)
One megabyte is equal to 1,000 kilobytes. This is often used to quantify photographic, audio and smaller programme information. Depending on the level of detail and compression, a smartphone photo for instance can take up numerous megabytes of data.
Gigabytes (GB)
One gigabyte is equal to 1,000 megabytes. This is often used to quantify smartphone, laptop and programme data holding. Many contemporary devices typically have 128GB, 256GB or 512GB of data storage.
Terabytes (TB)
One terabyte is equal to 1,000 gigabytes. Terabytes are often utilized for external hard drives, as well as for computer and corporate data storage. Companies and research bodies utilise terabytes to store extensive information such as paperwork, and databases and back-ups.
Binary, Decimal and Hexadecimal Number Systems
There are a variety of number systems that computers and programmers use to quantify information. These include the binary, decimal and hexadecimal number systems. Although these number systems utilise different symbols, they can all be used to quantify information in similar ways.
Decimal 255 is translated to 11111111 in binary and FF in hexadecimal. Binary is particularly important within computer hardware. Decimal is also widely recognised. Hexadecimal is furthermore advantageous as it can simplify the analysis of lengthy binary data strings.
Decimal Number System
We commonly apply the decimal number system for counting and quantitative analysis. Based on the number 10, each digit relates to a power of 10. For example, 345 comprises 3 hundreds, 4 tens and 5 units. As decimal is often readily understood by people, computers frequently present data in this format.
Binary Number System
Based on the number 2, the binary number system is crucial for computer functioning. Each digit relates to a power of 2. For instance, binary 1101 equates to 13 in decimal as the relevant powers of 2 (8, 4 and 1) are activated.
As well as quantifying numerical information, computers also utilise the binary number system to analyse text, images, audio and video. Hence, all types of information can effectively be analysed using a uniform system.
Hexadecimal Number System
Working off the number 16, hexadecimal utilises 16 different symbols (0-9 and A-F). Each hexadecimal digit correlates to 4 binary digits and thus can facilitate easier analysis of binary data strings.
Hexadecimal is often applied in programming, computer memory and web design. For example, #FF0000 is the hexadecimal code for the colour red within the RGB colour quantification system.
Computer Data Translation – Text
Computers allocate numerical codes to text, numerals, punctuation and symbols. As computers analyse data in binary form, each character must be given a numerical code so that it can be digitally analysed. Character encoding systems set out how characters can be translated into numerical data.
ASCII and Unicode are two key character encoding systems. Originally, ASCII allocated 7 bits to quantify 128 characters including English letters, numerals and punctuation. Unicode can quantify characters from a wide range of languages. UTF-8 is a popular character encoding system that translates Unicode characters into data strings comprising 1 to 4 bytes.
Computer Data Translation – Images

Images can be analysed by computers by splitting them into minute picture elements known as pixels. Pixels include data regarding colour and luminosity and together, millions of pixels can be used to form images and graphics. Both an image’s pixel quantity and its colour depth affect its data size.
Generally, the RGB colour quantification system is used. This is based on the combination of red, green and blue. Within this system, there are variable levels of intensity for each of the three colour components and so computers can analyse data to generate a huge array of colours. Different data translation and compression techniques are used for image files such as JPEG, PNG and WebP.
Image Pixel Quantity and Colour Depth
Pixel quantity refers to the number of pixels in an image. For example, an image which is 1920 x 1080 in size will comprise of 2,073,600 pixels. Typically, greater pixel quantities result in more detailed images but also increase data size.
Colour depth concerns how many bits of data are allocated to analyse a pixel’s colour. If an RGB image allocates 8 bits of data to each of the red, green and blue colour components then 24 bits of data are allocated to each pixel. This facilitates the generation of around 16.7 million colour variations.
Computer Data Translation – Audio
Computers analyse audio by translating sound waves into numerical data. Sound is analysed at regular intervals and then digital samples are generated. The rate at which audio is analysed is known as the sampling rate. Bit depth relates to how many bits of data are allocated to each sample.
For music, a typical sampling rate is 44.1kHz. This equates to 44,100 samples being analysed per second. Similar to image files, there are various data translation techniques for audio files such as MP3, AAC, WAV and FLAC. Some of these utilise compression to decrease data size whereas others retain a greater level of original information.
Computer Data Translation – Video
Digital video comprises a sequence of still images, known as frames. These are shown in quick succession to create the illusion of motion. Alongside pixel data, video files can also incorporate audio and time data. Frame rate is the amount of frames which are shown every second and is measured in frames per second (FPS).
As video files often include both image and audio data, they can be quite large. Compression techniques such as H.264, H.265 and AV1 enable data files to be made smaller without significantly affecting their quality. These are especially beneficial for online video streaming, video sharing and digital entertainment.
Importance of Data Representation
Alongside providing a unifying basis for computer systems, programmes and digital technology, data representation in computers facilitates data storage, sharing and analysis. For instance, smartphone photographs can effectively be shared on laptops as both devices can analyse photographic data in similar formats. These processes also depend on input, processing, output and storage, which enable computers to receive, process, display and preserve digital information.
Furthermore, data representation is significant within areas such as artificial intelligence, cyber security, cloud computing and research. Artificial intelligence analyses data in numerical form. Cyber security analysts analyse binary data to investigate computer systems. Additionally, businesses use digital data to handle business processes, as well as to analyse customers’ data.
Conclusion

Data representation is highly important in computer science as it clarifies how computers translate information into digital data. Binary code is central to this, with bits and bytes forming the basic data units. Kilobytes, megabytes, gigabytes and terabytes are further data size units. In addition, binary, decimal and hexadecimal are alternative data quantification systems.
Computers analyse text using character encoding, pictures by analysing pixels, audio by translating it into digital samples and video by analysing a sequence of frames. Therefore, diverse information can be analysed in a uniform manner based on binary data. Having an appreciation of data representation is extremely beneficial for those wishing to engage in computer programming, computer hardware analysis and/or digital technology investigation.



