UUID Generator (v4 & v7)
Generate one or thousands of universally unique identifiers instantly. Supports random UUID v4 and time-ordered UUID v7 (great for database primary keys), with output as plain text, JSON, CSV or ready-to-run SQL. Everything runs locally in your browser using the Web Crypto API — nothing is sent to a server.
Do more than uuid generator (v4 & v7) — meet Chat2DB
Chat2DB is an AI-powered SQL client for Windows, macOS and Linux. Write SQL in natural language, format and optimize queries automatically, and manage MySQL, PostgreSQL, Oracle and 20+ other databases in one workspace.
How to use
- Choose the UUID version (v4 random, or v7 time-ordered for database keys) and how many you need.
- Pick formatting options: case, hyphens and output format (plain, JSON, CSV, SQL INSERT or SQL IN clause).
- Click Generate and copy the result into your code or SQL client.
Frequently asked questions
What is the difference between UUID v4 and UUID v7?
UUID v4 is fully random (122 bits of entropy). UUID v7, standardized in RFC 9562, starts with a 48-bit Unix timestamp, so values generated later sort after earlier ones. That ordering makes v7 much friendlier to B-tree indexes, which is why it is the recommended choice for database primary keys.
Are these UUIDs cryptographically secure and unique?
The generator uses the browser's Web Crypto API (crypto.getRandomValues), a cryptographically strong random source. Collisions are so improbable they can be ignored in practice: you would need to generate billions of UUIDs per second for decades to have a meaningful chance of a duplicate.
Can I insert these UUIDs into MySQL or PostgreSQL?
Yes. Choose the SQL INSERT output format to get ready-to-run statements. PostgreSQL has a native uuid type, and MySQL stores UUIDs as CHAR(36) or BINARY(16). To explore and query those tables visually, Chat2DB — a free AI-powered SQL client — works with MySQL, PostgreSQL and 20+ other databases.
