Home / UUID Tools / UUID to Base64 Converter
UUID Tools

UUID to Base64 Converter

Convert UUID bytes to compact Base64/Base64URL locally with optional padding.

ReadyA UUID is exactly 16 bytes; standard padded Base64 therefore uses 24 characters.

Encode exactly 16 bytes

See standard and URL-safe alphabets in padded and unpadded forms together, plus the raw UUID bytes and a decode round-trip check.

RFC 9562 boundary

UUIDs are 128-bit values. Version meaning is interpreted only inside the appropriate variant, and representation conversion never changes the underlying 16 bytes.

Practical guide and verification

Use the tool first, then apply these checks to verify inputs, interpret the result, and hand it off without displacing the primary workflow.

Encode the UUID bytes, not the printed hyphens

A canonical UUID string represents 16 bytes written as hexadecimal groups with hyphens. A UUID-to-Base64 conversion should parse those 32 hexadecimal digits into the underlying 16 bytes before encoding. Base64-encoding the 36-character text string produces a different value, so record which representation is being converted when comparing results across tools.

Choose standard Base64 or Base64URL deliberately

Standard Base64 uses + and / and normally includes = padding, while Base64URL replaces those characters with - and _ and is often unpadded. Both can represent the same 16 UUID bytes. Match the variant required by the API, database, token format, or URL you are integrating with instead of assuming the strings are interchangeable.

Verify a round trip before storing compact IDs

For a migration or compact-key workflow, decode the Base64 value back to 16 bytes and reconstruct the canonical UUID. A successful round trip should reproduce the same hexadecimal UUID exactly. This catches a wrong alphabet, missing or mishandled padding, text-encoding mistakes, and accidental conversion of the displayed UUID characters instead of its bytes.

Do not infer UUID version from the Base64 shape

The encoded length and alphabet describe the byte representation, not the semantic UUID version. If version or variant matters, inspect the UUID bits after decoding. Treat Base64 as a transport representation only; it does not add randomness, secrecy, validation, or authenticity to the identifier.

Search by task, tool name, or category. Press Esc to close.
Start typing to find a tool.