The utility model describes a plug pin device and socket, it includes: casing, positive and negative pole pin subassembly with casing connection, ground pole pin subassembly with casing rotation connection, and ground pole pin subassembly can rotate to accomodate position or unfolded position, ground pole pin subassembly with positive and negative pole pin subassembly are located the same side of casing, lock action subassembly with casing swing joint, lock action subassembly is used for locking ground pole pin subassembly in accomodate position or unfolded position. Thus, ground pole pin subassembly can accomodate and unfold alone. On the one hand, do not interfere with the plug of positive and negative pole pin subassembly, on the other hand, ground pole pin subassembly rotates to unfolded position, can form three pole plug structure, can better adapt to the global diversification of socket standard. In addition, lock action subassembly can also lock ground pole pin subassembly in accomodate position or unfolded position, thereby effectively reduce the security risk in the use process.