Wash off soiled diapers
It's absolutely safe to wash cloth diapers in your washing machine, but you shouldn't mix them with any other clothing items. It's also highly important you wash off soiled diapers before adding them to the machine. It's best if you give them a quick rinse immediately after they are soiled. You can either dunk and swish soiled cloth diapers around in the toilet, or you can invest in a diaper sprayer. The diaper sprayer is attached to the side of the toilet and you can use it to clean out the cloth diaper while holding it directly over the bowl.
There's also the Spray Pal you could purchase to help you avoid getting water anywhere but the bowl as you spray the diaper. Once the cloth diaper has been rinsed off, you can add it to a lined diaper pail until you are ready to throw a load of the cloth diapers into the wash. Be sure to use hot water and a detergent that's safe for your child when washing the diapers in the washing machine. It's also smart to put the cloth diapers through an additional rinse cycle afterward to help get any extra detergent out.