The invention discloses a riveting square jig, comprising a synchronous driving structure and a riveting mechanism. The synchronous driving mechanism comprises a cylinder, a bottom plate, a movable plate and support columns, the cylinder is arranged under the bottom plate, a piston rod of the cylinder penetrates through the bottom plate and is connected with the bottom of the movable plate, a hole for placing a gold needle is arranged in the center of a placing plate, a baffle plate is arranged on each of four sides of the placing plate, each baffle plate is internally provided with a sliding groove used for placing a sliding arm, four sliding arms are arranged on the movable plate, cam rollers are in sliding contact with sliding surfaces of the sliding arms and are connected with movable blocks through fixed rods, fixed arms are arranged on the movable blocks, and tension springs are mounted between the fixed arms and side walls of the baffle plates. The riveting square jig provided by the invention is simple in structure, convenient to use, fast in return speed, and accurate in return, and can move four riveting plates at the same time, processing quality is improved, manufacturing costs are relatively low, and the length of the gold needle can be prevented from being elongated.