JIANA ZHILIAN Circular Connectors · Dongguan, China
Selection guides

M8 or M12: Choosing a Sensor Connector by Current and Space

Both are threaded, both are IP67, and both are A-coded with the same pin numbering. The decision comes down to current, cable diameter and how much room the housing leaves you.

5 min read

M8 and M12 sensor connectors do the same job at different scales. Both carry supply and one switched output, both use gold-plated contacts and a moulded strain relief, and both seal to IP67. The choice is rarely about “quality”.

The numbers that differ

M5 M8 M12
Coupling thread M5×0.5 M8×1 M12×1
Contact diameter 0.5 mm 1.0 mm 1.0 mm
Contacts 3–4 3, 4, 6, 8 3–8, 12, 17
Rated current 1 A 4 A 4 A (4-pin) / 2 A (5-pin)
Typical cable OD 2.5–3.5 mm 4.0–5.2 mm 5.9–6.5 mm
Standard — IEC 61076-2-104 IEC 61076-2-101

Pick M8 when

The sensor housing is small — miniature photoelectric heads, gripper fingers, probe tips — and the cable has to leave through a tight radius. An M12 body plus its 6 mm cable will not physically fit some of these.

An M8 also wins on cost at volume, because the shell is smaller and the cable carries four 0.25 mm² conductors instead of five.

Pick M12 when

You need the 4 A rating on a 4-pin part, or you need IO-Link. IO-Link runs at 230.4 kbit/s, and although M8-A 4-pin is electrically capable of it, the installed base of IO-Link masters is overwhelmingly M12. If the plant standard is M12, adding an M8 device means stocking an adapter cable forever.

The M8 trap: 3-pin cable on a 4-pin socket

M8 A-coded is one interface with 3, 4, 6 or 8 positions and they all mate. A 3-pin cable on a 4-pin IO-Link socket will seal and power up, but the device drops back to standard I/O mode and the diagnostic data never arrives. Nothing looks wrong at commissioning; the maintenance team just never gets the benefit.

M5 is a different problem

M5 is not a smaller M8 — it is a separate standard with 0.5 mm contacts on a 0.5 mm pitch, rated 1 A. It exists for sensors that genuinely will not fit an M8. Do not use it to save money: the cycle life and the contact force are both lower, and the cable is too small to pull through a conduit.

A specification you can send

M8 A-coded, 4-pin, IEC 61076-2-104, IP67 mated, 60 V / 4 A, 2 m PUR cable, straight body, 3 × 0.25 mm² + 1 signal

That contains the coding, the standard, the rating and the cable — which is the minimum needed to get a comparable quote from two suppliers.

Need this built to your drawing?

Send the drawing, the gauge and the annual volume — we quote within one working day and sign an NDA before drawings change hands.

Request a quotation

← All technical notes