Aziz Bench

Connector identifier

Measure the pitch, count the contacts and say where you found it. You get the likely connector with its ratings from the maker’s datasheet, its lookalikes and how to tell them apart.

Most likely
JST PH
2.0 mm · wire-to-board
Pitch
2.0 mm
Per contact
2 A
Candidates
1
JST PH
2.0 mmJST PH
The connector in your hand
Shape
mm

Centre to centre between neighbouring pins. Measure from the first pin to the last and divide by the number of pins minus one: far more precise than a single gap. Leave it empty if you can’t measure it.

All the contacts, both rows included.

Rows
Latch
It plugs into

What it can be

2.0 mmJST PHJST

The plug on most small LiPo cells for hobby boards (2 pins), Adafruit STEMMA modules (3 and 4 pins) and the battery input of ESP32 and other development boards.

2.0 mm · 2–16 contacts · 2 A per contact (AWG 24) · 100 V · wire AWG 32–24

✓ pitch 2.0 mm✓ made with 2 contacts✓ common where you found it

How to tell it apart: ZH (1.5 mm) is smaller, XH (2.5 mm) larger and taller. Grove has the same 2.0 mm pitch but a latch, and it doesn’t mate with PH. specs, pinout and parts →

Before you plug it in

Two-pin JST PH plugs on LiPo cells have no standard polarity: some brands put the red wire on the other side. Check + and − with a multimeter before you plug a battery into a board; reversed, it can destroy the charger or the cell.

Crimp terminals need the crimper die made for their size: pliers crush them and the contact works loose. Housings and terminals of different series don’t mix, even at the same pitch.

The current rating is a maximum per contact, at the wire size the maker states. With thinner wire, or with every contact carrying current, stay well below it.

How to identify a connector

Start with where it came from: the same 2-pin plug means different things on a LiPo cell, a PC fan or an LED strip. Then measure the pitch, the distance between the centres of two neighbouring pins, and count the contacts. A latch you have to press, and whether it joins two cables or plugs into a board, settle most of the doubts that remain.

Measure the pitch

A caliper is enough, as long as you measure across the whole row: from the centre of the first pin to the centre of the last, divided by the number of pins minus one. On a 6-pin connector the span is 5 pitches, so 10 mm means 2.0 mm and 12.5 mm means 2.5 mm. Two pitches cause most mix-ups: 2.5 mm (JST XH and SM) and 2.54 mm, the tenth of an inch of Dupont and Molex KK.

Pitch from the makers’ catalogues. Power plugs (XT, Deans, Anderson) and barrel plugs are recognised by their shape, not by pitch.

Every connector in the identifier

ConnectorPitchPer contactLatchMating
JST SH1.0 mm1 Ano, held by frictionwire-to-board
JST GH1.25 mm1 Ayes, a tab to presswire-to-board
Molex PicoBlade1.25 mm1 Ano, held by frictionwire-to-board and wire-to-wire
Hirose DF131.25 mm1 Ano, held by frictionwire-to-board
JST ZH1.5 mm1 Ano, held by frictionwire-to-board
JST PH2.0 mm2 Ano, held by frictionwire-to-board
Grove2.0 mm—yes, a tab to presswire-to-board
JST XH2.5 mm3 Ano, held by frictionwire-to-board and wire-to-wire
JST SM2.5 mm3 Ayes, a tab to presswire-to-wire
JST RCY2.5 mm3 Adepends on the versionwire-to-wire
Molex KK 2542.54 mm4 Ano, held by frictionwire-to-board
Dupont2.54 mm3 Adepends on the versionwire-to-board and wire-to-wire
Servo plug2.54 mm—no, held by frictionwire-to-board and wire-to-wire
Molex Micro-Fit 3.03.0 mm8.5 Ayes, a tab to presswire-to-board and wire-to-wire
JST VH3.96 mm10 Ayes, a tab to presswire-to-board
Molex Mini-Fit Jr4.2 mm9 Ayes, a tab to presswire-to-board and wire-to-wire
XT30—15–20 Ano, held by frictionwire-to-board and wire-to-wire
XT60—30–35 Ano, held by frictionwire-to-board and wire-to-wire
XT90—45 Ano, held by frictionwire-to-board and wire-to-wire
Deans (T-plug)——no, held by frictionwire-to-wire
Anderson Powerpole—15–45 Ano, held by frictionwire-to-wire
DC barrel plug—2.5–3.5 Ano, held by frictionwire-to-board and wire-to-wire

Current is the maximum per contact at the wire size the maker states, from the datasheets linked on each connector’s page.

Crimping, current and polarity

Crimp terminals are made for one range of wire sizes and one crimper die. Pliers crush the terminal instead of rolling its wings round the wire, and the contact works loose: ready-made leads are often the easier way. Housings and terminals of different series don’t mix, even at the same pitch.

A rating such as 2 A per contact holds for the wire size the maker tested; with thinner wire or every contact loaded, stay well below it. The connector alone never guarantees polarity either: LiPo plugs, barrel plugs and LED strip leads all exist with both wirings, so check with a multimeter before you plug in something you didn’t wire yourself.

DC wire size and voltage drop calculator →

Frequently asked questions

What is a JST connector?

JST is a Japanese maker, not one connector. On a shop listing, “JST” usually means a JST PH (2.0 mm, small LiPo cells), a JST XH (2.5 mm, balance leads), a JST SH (1.0 mm, Qwiic) or a JST SM (LED strips): measure the pitch to know which.

How do I measure the pitch of a connector?

Measure from the centre of the first pin to the centre of the last and divide by the number of pins minus one. Over many pins the small differences add up: ten pins at 2.5 mm span 22.5 mm, at 2.54 mm they span 22.86 mm.

What connector do Qwiic and STEMMA QT use?

A 4-pin JST SH, 1.0 mm pitch, with GND, 3.3 V, SDA and SCL in that order. The older STEMMA, without QT, uses 3- and 4-pin JST PH at 2.0 mm.

Is a Grove connector the same as a JST PH?

No. Both have a 2.0 mm pitch and Grove has 4 pins, but the Grove housing has a latch and the two don’t mate. Use an adapter cable.

Which polarity is right for a LiPo battery plug?

There is no standard for the 2-pin JST PH on small LiPo cells: Adafruit and SparkFun boards expect one order, some other brands use the reverse. Check with a multimeter. The simplest fix is a reversing adapter; if you swap the two terminals in the housing instead, lift the tab with a needle and move one terminal at a time, and cover the loose one with insulating tape: on a charged cell, two bare terminals touching are a short circuit.

What is the difference between XT30, XT60 and XT90?

Size and current. The number is roughly the brief peak current; Amass rates them about 15–20 A, 30–35 A and 45 A continuous, with 16–18, 12 and 10 AWG wire.

How can I tell a 5.5 × 2.1 from a 5.5 × 2.5 barrel plug?

Only the hole differs. A 5.5 × 2.1 plug won’t go onto the 2.5 mm pin of a 5.5 × 2.5 jack; a 5.5 × 2.5 plug goes onto a 2.0 mm pin but wobbles and can lose contact. A 2 mm drill bit makes a quick gauge.