
An M8 circular connector is a sealed compact connector built around an 8 mm locking interface. It is widely used for sensors, actuators, compact I/O wiring, and small industrial devices where space is limited but the connection still needs to resist vibration, dust, and moisture. Most M8 connectors use 3, 4, 5, 6, or 8 pins, and many industrial versions are rated IP67 or IP68 when properly mated.
The name “M8” tells you the shell size, but it does not tell you the whole specification. Two M8 connectors can look similar while using different coding, pinouts, current ratings, mounting styles, and application limits. For most M8 circular connector projects, the right choice starts with a small set of checks: pin count, coding, gender, voltage/current rating, IP rating, mounting style, shielding, and the device datasheet.
At Soulin, we build M8 connectors and cable assemblies for customers replacing failed sensor cables at 2 a.m. and for engineers specifying new automation lines from scratch. In both cases, the fastest way to avoid a wrong part is to match the connector to the equipment datasheet before comparing catalog options.
What an M8 Circular Connector Specifies
The “M8” designation refers to the 8 mm locking interface that connects the male and female halves. Compared with larger circular connectors such as M12, M8 connectors save space and weight, which is why they are common on compact sensors, small actuators, robotics, and dense I/O layouts.
That smaller shell also creates limits. M8 connectors usually offer fewer pin counts and less current headroom than larger connector families. When a circuit needs more contacts, higher current, or more industrial Ethernet options, an M12 connector may be the better format.
The general M8 screw-locking or snap-locking interface is specified in IEC 61076-2-104 which sets baseline requirements for M8 circular connectors used in automation devices. For D-coded or P-coded M8 connectors used in industrial Ethernet or combined data-and-power applications, also check IEC 61076-2-114 and the selected product datasheet before confirming pin layout, coding, voltage/current rating, sealing, shielding, or data performance.
M8 Coding Types: A-Code, B-Code, D-Code, and P-Code
Coding is the mechanical keying feature that prevents an incompatible connector from being mated. It may be a notch, pin offset, or other geometry inside the connector face. This matters because connectors with the same pin count can still serve different signal types.

| Code | Typical pin count | Main use | Selection warning |
|---|---|---|---|
| A-code | 3, 4, 6, or 8 pins | DC power, sensor signals, actuators, switches, compact I/O | Do not use a 4-pin A-coded connector as a substitute for a 4-pin D-coded Ethernet connector. |
| B-code | Often 5 pins | Fieldbus signal wiring | Check the exact fieldbus requirement before ordering. |
| D-code | Usually 4 pins | 100 Mbit/s industrial Ethernet, including compact PROFINET or EtherCAT devices | Pin count alone is not enough; confirm the D-coded pinout and cable type. |
| P-code | Usually 4 cores | Data plus 24 V power for EtherCAT P-style applications | Confirm the system requirement and product datasheet before using it in a data-plus-power circuit. |
For 4-pin projects, our M8 4-pin A-code vs D-code pinout guide explains why the same pin count can still mean two different wiring diagrams. This is especially important when a maintenance technician is replacing a burned-out cable with no label left on it.
Specifications That Drive M8 Connector Selection
Before choosing a catalog part, confirm the specifications that actually affect fit, safety, and signal performance.
| Specification | What to check | Why it matters |
|---|---|---|
| Pin count | 3, 4, 5, 6, or 8 pins | Determines the available wiring path and can affect current rating. |
| Coding | A, B, D, or P code | Prevents mismating and defines the intended signal type. |
| Gender | Male or female connector, plug or socket | Must match the device port and mating cable. |
| Voltage/current rating | Rated voltage and current per contact | Higher pin counts often reduce available current inside the same shell size. |
| IP rating | IP67, IP68, or IP69K where available | Defines resistance to dust, water, washdown, or temporary immersion when properly mated. |
| Temperature range | Minimum and maximum operating temperature | Depends on housing material, seal compound, cable jacket, and product series. |
| Shielding | Shielded or unshielded cable assembly | Needed near motors, VFDs, drives, or other electromagnetic noise sources. |
| Mounting style | Cable, panel, bulkhead, or PCB mount | Determines how the connector fits the enclosure, cable route, or board layout. |
| Shell and contact material | Nickel-plated brass, stainless steel, contact plating | Affects corrosion resistance, chemical exposure, durability, and cost. |
| Termination method | Overmolded, screw joint, solder, crimp, or PCB soldering | Affects assembly process, field repairability, and strain relief. |
As a rough industry baseline, many 3-pin and 4-pin A-coded M8 connectors are rated around 4 A, while 6-pin and 8-pin versions often drop to roughly 1.5-2 A because the contacts are packed into the same 8 mm shell. These ranges are not universal. Always confirm voltage, current, insulation resistance, contact resistance, and mating-cycle life against the exact connector or cable assembly datasheet.
Temperature range should be checked the same way. Standard industrial M8 connectors may cover common factory environments, while high-temperature, low-temperature, chemical-exposure, or washdown applications may require different housing material, sealing material, or cable jacket.
Mounting Styles: Cable, Panel, and PCB
Most M8 applications fall into three mounting families: cable-type, panel-mount, and PCB-mount connectors.
| Mounting style | How it is installed | Best fit | Check before ordering |
|---|---|---|---|
| Cable-type | Terminates directly onto a wire, often through screw-joint, soldered, crimped, or overmolded construction | Sensor cables, actuator cables, field-wired cordsets | Cable OD, jacket material, termination method, shielding, bend radius, and strain relief |
| Panel-mount / bulkhead | Mounts through an enclosure wall with front-mount or rear-mount options | Control boxes, sensor hubs, sealed equipment housings | Panel thickness, cutout size, thread length, sealing washer, mating direction, and clearance |
| PCB-mount | Solders directly onto a board, often in a through-hole configuration | Compact devices where the connector sits at the board edge | Board layout, connector orientation, enclosure clearance, soldering process, and mating force |
Picking the wrong mounting style is often a mechanical problem rather than an electrical one. The issue may appear late in assembly, when the connector does not match the enclosure cutout, the panel is too thick for the thread length, or the mating cable exits in the wrong direction. Before confirming the part number, check panel thickness, cutout diameter, front-mount or rear-mount direction, cable exit angle, and available clearance around the connector.

