UUID Generator

Utility API · UUID generation · v1/v4/v5 · Unique identifiers

TL;DR

The UUID Generator API creates universally unique identifiers on demand. Generate UUID v1 (time-based from MAC address), v4 (random), or v5 (SHA-1 namespace-based) in standard 8-4-4-4-12 format. Supports batch generation, different output formats (JSON, plain text), and configurable counts. Perfect for database keys, distributed systems IDs, and any application needing collision-free identifiers. No API key required.

Quick start: https://www.uuidtools.com/api/generate/v1

No API key needed — free UUID generation!

How to Use This API

1. Generate a UUID v4 (Random)

Returns a single random UUID v4:

https://www.uuidtools.com/api/generate/v4

2. Generate UUID v1 (Time-Based)

https://www.uuidtools.com/api/generate/v1

3. Generate Multiple UUIDs

https://www.uuidtools.com/api/generate/v4/count/10

4. JavaScript — Generate and Display

fetch('https://www.uuidtools.com/api/generate/v4')
  .then(r => r.json())
  .then(data => {
    console.log('Generated UUID:', data[0]);
    // Use as a database key
    const newRecord = { id: data[0], name: 'Example' };
  });

5. Python — Batch UUID Generation

import requests

# Generate 5 UUIDs for new records
resp = requests.get(
    'https://www.uuidtools.com/api/generate/v4/count/5'
).json()

for i, uuid in enumerate(resp):
    print(f"Record {i + 1}: {uuid}")
    # Use in SQL: INSERT INTO items (id, name) VALUES ('{uuid}', '...');

6. Generate UUID v5 from Namespace

https://www.uuidtools.com/api/generate/v5/namespace/6ba7b810-9dad-11d1-80b4-00c04fd430c8/name/hello
Generate UUID v4: https://www.uuidtools.com/api/generate/v4

Frequently Asked Questions

What UUID versions are supported?
UUID v1 (time-based from MAC + timestamp), v4 (random), and v5 (SHA-1 namespace-based). Each serves different use cases: v1 for time-ordered IDs, v4 for random IDs, v5 for deterministic IDs from a name.
How many UUIDs can I generate at once?
Use /count/{n} to generate multiple UUIDs in one request. Reasonable limits apply — typically up to 1000 per request for v4, fewer for v1 and v5.
Are the UUIDs truly random?
UUID v4 is generated using cryptographically strong randomness. UUID v1 encodes the current timestamp and a node identifier (usually MAC address). UUID v5 is deterministic from the input namespace and name.
Can I get the output in different formats?
Standard output is JSON array of UUID strings. Some endpoints support ?format=plain for plain text output (one UUID per line), useful for shell scripts.
Is there a rate limit?
UUIDTools is free for reasonable use. The service is designed for occasional generation and development use. For high-volume generation, use a client library.
What's the difference between UUID versions?
v1 is time-based (sortable but exposes MAC address), v4 is random (most common, 122 bits of randomness), v5 is namespace-based (same input = same UUID, useful for deduplication).

API Details

API URL
https://www.uuidtools.com/api/generate/
Documentation
uuidtools.com/docs
Category
Utility
Authentication
Not Required
Output Format
JSON (default), plain text

What You Can Build