Punched Cards
Part of Data Storage
The 80-column Hollerith card — how the original machine-readable data medium worked and how to use it in a rebuilt computing environment.
Why This Matters
For sixty years — from the 1890s Census through the early 1980s transition to magnetic storage — punched cards were the dominant medium for entering programs and data into computers. An entire civilization of computing infrastructure was built around them: massive sorting machines, card readers, keypunches, and libraries of cards in filing cabinets representing the world’s data.
Cards have properties that remain genuinely valuable today. Each card is a discrete, independent unit of storage — you can pick it up, read it (if it is printed), reorder the stack, remove individual records, or add new ones. If you drop a sorted card deck, you can often re-sort it. You cannot corrupt a card by writing to the wrong address. A fire that destroys 10% of your cards destroys exactly 10% of your data — not all of it, as would happen with a head crash.
For rebuilders, punched card infrastructure can be constructed with mechanical workshop skills and no electronics whatsoever. A hand-operated card punch and a mechanical reader with light bulbs and photocells is a complete, functional data storage system. The barrier to entry is mechanical skill, not electronics knowledge — making it accessible earlier in the rebuild timeline.
The 80-Column Card: Anatomy
The standard IBM punched card measures 7-3/8 inches × 3-1/4 inches (187.3 × 82.6 mm). It is made from stiff card stock, slightly heavier than modern filing cards, with sufficient stiffness to run through high-speed mechanical equipment without jamming.
Orientation marks: The upper-left corner is notched, and the face is typically printed with column numbers and row labels. The convention is that the printed face is the “front” and the notch ensures cards can only be inserted in one orientation.
Column layout: 80 columns are numbered 1–80 from left to right. Each column is 2.34 mm wide. Within each column, 12 possible hole positions are arranged in rows.
Row layout: The 12 rows are numbered (from top to bottom): 12, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. The top two rows (12 and 11) are called “zone punch” rows; they extend above the digit rows in the card’s upper portion. The remaining rows (0–9) are the digit rows.
Hole dimensions: Each hole is 1.0 mm × 2.0 mm (or 0.055 × 0.125 inches in imperial) — slightly oblong, with the long dimension in the column direction.
Hollerith Code: Character Encoding
The mapping between hole patterns and characters is the Hollerith code, standardized in the 1920s–1930s:
Digits 0–9: A single hole in the corresponding digit row. 0 is a hole in the 0 row (third from top); 1 is a hole in the 1 row; etc.
Letters A–I: Zone punch in row 12, plus digit punch in rows 1–9 respectively. A = 12+1, B = 12+2, …, I = 12+9.
Letters J–R: Zone punch in row 11, plus digit punch in rows 1–9. J = 11+1, K = 11+2, …, R = 11+9.
Letters S–Z: Zone punch in row 0, plus digit punch in rows 2–9. S = 0+2, T = 0+3, …, Z = 0+9.
Special characters: Various combinations. For example: blank = no holes, / = 0+1, * = 11+4+8, ( = 12+5+8, ) = 11+5+8.
This encoding was designed for the 26 letters, 10 digits, and common punctuation — 64 characters total in the most common variant. Later extensions defined additional special characters for full ASCII.
The Keypunch Machine
A keypunch is a specialized typewriter that punches Hollerith codes into cards while optionally printing the character at the top of the column (for human readability).
Operation: The operator loads a blank card from a hopper. The card advances column by column to the right as each character is typed. The keyboard layout is similar to a typewriter: typing ‘A’ advances the card and punches a 12+1 hole pattern in the current column, then advances to column 2.
Common keypunch models:
- IBM 026: early keypunch, separate drum for programmed functions
- IBM 029: most common keypunch, built-in program unit, prints characters at card top
- IBM 129: electronic keypunch, can buffer and correct
Program unit: A metal drum wrapped with a punched control card that automates repeated operations — automatically skipping over certain fields, duplicating data from the previous card, converting numeric to alphabetic fields. This speeds up data entry when most cards follow a fixed format.
Verification: A separate verifier machine re-reads punched cards while the operator re-types the data. If the operator’s key matches the hole, nothing happens. If there is a discrepancy, the machine stops and notches the card’s top edge — indicating a questionable card that needs to be re-punched and verified.
Building a Minimal Card Punch
A hand-operated card punch for small volumes is mechanically feasible. The critical requirements:
Position registration: Cards must advance exactly 2.34 mm per column (or more precisely: the punch must land in the correct column position). A ratchet mechanism with 80 steps per card provides column-exact advancement. The ratchet wheel has 80 teeth; each pawl advance moves the card exactly one column.
Row selection: A vertical position selector chooses which of the 12 rows is punched. A row guide with 12 notched positions, held in place by a spring detent, sets the punch height.
Punch mechanism: A hardened steel pin, 1.0 × 2.0 mm, driven by a lever through a die plate. The die plate has a matching 1.0 × 2.0 mm hole. The card is sandwiched between the punch pin and the die. Pressing the lever drives the punch through the card and into the die, removing the chad (paper fragment).
Chad collection: A small tray below the die plate catches punched chad. Chad that is not collected jams mechanisms over time. The tray must be emptied regularly.
Typical production rate: A skilled operator using a hand punch can punch perhaps 5–10 cards per minute. For larger volumes, a mechanically powered keypunch with keyboard control is necessary.
Card Readers: Mechanical and Optical
Mechanical reading: A row of 12 metal pins (one per row) is pressed against the card surface. Pins that encounter holes pass through and make electrical contact with a conducting plate below the card. This closes a circuit, generating a signal. Column position is tracked by a rotating commutator synchronized with the card transport.
Mechanical readers are slower and more subject to wear than optical readers, but require no precision alignment of light sources. Common in early computing equipment (1940s–1960s).
Optical reading: A row of 12 photosensors (phototransistors or photodiodes) is positioned above or below the card path, with a matched light source on the opposite side. Light passes through holes and activates the corresponding photosensor. Electronics sample each photosensor as each column passes.
Optical readers are faster (no physical contact wear), more reliable, and easier to maintain. Common in later equipment (1960s onward). A simple optical reader needs only 12 photosensors and 12 amplifiers plus timing logic.
Modern construction: For a rebuilt card reader, an LED strip providing uniform illumination below the card path and a row of 12 phototransistors above is reliable and easy to construct. Use collimated LEDs to minimize optical crosstalk between adjacent columns. Process signals with a simple microcontroller that samples all 12 channels once per column period.
Sorting and Processing
One advantage of cards over tape: they can be mechanically sorted without electronics.
Card sorters: A card sorter reads one column of each card and routes it to one of 13 pockets (12 hole positions + blank = no hole). To sort a deck by a numeric field: run the deck through for the units column, then stack pocket 0 on top of pocket 1 … on top of pocket 9 and run through again for the tens column, etc. After as many passes as there are digits, the deck is sorted. This is a radix sort — provably optimal for fixed-width keys.
A simple mechanical card sorter can be built with a reading station (one photosensor column) and 13 pocket dividers controlled by a solenoid-actuated gate. Total: 1 photosensor, 13 solenoids, timing logic. Such a device can process 100–200 cards per minute for a single-column sort.
Practical Card Deck Management
Sequence numbers: Always punch a sequence number in columns 73–80 of each card. If the deck is dropped, you can re-sort it. Without sequence numbers, a dropped deck of 2,000 cards is extremely difficult to reconstruct.
Backups: Make duplicate decks of important programs. Cards can be duplicated on a card reproducer (a machine that reads one deck and punches a matching copy). Without a reproducer, hand-punching a duplicate deck is tedious but straightforward.
Storage: Store card decks in labelled boxes in a cool, dry environment. Rubber bands compress cards over time and cause feeding problems; use card boxes with snug-fitting covers instead. Keep decks horizontal to avoid cards warping under their own weight.
Identification marks: Mark the top of the deck (all cards fanned slightly) with a marker pen before filing. The mark creates a diagonal stripe across the card edges; any card out of sequence is immediately obvious by a break in the stripe.