Abstract Collimated beam shaping with freeform surface usually employs a predefined mapping to tailor one or multiple freeform surfaces. Limitation on those designs is that the source, the freeform optics and the target are in fixed one-to-one correspondence with each other. To overcome this drawback, this paper presents a kind of freeform microlens array module integrated with an ultra-thin freeform microlens array and a condenser lens to reshape any arbitrary-shape collimated beam into a prescribed uniform rectangular illumination and achieve color mixing. The design theory is explicitly given, and some key issues are addressed. Several different application examples are given, and the target is obtained with high uniformity and energy efficiency. This freeform microlens array module, which shows better flexibility and practicality than the regular designs, can be used not only to reshape any arbitrary-shape collimated beam (or a collimated beam integrated with several sub-collimated beams), but also most importantly to achieve color mixing. With excellent optical performance and ultra-compact volume, this optical module together with the design theory can be further introduced into other applications and will have a huge market potential in the near future.