A neck massager includes two massaging members and a connecting member connected between the two massaging members, and an upper case and a lower case being engaged to form a U-shaped housing; the two massaging members and connecting member ace disposed in the U-shaped housing; each of the two massaging members including a power component and a massaging head driven by the power component; the connecting member comprises two racks connected to the respective power component and an adjusting device configured to make the two racks contract and expand relatively. The two racks are driven to contract and expand by using the adjusting device.