On Mastercard and Visa cards, the security code is a 3-digit number on the back of the card near the space reserved for the holder’s signature. On American Express cards the security code is placed on the front of the card and consists of 4 digits.