UUID to Byte Array & Base64 Converter

Convert any valid UUID into multiple data structures, including Byte Arrays, Base64 strings, and URNs in real-time.

Local Browser Execution. No network requests.
Standard
Hex (32-char)
URN Format
Base64 String
Byte Array (Int)

Supported Formats

  • Standard: 36-character hyphenated format (8-4-4-4-12).
  • Hex: 32-character hexadecimal format without hyphens.
  • URN: Standard XML Uniform Resource Name format starting with urn:uuid:.
  • Base64: 16-byte buffer encoded into a URL-safe Base64 string.
  • Byte Array: A 16-item integer array for languages like Java and C#.

How to Use

  1. Paste Input: Provide a valid UUID in the main input field. It accepts strings with or without brackets and hyphens.
  2. Automatic Conversion: The tool parses the underlying bytes and generates all five formats simultaneously.
  3. Copy Result: Click the copy button next to your desired output structure to add it to your clipboard.

Why Convert UUID Formats?

Premise: Software systems store and transmit UUIDs in varying structures based on legacy constraints, database optimizations, or API standards. A backend database might require a strict 16-byte array for performance, while an API frontend requires a compressed Base64 string to save bandwidth.

Evidence: By abstracting a 36-character string into raw bytes, developers can re-serialize the same unique identifier into a compact 22-character Base64 payload or a raw database blob. These conversions happen without altering the underlying cryptographic identity.

Conclusion: A reliable UUID format converter gives engineers the flexibility to migrate identifiers across system layers, adapting the structure to fit the specific requirements of databases, language runtimes, and network protocols.

Frequently Asked Questions

How do you convert a UUID to a byte array?

A standard UUID is a 128-bit number, which translates to exactly 16 bytes. To convert a UUID to a byte array, strip out the hyphens to leave 32 hexadecimal characters. Then, parse every two characters as a single byte (hex base 16) to form an array of 16 integers.

Why would you convert a UUID to Base64?

Converting a UUID to Base64 reduces its length from 36 characters down to 22 or 24 characters. This shorter, URL-safe format is often used to compress data in API payloads, query parameters, or storage systems where space is limited.

What is the difference between UUID standard and hex format?

The standard UUID format consists of 36 characters, which includes 32 hexadecimal digits separated by four hyphens (e.g., 8-4-4-4-12 grouping). The hex format simply removes the hyphens, leaving a 32-character string that is easier to store natively in some legacy databases.

Related Developer Tools

UUID Decoder & Validator → ULID Generator All UUID Tools