Everything Is Just Data

One of the biggest unlocks for me as I was first learning programming and computer science was reframing the way I looked at computers.

Everyone’s first exposure to a computer is a desktop of some sort (or at least it used to be). The first iPhone went on sale in 2007 but widespread adoption took a while. Pew had smartphone ownership at 35% of American adults in 2011 and it didn’t pass half until 2013. My guess is that if you’re under 20 or so at the time of this post your first computer was a phone and if you’re between 20 and 30 it could have gone either way.

For desktop OS it will be Windows for most of the world, which still runs on about three quarters of desktops. Some people start on a Mac. Perhaps a very few enlightened people start on Linux? I wonder how that even happens, maybe you have a very cool family member. I’m not sure I’ve ever met anyone whose first computer was running a linux distro. Anyway, you get used to that environment and it trains you: A file is an icon and it feels like the file wouldn’t exist without the icon. A photo is a square in your gallery. The pictures in your browser live somewhere out on the internet and not on your device.

The unlock happens when you realize that the desktop is a graphical representation built for you, the user. So is the icon, so is….everything. What’s underneath is just data – zeros and ones sitting on a disk somewhere. Everyone “knows” what binary is, but knowing it and actually changing how you look at the machine are two different things.

Start with one word

Type the word Hello into a file and save it. Then ask the computer what is actually on the disk:

$ printf 'Hello' > hello.txt
$ od -An -tu1 hello.txt
72 101 108 108 111

There is no H in that file. There are five numbers. Your text editor draws 72 as an H because that is the agreement for text: 72 is H, 101 is e, 108 is l, 111 is o. od is an old Unix tool that shows you the raw numbers in a file instead of drawing them as text. The flags just tidy it up: -An hides the position counter, and -tu1 says show me every byte as a normal number.

Hand the first three of those numbers to a paint program and it draws one dull blue greyish pixel, because the agreement there is how much red, green and blue to mix. The numbers didn’t change, the program reading them decided what you (the user) sees.

Now comes the part that trips people up: if you type the number 72 into a file, you don’t get an H:

$ printf '72' > number.txt
$ od -An -tu1 number.txt
55 50

You typed two characters, a 7 and a 2, and characters are stored as numbers too. The 7 is stored as 55 and the 2 is stored as 50. So the file holds two numbers and neither of them is 72. To get the number 72 on the disk you type the letter H:

$ printf 'H' > letter.txt
$ od -An -tu1 letter.txt
72

So where are the zeros and ones? Here is that Hello file again, four times:

$ cat hello.txt
Hello
$ xxd -b hello.txt
01001000 01100101 01101100 01101100 01101111
$ od -An -tu1 hello.txt
72 101 108 108 111
$ od -An -tx1 hello.txt
48 65 6c 6c 6f

Same file, same data. The first is a program drawing it as text for you. The second is what is actually on the disk. The last two are just shorter ways for a human to write that down.

The computer only ever uses the zeros and ones. That’s how the data sits on the disk, how it sits in memory (RAM) while a program is using it, and how it travels over the network. Decimal and hex exist for humans, because humans cannot realistically read binary for long. Five letters took 40 digits.

Programmers mostly use hex because it’s the shortest. Every byte is exactly two characters, so the H that takes eight digits in binary (01001000) is just 48. Why is it 48? You split the eight binary digits into two groups of four, and each group becomes one hex digit:

0100 1000
4 8

0100 in binary is 4, and 1000 in binary is 8. Write them side by side and you get 48.

That is the entire idea. A file is just a long list of numbers with a name on it. Every icon, window, and picture you have ever looked at is a program reading numbers and drawing something for you.

The web works the same way

Right click any web page and choose View Page Source. That wall of text is what the server sent. Your browser read it and drew the page you were looking at. The pictures on the page are files your browser already downloaded to your device, because it can’t draw something it doesn’t have.

You don’t actually need a browser either. This is me asking example.com for its home page by simply printing out the some text in the form of a request and piping it into netcat, which is just a utility for making connections.

$ (printf 'GET / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n'; sleep 3) | nc example.com 80
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
...
<!doctype html><html lang=en><head>...<title>Example Domain</title>...

I sent three lines of text and got text back. HTTP was designed to be human-readable – so this works. People call this the “client-server model” and it sounds complicated, but that’s really all it is. One side asks for data, the other side sends it, and the side that asked decides what to draw. Your browser, whether on your phone or computer, does this tens of thousands of times a day behind the scenes when you scroll tikok or instagram.

That’s the “front end” – the half meant for you that you can see.

The back end

Now let’s think about the other half: every photo and video you have ever seen on the web is sitting on a server somewhere, and the vast majority of those servers run Linux with no desktop at all. Here is a video on a Linux web server:

$ ls -lh clip.mp4
-rw-r--r-- 1 501 root 465K Nov 22 04:24 clip.mp4
$ file clip.mp4
clip.mp4: ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]
$ xxd clip.mp4 | head -1
00000000: 0000 0020 6674 7970 6973 6f6d 0000 0200 ... ftypisom....

I can see how big it is. I can ask what kind of file it is. I can look at the raw numbers in it, and the ftyp in there is the same thing as the Hello from earlier – four numbers that happen to read as letters. I can move it to another folder and it’s still the same file:

$ mv clip.mp4 videos/

What I can’t do is watch it.

$ vlc videos/clip.mp4
bash: vlc: command not found

There is no video player on that machine and no screen to play it on, yet it serves that video to anyone who asks:

$ tail -1 /var/log/nginx/access.log
127.0.0.1 - - [22/Nov/2026:04:24:21 +0000] "GET /videos/clip.mp4 HTTP/1.1" 200 475339 "-" "curl/8.14.1"

Somebody asked for the video and the server sent all 475,339 bytes of it. It never played a single frame of it, nor does it have any idea what’s in the video. It read numbers off a disk and sent them down the wire and the watching happened on the other end. A server does that all day long for millions of people without ever opening a file the way you do on a desktop.

Why this is important

Every website, message, app, photo, and video on the internet is zeros and ones sitting on a disk in some machine somewhere. It might be in a data center, or it might be on a computer in somebody’s house. There is no “cloud” floating above all that – just other people’s computers holding data and sending it when asked.

It might be actually impossible to run servers or anything at scale without making this distinction. When you have thousands of machines with no screens, you write programs that read data and write data, and that works because it was all only ever data.

This is also a big part of my job in security. The server can’t see your browser so it can’t tell the difference between the nice form with the greyed out button and me typing a request by hand like I did above. That’s why checks that only happen in the browser can be bypassed. Attackers & cybersecurity professionals understand this instinctively – they don’t see a UI, they think about how it works underneath.

Next time you’re staring at a screen, maybe even the one you’re reading this post on, think about what’s actually happening underneath it. What data is being sent around, where it’s coming from, and what program is turning it into something you can see and interact with.

Once you start thinking about computers this way, a lot of things that seemed complicated start making sense.