Dogs can eat cupcakes with sprinkles in moderation, but it’s best to avoid chocolate and xylitol, which are toxic to dogs.