UUID generator

Need IDs for test data, a migration or a new table? Generate them in bulk. Version 4 is fully random; version 7 starts with the time, so rows sort in the order they were created.

How it works

  1. Choose the version.
  2. Set how many you need.
  3. Press Generate and copy the list.

UUID v4 or v7: which should I use?

v7 for database primary keys: it sorts by creation time, which keeps indexes compact. v4 when the ID must reveal nothing, not even when it was made.

Can two UUIDs collide?

In practice, no. A v4 UUID has 122 random bits; you would need to generate billions per second for decades to expect one repeat.

Are they generated securely?

Yes, from the operating system's cryptographic random source.

Use it from ChatGPT, Claude or your own agent

This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.

Fields

  • version ("v4" | "v7", optional): Version
  • count (integer, optional): How many
  • uppercase (true | false, optional): Upper case

A call that works

POST https://orkosi.com/api/v1/public/tools/uuid-generator/run
Authorization: Bearer <api_key>

{
  "input": {
    "version": "v7",
    "count": 5
  }
}

Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.

This tool as Markdown · Connect an AI assistant