Tool 28 / Panel Design · Cordsets

M12 / M8 cable configurator

Pick what each end of the cable is, and what the cable is made of. You get a spec card for each end — coding, contacts, keyway, pin-by-pin conductor colours — the cable data, and the standard each fact comes from.

Free. No login. Every coding, every pin, every colour — with the standard it comes from.

Free to configure and to read on screen. The printable cable report — both end spec cards, the full pin-to-conductor-colour tables, the cable data and the source list — downloads with the one-time $9.99 lifetime unlock.

VoltForge is not affiliated with any connector or cable manufacturer, and this page does not produce a manufacturer's order code.

Assumptions. Report assumes both ends are on the same cable and that straight/angled and male/female choices are mechanical only — they do not change the pin numbering or the conductor colours. Conductor colours are the published cordset convention of the cited source, and bus applications vary by device. An end can be a connector, an unterminated flying lead, or an RJ-45 plug: at least one end must be a real connector end, and an RJ-45 plug pairs only with an M12 Ethernet connector end.

End A

End type

What is on this end of the cable. At least one end of the cable must be a real connector end — an M12 / M8 connector or an RJ-45 plug. An RJ-45 plug pairs only with an Ethernet-coded connector end: M12 D-coded 4-pin or M12 X-coded 8-pin.

A terminated circular connector — pick the family, coding, contact count, gender and body style below.

Family

M12 = IEC 61076-2-101 / -2-109 / -2-111 / -2-113 · M8 = IEC 61076-2-104

Coding

The standard each coding belongs to: IEC 61076-2-101 for the selected coding. A greyed coding is not offered because no fetched source publishes its pins or colours — the reason is in “What we don't cover” below.

Contacts

Only the pin counts with a verified colour table are offered.

Gender (mechanical)

Pin/plug or socket — no effect on numbering.

Style (mechanical)

No effect on numbering or colours.

Application profile v1.1

