GUID Generator
Generate GUIDs the way Windows, .NET and SQL Server write them: upper case, in braces, or plain. One or up to 10,000 at once, made in your browser.
Runs in your browser. Nothing you enter is uploaded.
How to use
This page generates GUIDs, the 128-bit identifiers Windows, .NET and SQL Server use for records, COM classes, installer products and much else.
- A new GUID is ready when the page loads, written the registry's way: capitals inside braces, such as {3F2504E0-4F89-41D3-9A0C-0305E82C3301}.
- Prefer another form? Uppercase, Braces { } and No hyphens switch each part on and off, and the page remembers your choice. C# code and JSON usually want lowercase without braces.
- Set How many for a batch, up to 10,000, and press Generate. They come one a line.
- Copy puts them on the clipboard; Download .txt saves a file for a script or a spreadsheet.
- Under Version, v4 is the random kind that Guid.NewGuid() and NEWID() produce. v7 starts with the time, so rows sort by creation and database indexes stay compact. v5 turns a name into the same GUID every time.
Check a GUID at the bottom tells you whether a pasted value is well formed and which version it is, and reads the creation time out of a v7.
The random part comes from the browser's cryptographic generator, the same quality of randomness the operating system gives its own GUIDs. They are made on your device: no server hands them out, so nobody else has seen the ones you copy.
A GUID is an identifier, not a secret. Don't use one as a password or an access token just because it looks random.
Frequently asked questions
What format do C#, SQL Server and the Windows registry expect?
The registry and COM write GUIDs in capitals inside braces. C# accepts every form in Guid.Parse and prints lowercase with hyphens by default. SQL Server shows a uniqueidentifier in capitals with hyphens and no braces. Use the three switches to match.
How do I generate many GUIDs for a script or a spreadsheet?
Set How many to the number you need, up to 10,000, and press Generate. Copy pastes them into a column, one per row; Download .txt gives a file a script can read line by line.
Why does every GUID here have a 4 in the same place?
That digit is the version. The first character of the third group is 4 in a random (version 4) GUID and 7 in a time-ordered one, and the first character of the fourth group is always 8, 9, A or B. The other 122 bits are random.
Related tools
- UUID generator Generate random v4, time-ordered v7 or name-based v5 UUIDs in your browser.
- Password generator Create strong random passwords or passphrases in your browser, one at a time or up to 1,000 at once.
- Hash generator Get CRC32, MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files, make HMACs, and check a download against its checksum or a SHA256SUMS file.
More generators
- QR code generator Make QR codes for links, Wi-Fi, contacts, text messages, places and more.