A UV sterilization device for a container includes a housing, a base, a receiving room formed between the housing and the base, a transmission member symmetrically and rotatably mounted on the base and including a clamp for clamping the container, an extension rod symmetrically mounted on the base and inserting into the container to stretch out and draw back relative to the container along the axial direction of the extension member, a UV sterilization member mounted on the extension member to move with the extension member, and a driving member fixed with the base and including a motor therein. The motor is fixed with the transmission member and the extension member. The motor can drive the transmission member and the container to rotate, and drive the extension member to stretch out and draw back relative to the container along the axial direction of the extension member to further drive the UV sterilization member to disinfect the container.