/uuid Version-4 UUID Generator
Cryptographically-random RFC 4122 v4 UUIDs, one per line — ready to pipe into a script or paste into a migration. Ask for one, or a whole batch.
curl curlhub.sh/uuid
Usage
With curl
curl curlhub.sh/uuid
curl curlhub.sh/uuid?n=5
With the CLI
curlhub uuid
curlhub uuid?n=5
Structured output for scripts
curl -s 'curlhub.sh/uuid?n=3' -H 'Accept: application/json'
Output
curl curlhub.sh/uuid
2455d8a9-ccc9-4ed9-92fa-2670afea6d37
Parameters
| Input | What it does |
|---|---|
?n= | How many UUIDs to return (1 by default), up to a sane maximum. |
Accept: application/json | Return a JSON array of UUIDs instead of newline-delimited text. ?format=json works too. |
Recipes
Seed a row without uuidgen
curl -s curlhub.sh/uuid
No local uuidgen, no language runtime — just an ID you can pipe straight into psql or a fixture.
Five at once
curl -s curlhub.sh/uuid?n=5