WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

CreateUUID []

creates a random, universally unique UUID string.

CreateUUID ["base"]

appends a UUID string to the specified base string.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Properties & Relations  
See Also
Related Guides
History
Cite this Page

CreateUUID []

creates a random, universally unique UUID string.

CreateUUID ["base"]

appends a UUID string to the specified base string.

Details

  • CreateUUID [] gives a UUID based on a 128-bit number, formatted as 32 hexadecimal digits grouped in the format 8-4-4-4-12.
  • CreateUUID [] is intended to produce a globally unique string that will statistically never be repeated.
  • CreateUUID [] makes use of detailed local system and session information, as well as absolute time.
  • CreateUUID [] is intended to generate a random distribution of UUIDs.
  • Some Wolfram System features depend on assuming the UUIDs will not collide.

Examples

open all close all

Basic Examples  (1)

Create a random UUID:

Include a custom string:

Scope  (2)

Create a random UUID:

Evaluating again gives a distinct UUID:

Create a random UUID using an explicit prefix:

Evaluating again gives a distinct UUID:

Properties & Relations  (1)

Convert a UUID to a 128-bit integer:

Wolfram Research (2014), CreateUUID, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateUUID.html.

Text

Wolfram Research (2014), CreateUUID, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateUUID.html.

CMS

Wolfram Language. 2014. "CreateUUID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CreateUUID.html.

APA

Wolfram Language. (2014). CreateUUID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateUUID.html

BibTeX

@misc{reference.wolfram_2025_createuuid, author="Wolfram Research", title="{CreateUUID}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CreateUUID.html}", note=[Accessed: 16-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_createuuid, organization={Wolfram Research}, title={CreateUUID}, year={2014}, url={https://reference.wolfram.com/language/ref/CreateUUID.html}, note=[Accessed: 16-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /