Base62 is a binary-to-text encoding using 62 characters: digits 0-9, uppercase letters A-Z, and lowercase letters a-z. It\'s commonly used for URL shortening, unique identifiers, and compact data representation.
⚠Base62 uses the character set: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz. Values: 0-9:0-9, 10:A, 11:B, ..., 35:Z, 36:a, ..., 61:z. Base62 is case-sensitive, so 'A' and 'a' are different characters.
What Is Base62?
Base62 is a binary-to-text encoding scheme that uses 62 characters: digits 0-9, uppercase letters A-Z, and lowercase letters a-z. It's commonly used for URL shortening, unique identifiers, and compact data representation because it's URL-safe and very compact.
URL-Safe & Compact
Base62 uses only URL-safe characters and is extremely compact. 62⁶ = 56,800,235,584 combinations, making it perfect for URL shortening.
Place Value Expansion
Base62 to decimal: multiply each digit by 62^position. For example, 1A8₆₂ = 1×3844+10×62+8×1 = 4472₁₀.
Repeated Division by 62
Decimal to Base62: repeatedly divide by 62, collect remainders, and read in reverse. Use the Base62 character set for conversion.
Practical Applications
Base62 is used for URL shortening, unique IDs, session tokens, short links, and any application needing compact, URL-safe identifiers.
💡 Teaching Example: Convert Base62 1A8₆₂ to decimal. Place value expansion: 1×62²+10×62¹+8×62⁰ = 1×3844+10×62+8×1 = 3844+620+8 = 4472₁₀. Conversely, 4472₁₀: 4472÷62=72 r8, 72÷62=1 rA, 1÷62=0 r1 → 1A8₆₂.
Base62 is a binary-to-text encoding scheme that uses 62 characters: digits 0-9, uppercase letters A-Z, and lowercase letters a-z. It\'s commonly used for URL shortening, unique identifiers, and compact data representation because it\'s URL-safe and very compact.
How do you convert Base62 to decimal?▼
Place value expansion: multiply each Base62 character by its power of 62, then sum. For example, 1A8₆₂ = 1×62²+10×62¹+8×62⁰ = 1×3844+10×62+8×1 = 3844+620+8 = 4472₁₀.
How do you convert decimal to Base62?▼
Repeated division by 62: repeatedly divide by 62, collecting remainders. Use the Base62 character set for digits 10+. Read remainders in reverse. For example, 4472÷62=72 r8, 72÷62=1 rA, 1÷62=0 r1 → 1A8₆₂.
Why is Base62 popular for URL shortening?▼
Base62 is popular for URL shortening because it uses only URL-safe characters (no special symbols), is very compact (62⁶ = 56 billion combinations), and is case-sensitive for maximum possible combinations. It strikes an excellent balance between compactness and readability.
Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.