Can I wash the sleeping bag in a machine?

Yes. Use a gentle cycle with cold water and mild detergent. Tumble dry on low with clean tennis balls to restore loft.