 # URL Shortener

## How many short urls can be created with only (3,4,5,6...) characters?

A URL Shortener is a service that create a short text (usually with 3 to 6 characters long) to represent a long URL. So the questions are "Will URL Shorteners run out of links?", "How many URLs can be shortened with a URL shortener?".

Considering that short URLs are using letters (from "A to Z" and "a to z") and numbers (from "0 to 9"), there are 26+26+10=62 distinct characters that can be used. The longer the short url is, the higher number of distinct combinations (number of distinct URLs that can be shortened).

So there are more than 56 bilion combinations of strings (using only 6 characters) that can be used to represent a long URL.

Number of
characters
Number of
combinations
String
Examples
1 621 = 62 a, b, 1, 2
2 622 = 3.844 9X, aB
3 623 = 238.328 xy4, LnK
4 624 = 14.776.336 kY3v
5 625 = 916.132.832 tGh32
6 626 = 56.800.235.584 2AjHg8
7 627 = 3.521.614.606.208 u3gGbc8
8 628 = 218.340.105.584.896 ShortLnk
9 629 = 13.537.086.546.263.552 VtE4o1mng