Yes, the Roborock Q5 is designed to work on both hard floors and carpets. It has a powerful suction that automatically increases when it detects carpets, ensuring a deep clean.