Skip to content

In code

Generate a UUID in Python

The standard library's uuid module needs no dependencies.

Python example

Python
import uuid

print(uuid.uuid4())

No install? Use the tool or API

Here's a fresh version 4 UUID generated right now — copy it, or call the API from any language.

e2c97367-ac76-451b-882d-528c456d6414
curl https://getuuid.sh/api/uuid

Other languages

← Full API reference