The 57 were arraigned in court on Monday and released on a community service order.
Wearing of face masks in public spaces is mandatory in Kenya although there is laxity in adherence.
Nairobi Metropolitan Services (NMS), which runs the capital city, said they will be expected to work from 08:00-17:00 local time (05:00-1400 GMT) every day for a week.
The work includes the cleaning up of the main farm produce markets of Marikiti and Muthurua markets in the city, as well as the often filthy Nairobi River.
‚ÄúPolice will re-arrest and arraign in court those who do not abide for a stiffer punishment,‚ÄĚ NMS added.
Follow Us on Instagram