There are a number of cloth diaper specific detergents out there, but a lot of them are extremely expensive. For most fabrics, regular detergent will be safe however you will want to be sure to find a brand that is free from whiteners, brighteners, fabric softener, fragrance, colorants, and enzymes. These can all disrupt the absorbency and lifespan of the fabric while also adding harsh chemicals against baby’s skin.