Credit card security codes can be three or four digits in length. However, most are composed of three numbers, including the most predominant brands, Visa and Mastercard. American Express uses a four-digit security code.