How to generate a UUID
Generate a random UUID v4 for database keys, request IDs, or file names. Free online generator plus one-liners for popular languages.
A UUID is a 128-bit identifier you can create anywhere without coordination. Here is how to generate one instantly online, and the standard one-liner in each major language.
Online, in one click
Open our UUID generator and it produces a fresh v4 (random) UUID you can copy immediately — handy for a quick test ID, a database seed, or a config value. Nothing is stored server-side.
In code
Every modern platform has a built-in: JavaScript crypto.randomUUID(); Python uuid.uuid4(); Go via google/uuid’s uuid.NewString(); PHP with a library or random_bytes; and databases like Postgres with gen_random_uuid(). Prefer the platform’s cryptographically random source rather than rolling your own.
Step by step
Open the UUID generator and copy the generated v4 value.
For code, call your platform’s built-in: crypto.randomUUID() (JS), uuid.uuid4() (Python), gen_random_uuid() (Postgres).
Use it as a primary key, request/idempotency ID, or unique file name.
Prefer v4 (random); use v7 if you need IDs that sort by creation time.
Try it now — free, no signup
Use the UUID generator in your browser. Then, when you need it at scale with an API key and higher limits, grab the full Eveses API.