How to generate a UUID
- Pick v4 (random) or v7 (time-ordered).
- Choose how many and the format.
- Copy one UUID or all of them.
Frequently asked questions
- Q. UUID v4 or v7 – which should I use?
- v4 is fully random and the most common. v7 starts with a timestamp, so new IDs sort in creation order – better for database primary keys and indexes.
- Q. Can two UUIDs collide?
- Practically never. A v4 UUID has 122 random bits; you would need to generate billions per second for many years before a collision becomes likely.
Related tools
- JSON FormatterFormat, validate and minify JSON with clear error messages. Runs in your browser.
- Base64 Encode / DecodeEncode text to Base64 or decode Base64 to text, with full UTF-8 and URL-safe support.
- Unix Timestamp ConverterConvert Unix timestamps (seconds or milliseconds) to dates and dates to timestamps.
- Hash GeneratorCalculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.
Last updated: