Number to Letter

Number to Letter › Number and letter combinations calculator

Number and letter combinations calculator

Try:
17.6MShort form
24.1Bits of entropy
4.9 hTo try all at 1,000 per second
Choices per position7 positions

To count number and letter combinations, multiply the number of choices for each position. A letter has 26 choices and a digit has 10, so 3 letters followed by 3 digits gives 26 × 26 × 26 × 10 × 10 × 10 = 17,576,000 combinations. A 4-digit PIN has 104 = 10,000, and an 8-character code from A–Z and 0–9 has 368 = 2,821,109,907,456.

Describe the code as a pattern (L for letter, D for digit, X for either) or as a length and character set. The calculator gives the exact count, the entropy in bits, and how long it takes to try every combination at 1,000 guesses per second. Turn off repeats to count codes where no character appears twice.

How number and letter combinations calculator works?

To count number and letter combinations, the number and letter combinations calculator multiplies the choices for each position. The calculator reads a pattern (L = letter, D = digit, X = either) or a length and character set, multiplies the number of choices at each position, and shows the total with the time needed to try every code. LLL-DDD gives 26³ × 10³ = 17,576,000 combinations.

  1. Pick the mode

    A pattern such as LLDD-LLL, or a length with a character set.

    LLL-DDD
  2. Count choices

    Letters give 26 (or 24 without I and O, or 52 with case), digits give 10, X gives 36.

    26 · 26 · 26 · 10 · 10 · 10
  3. Multiply

    Repeats allowed: multiply all choices. No repeats: each pick removes 1 option.

    17,576,000
  4. Show the scale

    The total is shown in full, in short form, and as time at 1,000 guesses per second.

    17.6M · 4.9 h

Totals use exact integer math (BigInt), so 20-character codes show every digit.

Number and letter combinations calculator formula

The number and letter combinations formula is the product rule. With repeats, combinations = n₁ × n₂ × … × nₖ (or nᵏ for 1 character set); without repeats, combinations = n! ÷ (n − k)!.

Formula

C = Π ni
C = nk (same set, repeats)
C = n! ÷ (n − k)! (no repeats)

Where

ni
choices at position i: 10 digits, 26 letters, 36 for both
k
code length
C
total combinations

Worked example

6 characters, A–Z and 0–9C = 366 = 2,176,782,336No repeats: 36 × 35 × 34 × 33 × 32 × 31 = 1,402,410,240

Order matters in both formulas: AB12 and 21BA are different codes.

Number and letter combinations calculator conversion chart

The number and letter combinations conversion chart lists totals for lengths 1–8 over 4 character sets. A 4-character code has 10,000 digit combinations, 456,976 letter combinations, and 1,679,616 letter-or-digit combinations.

LengthDigits (10)Letters (26)A–Z + 0–9 (36)a–z, A–Z, 0–9 (62)
110263662
21006761,2963,844
31,00017,57646,656238,328
410,000456,9761,679,61614,776,336
5100,00011,881,37660,466,176916,132,832
61,000,000308,915,7762,176,782,33656,800,235,584
710,000,0008,031,810,17678,364,164,0963,521,614,606,208
8100,000,000208,827,064,5762,821,109,907,456218,340,105,584,896
CodePatternCombinations
4-digit PINDDDD10,000
6-digit PINDDDDDD1,000,000
3 letters + 3 digits plateLLL-DDD17,576,000
3 letters + 4 digits plateLLL-DDDD175,760,000
UK plate (2 letters, 2 digits, 3 letters)LLDD-LLL1,188,137,600 (before UK letter limits)
6 characters A–Z, 0–9XXXXXX2,176,782,336
8 characters A–Z, 0–9XXXXXXXX2,821,109,907,456

Combinations with and without repeats

With repeats allowed, the count is nk; without repeats, it is n × (n − 1) × … × (n − k + 1). 4 digits with repeats: 104 = 10,000. 4 different digits: 10 × 9 × 8 × 7 = 5,040. Order matters in both, because 1234 and 4321 are different codes. Strictly, these counts are permutations; "combinations" is the everyday word for them. If order does not matter, as in a lottery draw, divide the no-repeat count by k! (4! = 24 gives 210 sets of 4 digits).

Why longer codes beat bigger alphabets

Each extra character multiplies the total by the size of the character set. Going from 6 to 8 characters (A–Z, 0–9) multiplies the count by 36 × 36 = 1,296; switching 6 characters from 36 to 62 symbols multiplies it by only about 26. That is why security guides ask for length first. For random codes and passwords, use the number and letter generator.

Frequently asked questions

How many 4-digit combinations are there?

There are 10,000 4-digit combinations, from 0000 to 9999.

How many combinations of 3 letters and 3 numbers are there?

17,576,000: 26 × 26 × 26 × 10 × 10 × 10.

How many 6-character combinations of letters and numbers are there?

With A–Z and 0–9, 2,176,782,336 (366).

How many combinations of 4 letters are there?

456,976 (264) with repeats, or 358,800 with no letter repeated.

What is the formula for letter and number combinations?

Multiply the choices at every position: 26 for a letter and 10 for a digit. LLDD = 26 × 26 × 10 × 10 = 67,600.

How many 8-character combinations of letters and numbers are there?

There are 2,821,109,907,456 combinations of 8 characters from A–Z and 0–9 (36⁸).

How many combinations of 2 letters and 2 numbers are there?

There are 67,600 combinations of 2 letters and 2 numbers in a fixed LLDD order.