Frogs can keep an excellent aerial balance for landing and achieve consecutive jumps reliably. A safe landing requires an accurate body righting in the air. However, there is no systematic study on how the frogs adjust the aerial postures and body attitudes after jumping. The stretched long hindlegs swung quickly in the aerial phase, which revealed a clear relationship with the body attitudes. This study aimed to verify the function of frogs' hindlegs on aero body righting in the air. We captured the motions of both hindlegs and found the hindlegs adopted two movement modes, the bilateral parallel, and separated swings. The hindleg-induced torques by the two movements were negatively correlated with the body's angular accelerations on pitch and roll, respectively. Moreover, an analytical model was derived based on the conservation of angular momentum and verified by the dynamic simulations. Thus, we confirmed that the hindlegs are the dominant mechanism in aerial pitch and roll controls.We anticipate our achievements to inspire the design of air-righting tools.