Last edited 14 Oct 2021

Global Unique IDs (GUIDs)

Global Unique IDs (GUIDs, sometimes referred to as universally unique identifiers or UUIDs) are 128-bit numbers used to identify digital information, helping to reference them unambiguously. They are similar to the ISBN numbers used for books.

Because they are so large, GUIDs are virtually guaranteed to be unique. They are formatted in a well-defined sequence of 32 hexadecimal digits grouped as 8-4-4-4-12. This provides roughly 10^38 numbers. An example of how a GUID looks in hexadecimal:

30dd879c-ee2f-11db-8314-0800200c9a66

The probability of any two GUID's being the same is very low.

GUIDs can be used to identify information about anything, such as products, papers, webpages, etc.

The general types of GUIDs are:

  • Random: A random-number generator creates a 128-bit number.
  • Time-based: Based on the current time.
  • Hardware-based: Certain parts of the GUID are based on the hardware features, although this removes part of the anonymity of the number.
  • Content-based: Based on a hash of the file contents. This can be used if duplicate files need to have the same GUID.

Some of the common uses for GUIDs are as follows:

The advantages of GUIDs are that there is no central authority, and so no need for management. GUIDs can be generated internally and merged from different data sources with a low chance of any conflict.

However, the GUID itself may be larger than the database item it is keeping track of.

[edit] Related articles on Designing Buildings

Designing Buildings Anywhere

Get the Firefox add-on to access 20,000 definitions direct from any website

Find out more Accept cookies and
don't show me this again