# UUID generator

> Generate UUID v4 or v7 in bulk, and read the time stored in a v7 id.

Free UUID and GUID generator for version 4 and version 7. Create one id or a bulk list from cryptographic randomness, then inspect a UUID to see its version, variant, and v7 timestamp.

- Page: https://benchline.fabwaseem.com/t/uuid-generator
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: A version, a count, and an optional UUID to inspect.
- Output: A list of UUIDs, or the version, variant, and v7 timestamp of one UUID.
- Keywords: uuid generator, guid generator, uuid v4, uuid v7
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Choose v4 or v7.** Use v4 for a random id. Use v7 when the id should sort by time.
2. **Set how many you need.** One is enough for a single record. Raise the count for a fixture or a migration.
3. **Paste an existing UUID to inspect it.** The version and variant are read from the bits. A v7 id also shows the UTC time it was minted.

## Use it from an AI agent

MCP tool name: `generate_uuid`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/uuid-generator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Generate UUID version 4 or version 7 from cryptographic randomness, up to 10,000 at once, or inspect the version, variant, and v7 timestamp.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "action": {
      "default": "generate",
      "type": "string",
      "enum": [
        "generate",
        "inspect"
      ]
    },
    "version": {
      "default": "v4",
      "type": "string",
      "enum": [
        "v4",
        "v7"
      ]
    },
    "count": {
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    },
    "value": {
      "description": "UUID to inspect when action is inspect.",
      "type": "string"
    }
  },
  "required": [
    "action",
    "version",
    "count"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_uuid",
    "arguments": {
      "action": "generate",
      "version": "v4",
      "count": 1
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### What is the difference between UUID v4 and v7?

Version 4 is random. Version 7 starts with a unix timestamp in milliseconds, so ids sort roughly by creation time, then fills the rest with random bits.

### Where does the randomness come from?

crypto.getRandomValues. The ids are not invented by a language model and they are not a counter.

### Can I recover the time from a v4 UUID?

No. Version 4 has no timestamp. Version 7 does: the first 48 bits are the unix time in milliseconds.

### How many can I generate at once?

Up to 10,000. Copy or download the list as plain text, one id per line.

## Related tools

- [Hash generator](https://benchline.fabwaseem.com/t/hash-generator): MD5, SHA-1, SHA-256, and SHA-512 checksums for text or a file, with HMAC.
- [Password generator](https://benchline.fabwaseem.com/t/password-generator): Cryptographic passwords and passphrases, with an entropy strength meter.
- [JWT decoder](https://benchline.fabwaseem.com/t/jwt-decoder): Paste a JSON Web Token, read the claims, and verify the signature in the browser.
- [URL encoder and parser](https://benchline.fabwaseem.com/t/url-codec): Encode or decode a URL, then break the query string into parameters.
