UUID to Base62 (Short ID) Converter
Standard UUIDs are 36 chars. Base62 encoding (digits + lowercase + uppercase = 62 chars) packs the same 128 bits into 22 characters — handy for shorter URLs, more compact database keys, or paste-friendly identifiers. This tool converts both ways.
How to use the UUID to Base62 (Short ID) Converter
Pick a direction. UUID → Base62 takes any standard 36-character UUID and outputs a 22-character base62 string. Base62 → UUID reverses it, turning the short ID back into the canonical hyphenated UUID. The conversion is exact and lossless in both directions.
Packing 128 bits into 22 characters
A UUID is 128 bits of identifier, normally written as 32 hexadecimal digits with four hyphens — 36 characters in all. Hex is wasteful because it uses only 16 symbols per character. Base62 uses all the digits plus lower- and upper-case letters, 62 symbols, so the same 128 bits fit into 22 characters with nothing lost. The conversion simply reads the UUID as one big number and re-expresses it in base 62.
The payoff is shorter identifiers that are still URL-safe and easy to paste — the same idea behind Bitly-style short links and compact database keys. Because it is a pure change of base, it is fully reversible: every UUID maps to exactly one base62 string and back again, with no collisions and no loss of information.
Common use cases
- Shorter URLs — expose a 22-character ID in a link instead of a 36-character UUID.
- Compact keys — store identifiers in fewer bytes while keeping the full 128-bit value.
- Readable references — give users a shorter code to quote in support tickets or invoices.
- Decoding short IDs — turn a base62 identifier from a URL back into the UUID your database stores.
- API design — offer tidy public IDs without changing the UUIDs used internally.