The utility model discloses a digital caliper which comprises a caliper body, the bottom of one end of the caliper body is fixedly connected with a fixed measuring jaw, the caliper body is slidably connected with a digital display, the bottom of the digital display is fixedly connected with a movable measuring jaw, and the fixed measuring jaw and the movable measuring jaw are slidably connected with extended measuring jaws through sliding mechanisms. The sliding mechanism comprises racks arranged on the inner walls of the fixed measuring jaw and the movable measuring jaw in the vertical direction, a movable part and a button, tooth blocks are arranged on the faces, facing the inner walls of the fixed measuring jaw and the movable measuring jaw, of the movable part, movable grooves are further formed in the side surfaces of the fixed measuring jaw and the movable measuring jaw, and a through hole corresponding to the button is formed in the side face of the extended measuring jaw. The button passes through the movable groove and the through hole and extends out of the extended measuring jaw. A reset spring is arranged in the movable part. The length of the digital caliper can be adjusted in real time without dismounting and mounting, and the measuring jaw can be adjusted to a desired length, so that the digital caliper is convenient to measure objects with different heights at two ends, the measuring precision is improved, and the operation is simple, convenient and rapid.