The MPS2222G is manufactured in a plastic TO-92 case. When looking at the flat side with the leads pointed downward, the three leads emerging from the transistor are, from left to right, the emitter, base, and collector leads. Here is an image showing the pin diagram of this transistor.
Complementary PNP transistor
The complementary PNP transistor to the MPS2222G is the MPS2907G.
SMD Version of MPS2222G transistor
The FMMT2222 (SOT-23), FMMT2222R (SOT-23), KN2222S (SOT-23), KTN2222S (SOT-23), KTN2222U (SOT-323), MMBT2222 (SOT-23), PMBT2222 (SOT-23) and PMST2222 (SOT-23) is the SMD version of the MPS2222G transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.
Replacement and Equivalent for MPS2222G transistor