UUID v7 includes a millisecond timestamp and is not appropriate for passwords, sessions or secret access tokens.
How to use this uuid v7 generator
- Keep UUID v7 selected for time-ordered identifiers.
- Choose how many UUIDs you need, then select Generate UUIDs.
- Copy the generated UUID v7 values into your database, events or test data.
What is a UUID v7?
UUID v7 is a standard identifier format defined by RFC 9562. Its first 48 bits contain the Unix timestamp in milliseconds, followed by a version marker and 74 random bits. That layout lets values from later milliseconds sort after earlier ones while keeping distributed generation local and coordination-free.
How is UUID v7 different from UUID v4?
UUID v4 is random and contains no timestamp, so its values do not naturally sort by creation time. UUID v7 keeps the familiar 36-character UUID format but starts with a timestamp, which can improve index locality for append-heavy database tables and makes chronological event ordering easier to inspect.
Is a UUID v7 safe to use as a secret?
No. UUID v7 exposes when it was generated, and UUIDs are identifiers rather than credentials. Use v7 for database records, events and logs that benefit from time order. Use an established token generator for password resets, sessions, API keys or any value that must remain unpredictable.