If the connector will be field-wired, assembly sequence also matters. Our guide to crimping waterproof M8 and M12 connectors step by step covers a common mistake: installing the gland nut after crimping instead of before. That small sequencing error can send an otherwise correct harness back for rework.
How Application Conditions Change the Specification
Application conditions determine which M8 specifications should be checked first. Instead of reviewing every item in the same order, start with the risk that matters most in that environment: wrong pinout, poor sealing, EMI, vibration, limited space, or mechanical interference.
Sensor and actuator wiring usually begins with pin count, A-code layout, cable length, connector gender, and IP rating. These connectors are common on proximity sensors, photoelectric sensors, small actuators, and compact I/O boxes connected to a PLC, so the priority is to match the device port and keep replacement work straightforward.
In compact industrial Ethernet devices, D-coded M8 connectors are used when a 100 Mbit/s connection is needed but an M12 port would take too much space. Pin count alone is not enough in this case. Confirm the D-coded pinout, cable category, shielding, and device datasheet before treating the connector as a substitute for another Ethernet connector.
Washdown, packaging, and food-and-beverage lines shift the focus to environmental durability. IP rating, sealing material, shell material, and cable jacket become more important because a connector that works in a dry control cabinet may not survive frequent cleaning cycles, chemical exposure, or continuous moisture.
Robotics, AGVs, AMRs, and other moving equipment add another layer of mechanical stress. Compact size is useful, but strain relief, vibration resistance, cable bend radius, and connector orientation can matter just as much. In a tight layout, a right-angle cable exit may solve a clearance problem that a straight connector cannot.
Space-limited devices such as compact new-energy control boxes and test instruments should be checked from the enclosure inward. Panel depth, board layout, available clearance, current rating, data speed, and pin count all affect whether M8 is still the right format. If the circuit exceeds what M8 can comfortably support, move up to M12 instead of forcing the smaller connector into the design.
M8 vs. M12: When to Move Up a Size
M8 and M12 connectors use different thread diameters and cannot be mated directly. Do not choose between them by pin count alone.
Choose M8 when panel space, cable weight, or sensor density is the main constraint and the circuit only needs low-to-moderate current conductors. M8 is often the better fit for compact sensors, actuators, small I/O devices, and tight robotics layouts.
Choose M12 when the application needs more pin-count options, higher current capacity, broader industrial Ethernet choices, or power-coded variants. M12 also tends to be easier to standardize across larger industrial networks.
An M8-to-M12 adapter can solve a mechanical mismatch, but it does not guarantee that the pinout, coding, current rating, shielding, or data performance line up. Treat an adapter as a component that must be verified against both datasheets, not as a default permanent fix.
M8 Circular Connector Selection Checklist
Use this checklist before requesting a quote or approving a replacement part:
- Confirm the application: sensor, actuator, I/O, fieldbus, Ethernet, power-plus-data, or enclosure connection.
- Confirm the pin count required by the circuit.
- Confirm the coding: A-code, B-code, D-code, or P-code.
- Confirm the connector gender at each end.
- Check voltage and current rating per contact against the exact datasheet.
- Match the IP rating to the environment: dust, moisture, temporary immersion, washdown, or chemical exposure.
- Check the operating temperature range, shell material, sealing material, and cable jacket.
- Decide whether shielding is required near motors, VFDs, drives, or other EMI sources.
- Select the mounting style: cable, panel, bulkhead, or PCB mount.
- Confirm mechanical fit: panel thickness, cutout size, thread length, cable exit angle, bend radius, and enclosure clearance.
- Send the supplier the device datasheet, required pinout, cable length, cable OD, target IP rating, and current per contact before asking for a final part number.
For a broader overview of connector basics, IP ratings, and common buying mistakes, see our M8 connector guide to codes, pinout, IP ratings, and uses.
Why Engineers Work With Soulin on M8 Projects
Soulin manufactures M8 connectors alongside our broader M5, M8, and M12 waterproof circular connector series. The series covers cable-end, panel-mount, and flange installation options, so a project that starts with a standard A-coded 4-pin connector can move into a modified cable length, right-angle cable exit, panel-mount version, alternate shell or sealing requirement, or custom pinout without switching suppliers mid-project.
That flexibility matters when the connector is part of a real assembly rather than a catalog-only purchase. Soulin can review the coding, contact arrangement, cable route, termination method, panel thickness, and finished installation condition together, especially when sealing performance depends on how the connector is mated, mounted, and tested. For motion equipment, washdown machinery, compact sensors, or enclosure-mounted devices, this helps engineers check more than the part number alone.
Our engineering team reviews drawings before tooling changes, and sealed builds can be checked for mating-cycle performance and IP protection before shipment. When a standard catalog part is close but not quite right, our custom electrical connector design and RFQ guide explains what to prepare, including drawings, connector part numbers, wire gauge, cable OD, pinout, target IP rating, current per circuit, mounting direction, and application environment.




