Base62 Converter (Short URLs)
Convert decimal numbers to Base62 (0-9, A-Z, a-z) and back. This is the scheme URL shorteners use to turn IDs into short codes.
Base62
β
Turning sequential IDs into short codes
Your table hands out autoincrement ids and you would rather ship /3D7 than /12345. Base62 is the standard shortener trick: the same number written in a 62-symbol alphabet takes roughly half the characters. Type a decimal value into the field and the code appears immediately, so you can sanity-check a mapping without deploying anything first.
Inside it is repeated division by 62. Each remainder indexes the alphabet 0-9, then A-Z, then a-z, and digits stack up from most significant to least. So 62 becomes 10, 61 becomes z, and 12345 becomes 3D7. Watch that ordering: several popular libraries place lowercase before uppercase, and the same id then produces a code that does not match what you see here.
Three things worth checking. The field holds a floating-point number, so past 9007199254740992 (two to the 53rd) the output goes quietly wrong. Negative values are flipped to positive and decimals are truncated with no warning. And the page only goes decimal to Base62, despite the description promising a round trip. Also keep in mind that sequential codes are walkable: if the link must stay private, scramble the id before encoding it.
Frequently asked questions
Can I convert Base62 back to a number?
Why does my library produce a different code?
What is the largest number I can trust?
Related Tools
Numeric Bases Converter
Convert numbers between binary (base 2), decimal (base 10), hexadecimal (base 16) and octal (base 8). Type in any field for instant conversion in the others.
dBu to Volts RMS Converter
Convert a level in dBu to RMS voltage against the 0.7746 V reference (1 mW into 600 Ξ©): V = 0.7746 Γ 10^(dBu/20). Pro line level, +4 dBu, is 1.228 V.
Gwei to ETH Converter
Convert values between gwei and ETH, the units of Ethereum. Essential for calculating gas fees and working with transactions on the ETH network.
Base32 Encoder / Decoder
Encode text to Base32 or decode Base32 strings back to the original.
Base58 Encoder / Decoder
Encode text to Base58 or decode Base58 strings back to the original. Used in cryptocurrencies like Bitcoin.
CSS px to em Converter
Converts pixels to em and back against the parent font size, 16px by default: 24px is 1.5em. Unlike rem, the base is the parent element, not :root.