The invention discloses an intelligent detection and active inhibition device for fluttering of a high-speed milling electric spindle. According to the device, in the milling process, a vibration signal of a spindle tool handle is collected in real time through built-in acceleration sensors, built-in displacement sensors and an external data collection and analysis meter; the acceleration vibration signal is analyzed in real time through a modern signal processing method, so that intelligent detection of milling fluttering is achieved; and if fluttering occurs, the vibration information collected by the displacement sensors is transmitted into an FPGA controller, the controller carries out adaptive optimization, a driving signal is output, a piezoelectric actuator is driven by a power amplifier to operate, mutual offset of secondary vibration and machining vibration of the piezoelectric actuator is achieved, and intelligent and active inhibition of the fluttering is achieved. Visual displaying and monitoring of the state information, comprising vibration, displacement, temperature and the like, of the whole system can be achieved on a computer in real time in the machining process. The intelligent detection and active inhibition device for the fluttering of the high-speed milling electric spindle can effectively improve milling stability, milling quality and milling efficiency.