PCB TOOLS / Electronics reference

PS/2 and AT keyboard pinout

Look up Data, Clock, +5V and return for 6-pin mini-DIN PS/2 and 5-pin DIN AT keyboards, including splitter exceptions.

Quick answer

PS/2: 1 Data, 3GND, 4VCC, 5 Clock; AT: 1 Clock, 2 Data, 4GND, 5VCC.

Scope

PS/2 pins 2/6 are normally reserved and repurposed only by specific splitters; AT/XT shapes do not guarantee protocol compatibility.Diagrams do not define mating/solder views.

Reading example

For Clock, AT pin 1 corresponds to PS/2 pin 5; matching numbers are not the mapping.

Legacy tables with visible corrections

PS/2 connector

PS/2six pins:data,clock,+5V,return and reserved
PS/2six pins:data,clock,+5V,return and reserved. Original functional list;not a verified mating/solder-side view,not to scale.
PS/2 and AT keyboard pinout table 1
PinNameDescription
1+DATAData
2N/CNot connected (*)
3GNDGround
4VCC+5V DC; archived 275mA is device-specific, not a universal ratingLegacy record: “+5V DC @ 275 mA”. The signal allocation does not mean every PS/2 device draws275mA.
5+CLKClock
6N/CNot connected (**)
PS/2 and AT keyboard pinout table 2
ColorDescription
PurpleKeyboard
GreenMouse

AT keyboard connector

AT5-pin DIN keyboard functions,not MIDI
AT5-pin DIN keyboard functions,not MIDI. Original functional list;not a verified mating/solder-side view,not to scale.
PS/2 and AT keyboard pinout table 3
PinNameDescription
1CLKClock signal
2DATAData
3N/CNot connected. Reset on older keyboards
4GNDGround
5VCC+5V DC
Legacy source notes and applicability

These notes retain the legacy record. For corrected facts and applicability, use this page’s quick answer, scope and visible table corrections.

PS/2 connector
(*) On some computers mouse data for splitter cable.
(**) On some computers mouse clock for splitter cable.
AT keyboard connector

Frequently asked questions

Does a passive PS/2-to-USB adapter work with every keyboard?

Only with a device supporting both protocols; otherwise an active converter is required.

Do purple/green colors prove the circuitry?

They are common keyboard/mouse labels; combined or unusual ports require the manual.

Related tools and references

Sources and verification

Legacy baseline: the Electrodoc Pro 5.2 data package. Raw records are retained and checked factual corrections are shown explicitly.