Humans can easily perform various types of hugs in human contact and affection experience. With the prevalence of robots in social applications, they would be expected to possess the capability of hugs as humans do. However, it is still not an easy task for robots, considering the complex force and spatial constraints of robot hugs. In this work, we propose the HUG taxonomy, which distinguishes between different hugging patterns based on human demonstrations and prior knowledge. In this taxonomy, hugs are arranged according to (1) hugging tightness, (2) hugging style, and (3) bilateral coordination, resulting in 16 different hug types. We then further study the hug type preference of humans in different scenarios and roles. Furthermore, we propose a rule-based classification system to validate the potential of this taxonomy in human–robot hugs based on a humanoid robot with an E-skin of contact sensation. The HUG taxonomy could provide human hugging behavior information in advance, facilitating the action control of humanoid robots. We believe the results of our work can benefit future studies on human–robot hugging interactions.