The invention discloses a preparation method of 1,2,3,4-benzoxatriazine-1,1(2H)-dioxide. The preparation method is characterized in that 2-aminobenzenesul fonamide and tert-butyl nitrite are taken asreaction materials and have a diazo-reaction in a reaction solvent to obtain 1,2,3,4-benzoxatriazine-1,1(2H)-dioxide, and the reaction temperature is 0 DEG C to 50 DEG C. The preparation method has the beneficial effects that the reaction is efficient, the yield is high, the operation is convenient, and the postprocessing is simple; an oxidizing reagent or a catalyst are not required to be added;the reaction condition is mild, the reaction is carried out at a room temperature, the 1,2,3,4-benzoxatriazine-1,1(2H)-dioxide is easy to prepare, and the reaction is green and economical.