Skip to content

In code

Generate a UUID in C#

System.Guid is built in; .NET 9+ adds time-ordered version 7.

C# example

C#
Guid.NewGuid().ToString();

// .NET 9+ — time-ordered v7:
Guid.CreateVersion7().ToString();

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.

ee881f72-7166-45df-ac3e-ed948262bd8a
curl https://getuuid.sh/api/uuid

Other languages

← Full API reference