Skip to content

In code

Generate a UUID in Bash

The uuidgen command ships on most Unix systems; Linux also exposes a UUID via the kernel.

Bash example

Bash
uuidgen
# Linux box without uuidgen:
cat /proc/sys/kernel/random/uuid

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.

e41502cc-525d-4577-90b6-02d2ddd187a4
curl https://getuuid.sh/api/uuid

Other languages

← Full API reference