The electronic padlock comprises a lock body and a hanging piece, the lock body comprises a first shell, a second shell, a spring bolt and a sealing ring, an installation cavity, a first lock hole and a first via hole are defined by the first shell and the second shell, one end of the first via hole is communicated with the installation cavity, the other end of the first via hole penetrates through the hole wall of the first lock hole, the spring bolt is installed in the installation cavity, and the hanging piece is installed in the installation cavity. And the sealing ring is arranged between the first shell and the second shell and surrounds the mounting cavity, a first sealing part is arranged at the position, corresponding to the first via hole, of the sealing ring, and the spring bolt is sleeved with the first sealing part. The hanging piece is provided with a limiting end and a clamping end which are opposite to each other, the limiting end is installed on the lock body, and the clamping end is detachably inserted into the first lock hole and provided with a clamping groove matched with the spring bolt in a clamping mode. According to the technical scheme, the waterproof performance of the electronic padlock can be improved.