Present invention relates to a detergent composition and a method for preparing the composition. The composition may be a compressed tablet, a coated tablet, in form of small granules or pearls packed in a dose unit. The composition may also be formulated so as to be an effervescent composition. The detergent composition may conveniently be used in the food industry for cleaning of appliances in food processing and preparation or in the metal industry for cleaning of appliances with respect to soot or oil residues.