The invention discloses a collaborative robot modularized joint compact in structure. The modularized joint is composed of a joint shell, a joint output flange, a low-speed wire protection pipe, a harmonic reducer, a motor assembly, a motor shaft, a brake assembly, a motor end encoder assembly and a joint end encoder assembly which are sequentially connected. The low-speed wire protection pipe isconnected with the joint output flange. The harmonic reducer is connected with the joint output flange and the joint shell. The motor assembly comprises a stator and a rotor. The motor shaft is connected with the motor rotor. One end of the motor shaft is connected with the input end of the harmonic reducer. The brake assembly is of a magnetic attraction friction type, capable of achieving lockingwhen powered off, capable of achieving unlocking when powered on and connected to the motor shaft. Compared with a plug pin type brake, sudden stop is safe, and stop pins cannot be bent. A motor endencoder coded disc and a joint end encoder coded disc are concentrically arranged. A motor end encoder reading head and a joint end encoder reading head are integrated together, the axial space of thejoint can be compact, the integration level can be high, the wiring space is large, and operation is facilitated; and meanwhile the modularized joint further has the characteristics of being high inrigidity and large in load-dead weight ratio.