/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.

GET plain HTTP ok no signupnothing stored
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

Parameters

InputWhat it does
?n=How many UUIDs to return (1 by default), up to a sane maximum.
Accept: application/jsonReturn 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