What is Base62 Tool?
Base62 is a positional numeral system that uses 62 characters: 0-9, A-Z, and a-z. It is essentially Base64 without the special characters '+' and '/' (and usually without padding). This makes it extremely popular for URL shortening services (like YouTube's youtu.be links) because the resulting strings are URL-safe, compact, and do not contain any non-alphanumeric characters that might be stripped or modified by some systems. Unlike Base36, Base62 is case-sensitive, allowing it to store more information in fewer characters.
Input Formats
- Integers (for conversion)
- Plain text
- Base62 strings
Output Results
- Base62 string
- Decoded integer/text
- Copy-ready result
Key Features
Who is this for?
URL Shorteners
Creating the shortest possible URL slugs (e.g., bit.ly/3hQ2vP).
Unique IDs
Generating compact, unique identifiers for database records exposed in URLs.
Obfuscation
Hiding sequential database IDs (like 1, 2, 3) by converting them to random-looking Base62 strings.
How to Use
Paste your text or number.
Select 'Encode' to convert to Base62.
Select 'Decode' to convert back.
Copy the result.
Examples
Input
Hello WorldOutput
73XpUgyMwkGrCommon Errors
- Assuming case-insensitivity (Base62 is case-sensitive)
- Confusing with Base64 (Base62 has no + or /)
- Using symbols (only 0-9, A-Z, a-z allowed)
Code Examples
JavaScript (base62)
const base62 = require('base62');
const encoded = base62.encode(12345);
console.log(encoded); // '3D7'