Punch cards use a decimal-based encoding system, not binary, and are read by machines through either electrical contact or light sensors that detect holes punched into the card. Understanding how punch cards work provides foundational context for how early computers processed and interpreted data.
Punch Cards
You don't really need to know how to read punch cards or how they really work. One thing to note about punch cards is that they're not binary. If they were binary, we would have eight columns and we'd punch out a 1, 2, 4, 8, 16, those powers of two. But instead, what we see on here is a column of 0 through 9, and then we would punch out one of those 0 through 9. So there's 10 digits there, and this is actually a decimal system.
This card would be read into a machine, and then the machine would see these little punches along here and interpret that into the code for the computer. The primary two methods of reading a card are usually through electricity or through light.
The actual machine is going to look and operate a little differently than this, but this is going to get the point across. What we have here is this conductor, and I also have a probe right here, and when I press these two together it makes a complete circuit and will make a sound. So every time it makes that complete circuit, we're going to hear a sound.
What I have here is a punch card that I punched out holes into. What we could do then is either drag the card or drag the probe across these, and we're going to see that every time it makes a connection, it now sends that signal to the computer. So that's how it would read the different punches into this card.
Now let's look at how we would use light. What I have here is a laser, and then this is just something that's creating some vapor. This is representative of a photo sensor that would actually detect whether there's light or not, and that's how it's going to read the card. Every time the light shines through, that sensor is going to pick it up and realize that there's a hole there. We're going to drag it across here, and the card is either going to block or shine through one of those holes, creating a signal for the computer to read. So that is how it reads it through light.
Then we would have a number of these cards with all the different programming on the card that we'd feed into the machine to give it instructions.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →