Blog
M12 Connectors Explained: Why Industry Uses Them
Teguar Editorial Team · April 13, 2026
Look at the ports on a rugged or washdown computer and you'll often see circular, threaded connectors instead of the familiar RJ45 and USB. Those are M12 connectors, and they exist because consumer plugs simply don't survive vibration, moisture and dust. This guide explains M12, its coding types, and where it fits.
A friction-fit RJ45 or USB plug is fine on a desk and hopeless on a machine — it shakes loose, lets water in, and corrodes. Industrial connectivity solved this decades ago with the M12: a compact, threaded, sealed circular connector that stays mated and keeps the environment out. Understanding its coding types is the key to specifying the right ones.
Key takeaways
- M12 is a 12 mm threaded circular connector that locks in place and seals to IP67/IP68/IP69K, unlike friction-fit consumer plugs.
- Different 'codings' carry different signals: A-coding for sensors/power/DC, D-coding for Fast Ethernet, X-coding for Gigabit+.
- The threaded coupling resists vibration and the seal keeps out dust and water — essential for rugged and washdown use.
- Match the coding and pin count to the signal, and confirm the mating cables are the same coding.
Why M12 instead of RJ45 or USB
Two failures kill consumer connectors in industry: they vibrate loose, causing intermittent, maddening faults, and they let the environment in, corroding contacts. M12 answers both with a threaded coupling that stays firmly mated under constant vibration and a circular seal that achieves IP67, IP68 or even IP69K. That's why rugged, in-vehicle and washdown computers route their power, Ethernet and I/O through M12.
The coding types
The classic coding for sensors, actuators, DC power and general signals. Common pin counts (3-8 pins) suit power and I/O. If you're wiring field devices or DC power to a rugged PC, it's usually A-coded.
Designed for Fast Ethernet (up to 100 Mbps) over 4 pins — the rugged equivalent of an RJ45 for industrial networks that don't need gigabit.
The modern choice for Gigabit Ethernet and beyond (up to 10 Gbps) over 8 pins with shielding — used for high-speed industrial networking, machine-vision cameras and PoE runs.
Coding isn't just electrical — the keying is physical, so an X-coded plug won't mate with a D-coded socket. That's deliberate: it prevents plugging Ethernet into power. Always match the connector coding on both the device and the cable.
How to specify
The bottom line
M12 connectors are how industrial computers stay connected where consumer plugs fail — threaded to resist vibration and sealed to keep out dust and water. Learn the codings (A for power/sensors, D for Fast Ethernet, X for Gigabit and vision), match them to your signals and IP rating, and use proper cordsets. They pair naturally with the rest of an industrial I/O design. Browse rugged industrial computers like the TB-4845-DIN.
Frequently asked questions
What is an M12 connector?
A 12 mm threaded circular connector used in industrial equipment. It locks in place to resist vibration and seals to IP67/IP68/IP69K, unlike friction-fit consumer connectors like RJ45 and USB.
What are M12 coding types?
Codings define which signals a connector carries and are physically keyed: A-coding for sensors, actuators and DC power; D-coding for Fast Ethernet (100 Mbps); and X-coding for Gigabit Ethernet and beyond (up to 10 Gbps).
Why does industry use M12 instead of RJ45?
Because RJ45 and USB shake loose under vibration and let dust and water in. M12's threaded coupling stays mated and its circular seal keeps the environment out, which is essential for rugged and washdown computers.
What is the difference between D-coded and X-coded M12?
D-coded M12 carries Fast Ethernet (up to 100 Mbps) over 4 pins, while X-coded M12 carries Gigabit Ethernet and higher (up to 10 Gbps) over 8 shielded pins. Use X-coding for gigabit networks, PoE and machine-vision cameras.
Can I mix M12 coding types?
No. Codings are physically keyed so, for example, an X-coded plug won't mate with a D-coded socket. This prevents connecting the wrong signal, so you must match the coding on both the device and the cable.