The Card Security Code is located on the back of MasterCard, Visa and Discover credit or debit cards and is typically a separate group of 3 digits to the right of the signature strip.
On American Express cards, the Card Security Code is a printed (NOT embossed) group of four digits on the front towards the right.