All the whitening toothpastes work on the same principle. They use hydrogen peroxide or other whitening agents in very small quantities to gently remove surface stains caused by tea, coffee, wine, etc.
So be carefull before use them and also consult with your dentist.