For Visa, Mastercard and Discover, the three-digit security code is located on the back of your card. For American Express, the four-digit security code is located on the front of your card.