There is no scientific evidence that peanuts can whiten teeth.
However, the enamel analogues in peanuts can protect teeth and prevent tooth sensitivity and pain, which may lead people to mistakenly believe that peanuts have the effect of whitening teeth.
So, although some traditional beliefs believe that peanuts can whiten teeth, there is actually no scientific basis for this effect.