Sometimes — with care
Coconut flesh and coconut oil are safe for dogs in small amounts. Keep portions tiny because of the fat, and never let a dog chew the hard shell.
Coconut is not toxic to dogs, and small amounts of the white flesh or a little coconut oil are sometimes used for skin and coat support. It contains medium-chain triglycerides and lauric acid. The main issue is fat: coconut is very high in it, so generous amounts can cause stomach upset or, in prone dogs, contribute to pancreatitis. The fibrous shell and husk are a genuine hazard — they can cause choking or intestinal blockage and must never be given.
A small piece of fresh or dried unsweetened coconut, or up to about a quarter to one teaspoon of coconut oil depending on size, occasionally. Avoid sweetened shredded coconut. Introduce slowly and skip it for dogs with a history of pancreatitis.
For coat support, ask your vet about fish oil; for a treat, blueberries are lighter.
General information, not veterinary advice. If your pet has eaten something potentially harmful or shows symptoms, contact your vet or an emergency clinic immediately. Full disclaimer.