Skip to content

UUID generator

Random v4 or time-ordered v7 UUIDs.

Output

Output appears here as you type.

What this does

Version 4 uses `crypto.randomUUID()`, which draws from the platform CSPRNG. Version 7 (RFC 9562) puts the current time in milliseconds first and fills the rest from the same CSPRNG, so ids made later sort later: the recommended choice for database keys. Both are suitable for real identifiers, not just placeholders.

Limits

  • Version 7 ids reveal roughly when they were made. Use version 4 where that matters.

Is this private?

Yes, and you can check rather than take our word for it. Open your browser's network tab and run the tool: your file never appears in it, because there is no server to send it to. The whole site is static files.

Related tools