Rodents continuously move their heads and whiskers in a coordinated manner while perceiving objects through whisker-touch. Studies in head-fixed rodents showed that the ventroposterior medial (VPM) and posterior medial (POm) thalamic nuclei code for whisker kinematics, with POm involvement reduced in awake animals. To examine VPM and POm involvement in coding head and whisker kinematics in awake, head-free conditions, we recorded thalamic neuronal activity and tracked head and whisker movements in male mice exploring an open arena. Using optogenetic tagging, we found that in freely moving mice, both nuclei equally coded whisker kinematics and robustly coded head kinematics. The fraction of neurons coding head kinematics increased after whisker trimming, ruling out whisker-mediated coding. Optogenetic activation of thalamic neurons evoked overt kinematic changes and increased the fraction of neurons leading changes in head kinematics. Our data suggest that VPM and POm integrate head and whisker information and can influence head kinematics during tactile perception.