What is a Short UUID?
A Short UUID is a compressed, URL-safe representation of a standard 128-bit Universally Unique Identifier (UUID). While a standard UUID (like v4) such as 550e8400-e29b-41d4-a716-446655440000 requires 36 characters (including hyphens) to display in hexadecimal format, a Short UUID encodes the exact same underlying binary data into a more compact Base62 string (e.g., 7N1cZl2b6X9dY8eW5aV4cU), which only takes up 22 characters.
Why Convert UUIDs to Base62?
UUIDs are the industry standard for database primary keys because they prevent collisions in distributed systems. However, their 36-character hexadecimal format creates significant UI and UX problems for developers:
- Ugly URLs: If you use a UUID to identify a user profile or a public video, the URL becomes incredibly long and intimidating to users (e.g.,
example.com/video/123e4567-e89b-12d3-a456-426614174000). - QR Code Density: Embedding a 36-character string into a QR code creates a dense, complex matrix that is harder for low-quality cameras to scan.
- Storage Constraints: While modern databases store UUIDs as 16-byte binary blobs, APIs often transmit them as 36-byte strings.
By using a UUID to Base62 Converter, you solve all these problems instantly. You retain the cryptographic uniqueness of the 128-bit UUID, but gain a clean, YouTube-style short identifier that is perfect for public URLs.
How Does the Conversion Work?
Converting a UUID to a Short UUID does not involve databases, lookup tables, or external servers. It is a pure mathematical conversion.
- Strip Hyphens: The 4 hyphens are removed from the standard UUID string, leaving a 32-character hexadecimal string.
- Convert to Integer: The hexadecimal string is mathematically evaluated as a massive 128-bit integer (Base-10).
- Encode to Base62: That massive integer is continually divided by 62 to encode it into the Base62 character set (
0-9,A-Z,a-z).
Because the conversion is mathematical, it is completely bidirectional. You can always pass your 22-character Short UUID back into the UUID decoder tool to retrieve your original 36-character standard format.
Is Base62 URL-Safe?
Yes. Base62 uses only alphanumeric characters: 10 numbers, 26 uppercase letters, and 26 lowercase letters. Unlike Base64, which includes special characters like +, /, and = that can break URL routing or require URL-encoding, Base62 is natively URL-safe. You can inject a Short UUID directly into a URL path or query parameter without worrying about escaping special characters.
How to Convert a UUID to Base62
- Paste your standard 36-character UUID (e.g.,
550e8400-e29b-41d4-a716-446655440000) into the input box above. - Click the Shorten UUID button.
- The tool will instantly compress it into a 22-character Base62 string (e.g.,
7N1cZl2b6X9dY8eW5aV4cU). Click Copy to use it in your URLs.
Frequently Asked Questions
Is a Short UUID still globally unique?
Yes. A Short UUID contains the exact same 128-bit underlying data as a standard UUID. It simply uses a larger alphabet (Base62 instead of Base16 Hexadecimal) to display that exact same data in fewer characters. There is zero loss of entropy or uniqueness.
Does this tool store my UUIDs?
No. As stated in our privacy badge, the entire Base62 encoding and decoding process is executed 100% locally inside your web browser using JavaScript. No data is ever transmitted to or stored on our servers.