UUID v4 generator
Generate version 4 (random) UUIDs in your browser. They use cryptographically secure randomness.
Generated UUIDs
Use this tool from AI agents
This tool's engine is available to AI agents over MCP as uuid_v4. Add the Clean.tools server, then your agent can call it directly.
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --transport http clean-tools https://mcp.clean.tools/mcp{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpOr call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:
curl -s https://api.clean.tools/v1/uuid_v4 \
-H 'content-type: application/json' \
-d '{"count":5,"uppercase":false}'curl -s https://api.clean.tools/v1/uuid_v4 \
-H 'content-type: application/json' \
-d '{"count":5,"uppercase":false}'const res = await fetch('https://api.clean.tools/v1/uuid_v4', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ count: 5, uppercase: false })
});
const data = await res.json();const res = await fetch('https://api.clean.tools/v1/uuid_v4', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ count: 5, uppercase: false })
});
const data = await res.json();UUID v4 generator
This generator produces UUID v4, version 4 (random) identifiers, using the browser's Web Crypto API. Version 4 is fully random, which makes it the default choice for most identifiers. Generate a batch above and copy them individually or all at once.
Everything runs locally. No cost, no signup, no tracking.
Frequently asked questions
What is the difference between v4 and v7?
Version 4 is random. Version 7 puts a millisecond timestamp in the high bits, so v7 values are time-sortable while still being unique. Use v7 when you want database keys that cluster by insertion time.
Can I use this from the command line or an AI agent?
Yes. It is a REST endpoint at https://api.clean.tools/v1/uuid_v4 and an MCP server you can add to Claude, Claude Code, or Cursor. The @clean-tools/mcp npm package runs it as a local stdio server.
More developer presets
Use Clean.tools from your AI agent
This tool is also uuid_v4 on the Clean.tools MCP server — the same engine, callable by your AI agent directly. No key, no signup: requests are processed in memory and request contents are never stored.
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpEvery tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →