Random GUID Generator

Generates 128-bit GUIDs in the classic Microsoft/.NET presentation — uppercase hex digits, hyphenated 8-4-4-4-12 grouping, wrapped in curly braces — with toggles for braces and case, distinct from this site's UUID Generator which produces the lowercase, unbraced RFC 9562 form. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

A GUID (Globally Unique Identifier) is Microsoft's name for the same 128-bit value concept later standardized industry-wide as the UUID, and Windows tooling has its own long-standing textual convention for displaying one.

This generator produces that Microsoft-style presentation directly — uppercase, hyphenated, and brace-wrapped — so you don't have to manually reformat output from a generic UUID tool.

What Is Random GUID Generator?

A random 128-bit identifier generator whose default output format matches what Windows APIs like CoCreateGuid and .NET's Guid.ToString("B") produce.

Unlike this site's UUID Generator, it does not force RFC 9562 version/variant bits — it's the plain 128 random bits Microsoft's original GUID concept represents, formatted for Windows-facing use.

How Random GUID Generator Works

16 random bytes are drawn from crypto.getRandomValues(), the Web Crypto API's cryptographically secure random source.

The bytes are hex-encoded and grouped 8-4-4-4-12 with hyphens, matching the standard GUID text layout.

Case and brace-wrapping are then applied based on the selected toggles, defaulting to uppercase with braces.

When To Use Random GUID Generator

Use this when pasting an identifier into a Windows registry key, a COM CLSID/IID entry, or any .NET config file that expects the brace-wrapped uppercase form.

Use the plain UUID Generator instead when you need RFC 9562 compliance (correct version/variant bits) for cross-platform systems, databases, or APIs.

Features

Advantages

  • Matches Windows/.NET conventions out of the box, saving a manual reformat step.
  • Uses a cryptographically secure random source for every generated value.
  • Braces and case are independently toggleable for whatever target format you need.

Limitations

  • Does not set RFC 9562 version/variant bits, so the output isn't guaranteed to validate against strict UUID-version parsers the way this site's UUID Generator's output does.
  • Batch generation does not check for duplicates across the returned set.

Examples

Default Microsoft-style GUID

Input

(no input; generated from settings)

Output

{9D5E2F7A-6B1C-4E3D-8A9F-0C2B4D6E8F10}

Uppercase hex, hyphenated, wrapped in braces — the CoCreateGuid presentation.

Braces and case both disabled

Input

(no input; generated from settings)

Output

9d5e2f7a-6b1c-4e3d-8a9f-0c2b4d6e8f10

Plain lowercase hyphenated hex, matching a generic UUID's textual shape.

Best Practices & Notes

Best Practices

  • Use the default brace-wrapped uppercase form for Windows registry and COM-related configuration.
  • Strip braces before embedding a GUID inside a URL or JSON string, since braces aren't valid in either without escaping.
  • Prefer the UUID Generator when the target system validates RFC 9562 version bits.

Developer Notes

The formatter is intentionally separate from this site's UUID generator code path — it does not touch the version/variant nibbles at all, since a classic Microsoft GUID has no such requirement, only the 8-4-4-4-12 hex layout.

Random GUID Generator Use Cases

  • Populating a Windows registry CLSID/IID entry
  • Generating a placeholder GUID for a .NET config file or appsettings.json
  • Producing GUIDs for COM component identifiers in documentation

Common Mistakes

  • Pasting a brace-wrapped GUID directly into a context (like a URL path) that doesn't expect literal { } characters.
  • Assuming this output carries RFC 9562 version/variant semantics the way the UUID Generator's does.

Tips

  • Disable braces when you only need the bare hex-and-hyphens identifier.
  • Batch-generate a handful at once when scaffolding multiple COM interface IDs for a project.

References

Frequently Asked Questions