A device and a method of analyzing total cyanide in water samples, including a mixing tube, a stripping tube, a sampling pipe, a reaction pipe, a peristaltic pump, an air pump, a UV digester, a heater, a condenser, a drain pipe and a water sample detector. The mixing tube, the stripping tube, the sampling pipe and the reaction pipe are respectively connected to the peristaltic pump. The mixing tube is connected to the reaction pipe. A bottom of the stripping tube, the air pump, the UV digester, the heater and the condenser and are sequentially connected. The condenser is connected to the mixing tube. An upper portion of the stripping tube, the sampling pipe and the reaction pipe are connected to the drain pipe. An absorbance of the water in the mixing tube is measured by the sample detector, and used to calculate the total cyanide content by spectrophotometry.