UUID v4 Example
UUID v4 is random. The 4 in position 13 indicates version 4.
550e8400-e29b-41d4-a716-446655440000
UUID Components
A UUID consists of 32 hexadecimal digits in the format: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
- M: Version number (1-5)
- N: Variant (8, 9, a, or b for standard UUIDs)
Code Examples
// JavaScript crypto.randomUUID(); // Generate v4 UUID # Python import uuid str(uuid.uuid4()) # Generate v4 UUID # Command line (Linux) uuidgen