GUID Code Samples

Check out the code samples to create GUIDs in your programming language of choice.

New to UUIDs? Learn about UUID Versions (v1, v3, v4, v5) and when to use each one.

Modern Languages (2025)

Python
Go (Golang)
Rust
TypeScript
JavaScript
C#
Java
PHP
Ruby
Swift / Objective-C
SQL / TSQL
C/C++
Haskell (Functional programming)

Legacy

ASP.NET (Classic ASP.NET)
Visual Basic (VB.NET) (Legacy)
iPhone SDK (Objective-C) (Use Swift instead)

Obsolete Technologies

Note: The following technologies are no longer actively maintained or recommended for new projects. Code samples are preserved for historical reference only.

ActionScript3 (Flash EOL: Dec 31, 2020)