What Is A Long Code? A long code is a 10-digit phone number, while a short code is a 5 to 6 digit number that is used to broadcast text messages or enable subscribers to opt-in via mobile keyword. Short code numbers are easier to memorize, while long codes are ideal for customer service and two-way messaging. SMS Long Codes are ideal for P2P (Person to Person) messaging and are perfect for things like customer service. Short codes, on the other hand, are ideal for A2P (Application-to-Person) messaging which allows for a much higher volume of messages to be sent. Trumpia offers both long and short code options.