Optional published pin-function tables for this coding and contact count — 10 profiles ship, each with its own source page. Selecting one fills in the function column (and, where the source publishes them, that profile's conductor colours).

End B

End type

What is on this end of the cable. At least one end of the cable must be a real connector end — an M12 / M8 connector or an RJ-45 plug. An RJ-45 plug pairs only with an Ethernet-coded connector end: M12 D-coded 4-pin or M12 X-coded 8-pin.

A terminated circular connector — pick the family, coding, contact count, gender and body style below.

Family

M12 = IEC 61076-2-101 / -2-109 / -2-111 / -2-113 · M8 = IEC 61076-2-104

Coding

The standard each coding belongs to: IEC 61076-2-101 for the selected coding. A greyed coding is not offered because no fetched source publishes its pins or colours — the reason is in “What we don't cover” below.

Contacts

Only the pin counts with a verified colour table are offered.

Gender (mechanical)

Pin/plug or socket — no effect on numbering.

Style (mechanical)

No effect on numbering or colours.

Application profile v1.1

Optional published pin-function tables for this coding and contact count — 10 profiles ship, each with its own source page. Selecting one fills in the function column (and, where the source publishes them, that profile's conductor colours).

Unkeyed (no-keyway) M12 / M8 is not offered: no fetched public source documents an unkeyed connector variant or what its contact geometry would be. See “What we don’t cover”. The rules above are the tool's own, not a standard's: a connector end is required so there is something to show, and an RJ-45 plug is offered only against the two Ethernet-coded M12 ends whose pairs this tool verified.

Coding legend — what the letters mean

A, B, D, X, S, T, L, K, M and Y are M12 codings; the M8 family has its own A and B. The letter is the keying: it fixes where the key sits.

Convention for every face below: a schematic front face, drawn the way the cited front-face figure draws it — outer ring, the keying feature, and the contacts numbered as that figure numbers them. Each coding draws its male and female face side by side: the female face is the same face mirrored left to right, with the contacts drawn open, which is how the reference sheet for this legend draws the pair. Angles are plain degrees measured clockwise from the 12 o'clock edge of that figure, so an angle is only meaningful alongside the figure it came from.

M12 codings (10)

  • M12 AIEC 61076-2-101

    male

    2134

    female

    2134
    A-coding 4-pin front face (S7)

    sensors & actuators

    3, 4, 5, 8, 12 and 17 contacts

    narrow keyway slot

    keying feature centred 45° clockwise from 12 o'clock, drawn 17° wideS7 — A-coding 4-pin front face: a 36°-53° feature, between the contacts that figure puts at 12 o'clock and 3 o'clock

  • M12 BIEC 61076-2-101

    male

    21345

    female

    21345
    B-coding 5-pin front face (S7)

    fieldbus bus systems

    5 contacts

    one wide keying sweep drawn, no second key

    angle not claimed — the cited figure draws one wide keying sweep for this coding and does not show the second keying another cited source describes; the two sources disagree, so no angle is claimed.S7 — B-coding 5-pin front face: one wide 7°-83° sweep, no second feature

    keyway angle not verified — verify against your device datasheet

  • M12 DIEC 61076-2-101

    male

    2134

    female

    2134
    D-coding 4-pin front face (S7)

    100 Mbit industrial Ethernet

    4 contacts

    keyway slot cut between the contacts at 12 o'clock and 9 o'clock, plus a wide coding sweep

    keying feature centred 299° clockwise from 12 o'clock, drawn 18° wide · second keying feature centred 45° (79° wide)S7 — D-coding 4-pin front face: a 290°-308° slot plus a 5°-84° sweep

  • M12 XIEC 61076-2-109

    male

    54362781

    female

    54362781
    X-coding 8-pin front face (S7)

    high-speed Ethernet, 10 Gbit

    8 contacts

    cross-shaped metal coding, four keying features

    angle not claimed — the cited figure draws four keying features at 90° spacing rather than one keyway, so no single keyway angle is claimed.S7 — X-coding 8-pin front face: four features at 45°, 135°, 225° and 315°

    keyway angle not verified — verify against your device datasheet

  • M12 SIEC 61076-2-111

    male

    PE13

    female

    PE13
    S-coding 3-pin front face (S7)

    power

    2+PE and 3+PE contacts

    power-coding shell outline

    angle not claimed — the cited front-face figure draws this power coding's shell outline only — no separable keying feature to measure.S7 — S-coding 3-pin front face

    keyway angle not verified — verify against your device datasheet

  • M12 TIEC 61076-2-111

    male

    4132

    female

    4132
    T-coding 4-pin front face (S7)

    power

    4 contacts

    power-coding shell outline

    angle not claimed — the cited front-face figure draws this power coding's shell outline only — no separable keying feature to measure.S7 — T-coding 4-pin front face

    keyway angle not verified — verify against your device datasheet

  • M12 LIEC 61076-2-111

    male

    1423

    female

    1423
    L-coding 4-pin front face (S7)

    power, higher current

    4 and 4+FE contacts

    power-coding shell outline

    angle not claimed — the cited front-face figure draws this power coding's shell outline only — no separable keying feature to measure.S7 — L-coding 4-pin front face

    keyway angle not verified — verify against your device datasheet

  • M12 KIEC 61076-2-111

    male

    PE1423

    female

    PE1423
    K-coding 4+PE (5-pin) front face (S7)

    power, 4+PE

    4+PE contacts

    power-coding shell outline

    angle not claimed — the cited front-face figure draws this power coding's shell outline only — no separable keying feature to measure.S7 — K-coding 4+PE (5-pin) front face

    keyway angle not verified — verify against your device datasheet

  • M12 MIEC 61076-2-111

    male

    PE51243

    female

    PE51243
    M-coding 5+PE (6-pin) front face (S7)

    power, 5+PE

    5+PE contacts

    power-coding shell outline

    angle not claimed — the cited front-face figure draws this power coding's shell outline only — no separable keying feature to measure.S7 — M-coding 5+PE (6-pin) front face

    keyway angle not verified — verify against your device datasheet

  • M12 YIEC 61076-2-113

    male

    8

    female

    8
    no front-face figure published — no layout claimed

    hybrid power + data

    8 contacts

    no front-face figure published

    angle not claimed — no cited source publishes a front-face diagram for this coding, so its keying is described in words only.S1 — no front-face figure published for this coding

    keyway angle not verified — verify against your device datasheet

M8 codings (2)

  • M8 AIEC 61076-2-104

    male

    2413

    female

    2413
    M8 A-coding 4-pin front face (S7)

    sensors & actuators

    3, 4, 6 and 8 contacts

    M8 signal keyway, position not published

    angle not claimed — the cited M8 front-face figures draw the contacts only — no keying geometry is published there.S7 — M8 A-coding 3-pin and 4-pin front faces

    keyway angle not verified — verify against your device datasheet

  • M8 BIEC 61076-2-104

    male

    24135

    female

    24135
    M8 B-coding 5-pin front face (S7)

    M8 bus wiring

    5 contacts

    M8 bus keyway, position not published

    angle not claimed — the cited M8 front-face figures draw the contacts only — no keying geometry is published there.S7 — M8 B-coding 5-pin front face

    keyway angle not verified — verify against your device datasheet

These are schematic coding icons, not dimensioned keyway drawings — dimensional keyway drawings are per the standard and are not reproduced here. Every coding this page offers appears below; the codings it does not offer stay in “What we don't cover”. Where no cited source draws measurable keying geometry, the entry shows the code, what it is for and its contact counts, says why no angle is claimed, and is badged.

Sources for this legend

  • S1 · Phoenix Contact — M5 to M12 circular connectors — product overview (PDF, 60 pp., web codes #0680/#0681), section “Pin assignments and litz wire colors”. Used for: pp. 56–59. Retrieved 2026-09-30.
  • S2 · Murrelektronik — White paper: Coding of M12 cordsets (PDF, 10 pp.). Used for: pp. 1–10. Retrieved 2026-09-30.
  • S4 · Fluke Networks — Industrial Ethernet connector round-up (blog; read via the citation carried by the standards listing above). Used for: article body (via citation). Retrieved 2026-09-30.
  • S5 · Bulgin — Buccaneer M8 series data sheet (PDF, 11 pp.). Used for: pp. 1–11. Retrieved 2026-09-30.
  • S7 · Wikimedia Commons — the coding-diagram set published with the article in S3 — Front-face diagrams for the IEC 61076 M12 and M8 codings (vector SVG, one diagram per coding; e.g. “IEC 61076 M12 D-coding 4-pin connector diagram”). Used for: the M12 A, B, D, X, S, T, L, K and M diagrams and the M8 A and B diagrams — the exact diagram behind each legend entry is named in that entry's keyway row. Retrieved 2026-09-30.

Cable

These fields are echoed into the description line and the report exactly as you enter them. VoltForge makes no claim about them here.

VoltForge does not size the cable here — for current capacity, voltage drop and derating use Wire Size, Ampacity Derating and Voltage Drop, and Bend Radius for the minimum bend radius. Wire Size · Ampacity Derating · Voltage Drop · Bend Radius

End A — M12 A-coded 4-pin, female, straight

IEC 61076-2-101 — M12 connectors with screw-locking — the A, B, C, D and P codings

Single keyway, classical M12 sensor/actuator contact layout. The standard permits one or more contacts to be left out of the 5-pos layout, so a 3-pin version fits a 5-pin port without changing the pin layout. Not mateable with the B, C, D or X keyways.

The signal coding — sensor and actuator leads, 3 to 17 contacts. Male/female and straight/angled are mechanical only and change nothing below.

  • single-source — verify against your device datasheet
key1234
Contact view, numbered as published; the physical keyway is per the cited standard. Front view only — no back or solder-side view is drawn.
Pin, conductor colour and function for End A — M12 A-coded 4-pin, female, straight
PinConductor colourFunction
1brown(BN)single-source — verify against your device datasheet— (defined by the device)
2white(WH)single-source — verify against your device datasheet— (defined by the device)
3blue(BU)single-source — verify against your device datasheet— (defined by the device)
4black(BK)single-source — verify against your device datasheet— (defined by the device)

Standard reference data from the sources listed in this report — verify against your device datasheet before wiring. Conductor colours are the published cordset convention of the cited source, not a colour code mandated by IEC 61076-2-101 / -2-104. Keying is described; dimensional keyway drawings are per the standard, not reproduced here.

End B — M12 A-coded 4-pin, male, straight

IEC 61076-2-101 — M12 connectors with screw-locking — the A, B, C, D and P codings

Single keyway, classical M12 sensor/actuator contact layout. The standard permits one or more contacts to be left out of the 5-pos layout, so a 3-pin version fits a 5-pin port without changing the pin layout. Not mateable with the B, C, D or X keyways.

The signal coding — sensor and actuator leads, 3 to 17 contacts. Male/female and straight/angled are mechanical only and change nothing below.

  • single-source — verify against your device datasheet
key1234
Contact view, numbered as published; the physical keyway is per the cited standard. Front view only — no back or solder-side view is drawn.
Pin, conductor colour and function for End B — M12 A-coded 4-pin, male, straight
PinConductor colourFunction
1brown(BN)single-source — verify against your device datasheet— (defined by the device)
2white(WH)single-source — verify against your device datasheet— (defined by the device)
3blue(BU)single-source — verify against your device datasheet— (defined by the device)
4black(BK)single-source — verify against your device datasheet— (defined by the device)

Standard reference data from the sources listed in this report — verify against your device datasheet before wiring. Conductor colours are the published cordset convention of the cited source, not a colour code mandated by IEC 61076-2-101 / -2-104. Keying is described; dimensional keyway drawings are per the standard, not reproduced here.

What to ask for

M12 A-coded 4-pin female straight → M12 A-coded 4-pin male straight · 2 m · 0.34 mm² · PUR · unshielded · black

Plain words only — this page produces no manufacturer order code and no example cable code, because a code that looks orderable invites the wrong purchase.

What we don't cover — and why (14 items)

Visible, not buried in a footnote: a coding is never quietly missing from this page. Each line says what is absent and the reason it could not be verified.

  • M12 CIEC-61076-2-101

    The AC-power use of C-coding is documented, but no fetched public source publishes its contact count, keying detail or conductor colours. It is not inferred from the A-coded layout.

    source S3

  • M12 PIEC-61076-2-101

    Named in the standards listing, but no fetched source publishes pin or colour data for it.

    source S3

  • M12 HIEC-61076-2-109

    Named with X in the standards listing; no pin or colour table was fetched.

    source S3

  • M12 EIEC-61076-2-111

    Named in the standards listing; the fetched power document covers the S, T, K and L codings only.

    source S3

  • M12 FIEC-61076-2-111

    Named in the standards listing; the fetched power document covers the S, T, K and L codings only.

    source S3

  • M8 DIEC-61076-2-114

    The 4-pos PROFINET colour table this tool verified is not shell-specific in the source, so it cannot honestly be labelled “M8 D-coded”. It is offered instead as a 4-position Ethernet application profile.

    source S3

  • M8 PIEC-61076-2-114

    Named in the standards listing; no pin or colour table was fetched.

    source S3

  • M12 A (6-, 7-, 9-, 10-, 11-, 13- and 14-pos)IEC-61076-2-101

    These pin counts exist in the standard, but no fetched source publishes their conductor colours. The A-coded pin counts offered here are exactly the ones with a verified table (3, 4, 5, 8, 12, 17).

    source S3

  • DeviceNet / CANopen as a “canonical” pinout

    Two published rows from the same manufacturer conflict on contacts 3 and 4. The bus assignments are therefore shown only as labelled application profiles carrying their coding and source page.

    source S1

  • Any manufacturer part number or order code

    This tool generates no manufacturer order code and no example cable code — a code that looks orderable invites the wrong purchase. It emits a plain-words description instead.

    source S3

  • Cable sizing: ampacity, voltage drop, bend radius, temperature derating

    Not this tool's claim. The cable data is echoed as entered; for current capacity, voltage drop and derating use the Wire Size, Ampacity Derating and Voltage Drop calculators, and Bend Radius for the minimum bend radius.

    source S3

  • IP rating, mating cycles, torque and temperature range per coding

    Partly published but not uniformly per coding, so a ratings column is omitted rather than printed partially. Check your device datasheet for the ratings that apply.

    source S3

  • An unkeyed / no-keyway M12 or M8 end

    Attempted and not verified, so it is not offered. The standards listing describes keying variety — every coding has a different keyway, and pins may be removed to create differently keyed connectors — which is not the same thing as an unkeyed variant: it names no connector without a keyway and gives no contact geometry for one. The two manufacturer documents this tool holds publish codings only, and no fetched public source documents an unkeyed M12 or M8 as a product category or states where its contacts sit. With no source for the geometry, the tool shows it nowhere rather than inferring it.

    source S3

  • A colour claim under IEC 60947-5-2

    That standard covers the 3- and 4-wire DC sensor interface and is named on this page only as context. This tool did not verify that it mandates brown/blue/black, so it makes no such claim.

    source S3

Sources behind this configuration

Only the documents the current configuration actually uses are listed. IEC 61076-2-101 / -2-104 define the connector — contact numbering, keying and dimensions. They do not mandate the conductor colours above: those are the published cordset convention of the cited source. IEC 60947-5-2 covers the 3- and 4-wire DC sensor interface and is named here as context only; this page makes no colour claim under it.

  • S1 · Phoenix Contact

    M5 to M12 circular connectors — product overview (PDF, 60 pp., web codes #0680/#0681), section “Pin assignments and litz wire colors”

    Pages used: pp. 56–59 · retrieved 2026-09-30

    Verified: Every conductor colour and every pin function in this tool. p.56: M12 4-pos A-coded and 4-pos D-coded litz colours, M8 3/4/6/8-pos litz colours. p.57: M12 5-pos A/B, 8-pos, 12-pos and 17-pos litz colours; PROFINET/EtherCAT 4-pos assignment; Ethernet 4-pos A-coded assignment; CANopen/DeviceNet 5-pos B-coded; A-coded 8-pos Ethernet/PoE; S-coded 2+PE and 3+PE; T-coded; L-coded and 4+FE L-coded; M-coded; K-coded; X-coded; Y-coded. p.58: PROFIBUS and INTERBUS 5-pos B-coded; Ethernet (TIA) 4-pos; CANopen + DeviceNet A-coded; AS-Interface; CC-Link; Foundation Fieldbus. p.59: the power-coding and 8-pos assignment figures.

    https://web.archive.org/web/2020id_/https://www.phoenixcontact.com/assets/2018/interactive_ed/101_87294/epaper/52003133_EN_HQ_Rundsteckverbin.pdf

  • S3 · Wikipedia

    IEC metric screw sized connectors (the article the M12-connector search redirects to)

    Pages used: article body + citation list · retrieved 2026-09-30

    Verified: The standards-by-coding listing (61076-2-101 A/B/C/D/P, -2-104 M8 A/B, -2-109 X/H, -2-111 E/F/K/L/M/S/T, -2-113 Y, -2-114 M8 D/P), the coding → pin-count table, the “each coding has a different keyway” statement and “any pin may be removed to create differently keyed connectors”. Used for standards mapping and pin counts only — never as a colour source.

    https://en.wikipedia.org/wiki/IEC_metric_screw_sized_connectors

  • S6 · IEC Webstore

    IEC publication pages for the standard numbers cited by this tool (identity of the standard only)

    Pages used: publication pages 4418 (61076-2-101), 4421 (61076-2-104), 4425 (61076-2-109), 26926 (61076-2-111) — publication numbers only · retrieved 2026-09-30

    Verified: The exact standard numbers the tool cites, so the citation line cannot drift. The publication page for IEC 61076-2-101 returned its title directly; the other publication pages returned no readable title to an automated fetch, so this tool prints the standard numbers with a plain-words scope taken from the coding attribution above, and does not reprint a formal title it could not read.

    https://webstore.iec.ch/publication/4418

Loading saved calculations…

Saved on this device · no cloud sync