๐Ÿ› ๏ธ Developer ยท Updated October 8, 2026 ยท 8 min read

Generate UUID or GUID Online: Formats and v4 vs v7

v4 random v7 ordered ๐Ÿ†”

To generate a UUID or GUID online, open GrabCast's UUID Generator, set Count and click Generate: you get random version 4 values in the standard lowercase, hyphenated form, which .NET, SQL Server, PostgreSQL and Java all accept. GUID is simply Microsoft's name for the same 128-bit identifier, so there is nothing separate to convert. What does differ between ecosystems is presentation and ordering: braces or none, upper or lower case, how the bytes are laid out in binary, and whether a random v4 or a time-ordered v7 suits your database. This guide is written for .NET developers, database administrators and anyone moving identifiers between Windows tooling and the rest of the stack, and it explains each of those differences with concrete examples.

๐Ÿ†” Try the UUID Generator tool now โ€” freeOpen โ†’
UUID Generator showing a batch of five version-4 GUIDs generated in the browser
Five random v4 identifiers, ready for tokens or keys.
๐Ÿ’ก Why format and version details bite later

A GUID copied from Visual Studio, a UUID from a Linux server and a value from a browser can all describe the same kind of identifier yet fail a string comparison, because one is uppercase inside braces and another is lowercase without them. In binary form, Microsoft's layout stores the first three groups in reverse byte order, so a value converted carelessly between a .NET byte array and a PostgreSQL column comes out scrambled. The version choice matters too: on a table with tens of millions of rows, random keys and time-ordered keys behave very differently in an index. None of this shows up in a demo; all of it shows up in production.

UUID and GUID: same value, different habits

The layout is identical: 128 bits written as 32 hex digits in 8-4-4-4-12 groups. The habits around it differ by platform.

When a comparison fails between two values that look alike, normalize both to lowercase without braces before assuming they are different.

Byte order and sorting surprises on Microsoft platforms

The text form is universal, but binary storage is not. The .NET Guid.ToByteArray method writes the first three groups little-endian, so the bytes of 3f2b8c1e begin 1e 8c 2b 3f, while PostgreSQL and most other systems store them in the order you read them.

Random v4 or time-ordered v7

Version 4 fills 122 bits with randomness and reveals nothing about when it was made. Version 7, standardized in RFC 9562 in May 2024, starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so values created later sort after earlier ones.

Time-ordered IDs carry a timestamp, which you can inspect with the Unix Timestamp Converter. For a fingerprint of data rather than an ID, use the Hash Generator.

Getting each version from the right tool

The GrabCast generator produces version 4 only, using the browser's crypto.randomUUID function, up to 100 values per click, one per line. That covers test data, config entries, registry keys and seed rows. For version 7, generate the value where the row is created, so the timestamp is accurate.

If you paste online-generated values into a Windows tool that expects braces, add them around the lowercase value; the parser does not care about case.

Step-by-step

1234
1Decide whether you need random values, which the online tool makes, or time-ordered v7 values, which should come from your database or runtime.
Count field set to 5 on the UUID Generator before generating a small batch of GUIDs
Choose how many identifiers you want; the tool makes random version-4 UUIDs.
2Open the UUID Generator, enter a Count from 1 to 100 and click Generate.
Five random v4 UUIDs listed one per line, each with 4 as the first digit of the third group
Every value is a version-4 UUID: the third group always starts with 4.
3Click Copy and, if your target expects the Windows style, wrap each value in braces or convert it to uppercase.
Copied confirmation on the Copy button with the five GUIDs ready to paste into a UUID column
Copy the list and store each value in a native UUID column.
4Store the values as text or in a native uuid or uniqueidentifier column, never as raw bytes copied between platforms.

Common mistakes to avoid

โš ๏ธComparing a braced uppercase GUID with a lowercase UUID as plain strings and concluding they differ.
โš ๏ธCopying a .NET byte array into another database's binary column and scrambling the first three groups.
โš ๏ธExpecting a v7 time prefix to keep SQL Server inserts sequential, when that engine sorts from the last byte group.
โš ๏ธUsing time-ordered IDs in public links where revealing account creation dates is a privacy concern.

Pro tips

โœ“Normalize stored identifiers to one case and one style, with or without braces, and enforce it in code.
โœ“Use the tool's random values for fixtures, registry entries and config keys, where ordering does not matter.
โœ“Benchmark with realistic volume before switching a primary key from v4 to v7; small tables rarely show a difference.
โœ“Keep a separate created_at column even with v7 keys, since millisecond precision and clock drift limit the embedded time.
โœ“Document which version each column uses so later developers do not mix them.

Frequently asked questions

Is a GUID different from a UUID?

No. GUID is Microsoft's name for the same 128-bit identifier. Differences are only in display style, such as uppercase letters and braces, and in how .NET lays out the bytes in binary.

Does the online generator make GUIDs Windows will accept?

Yes. Its random version 4 values are valid GUIDs. Add braces if a specific tool or registry file expects them.

Can I generate v7 with the GrabCast tool?

No. It produces version 4 only. Use uuidv7() in PostgreSQL 18, Guid.CreateVersion7() in .NET 9 or uuid.uuid7() in Python 3.14 instead.

Which version is best for a primary key?

For very large, write-heavy tables in databases such as PostgreSQL or MySQL, v7 usually indexes better. For small tables, public IDs and tokens, v4 is simpler and reveals nothing.

Why does SQL Server sort my GUIDs strangely?

It compares uniqueidentifier values starting from the last byte group, so the order differs from a text sort and from PostgreSQL.

๐Ÿ“Œ Bottom line

A UUID and a GUID are the same identifier with different platform habits. Generate random v4 values online for fixtures and config, normalize case and braces before comparing, move values between systems as text rather than raw bytes, and create time-ordered v7 keys inside your database or runtime when index locality on big tables matters.

Open the UUID Generator tool โ†’

Related guides

Browse more: all text and developer guides ยท the UUID Generator tool