The invention relates to a template sewing machine, and belongs to the technical field of sewing machines. In order to solve the technical problem of how to narrow the area of a table top of the template sewing machine if required, the invention provides the template sewing machine, comprising a machine frame, a working table and a sewing machine body, wherein the working table is laid on the machine frame, and a machine head of the sewing machine body is located above the working table. The template sewing machine further comprises a transmission mechanism and a transmission rail, wherein the transmission mechanism is configured to drive a template to do back-and-forth translation along a Y direction, the transmission rail is configured to drive the template to do left-and-right translation along an X direction, the transmission mechanism is connected to the machine frame, and is located below the working table, the transmission mechanism comprises a screw rod I, a transmission bracket and a motor I, the motor I is configured to drive the screw rod I to rotate, the screw rod I is arranged along the Y direction, the transmission bracket is connected to the screw rod I in a screw joint manner, and can move in a reciprocating manner along the length direction of the screw rod I, and the transmission rail is fixedly connected to the transmission bracket, and is located above the working table. The template sewing machine according to the invention has the effects of a small table area and good stationarity.