Thousands of tools! Check out Online Tools – I have now added thousands of tools.
I often have to generate random UUIDs so I created this simple online utility that does it for me. It lets you generate however many random universally unique identifiers you need with any version number and variant number. It works in the browser and is powered by alien technology from the future.
Random Uuid Generator Options
Random Uuid Generator Examples (click to try!)
b505d776-f1e8-4cf9-a9fa-22e488693deb a0428c39-61f2-4ce4-9c8d-659f6c37d218 a42634b9-0c0a-4d7d-a697-e28d0b318819 704fbd23-98bc-4e72-b747-0edae1d681d1 bae0ed8b-dbd6-4ce3-986d-8548b88986a4 da729b7e-976b-42a5-8cfb-2270063e2926 c2ee8e66-7644-427a-a4b0-4d0a86f7fc7e 90aa1111-992e-47fe-9e01-eb9b9e28efc2 e59efdf7-be3c-461c-b949-016b72798f32 050f72ed-d5d1-4339-b261-bb1ead9e5c1e
urn:uuid:{e35991e0-e330-1730-12e3-1b82c3a8a190}, urn:uuid:{f1629784-3401-185f-0521-90415fa45179}, urn:uuid:{bba794f2-4988-1b03-39db-f4969fe2d38e}, urn:uuid:{68652ad2-45a1-1882-4856-5952a820f4f2}, urn:uuid:{7614eb3c-77e1-1745-1b39-c36cd463e689}, urn:uuid:{42eeebb6-6147-1d4e-78a3-0f9e717d71fb}, urn:uuid:{f66def4f-c018-1e7d-4a5a-956e4210eea6}, urn:uuid:{37cb89d7-1b46-198a-640f-fe6284d1fe85}
3A403EA6-A991-2061-EFCC-1BF1DA1F9FF4 E4C6A120-8011-2303-E4C9-54D18495BAC5 2A79F5FC-5A18-2774-F4B6-44E85A079083 6176424D-71A3-2D7E-F5D3-41C6DF011C3C 2DAA089D-3DEE-2BA8-EA59-0AD0EF046A71
How Does This Random Uuid Generator Work?
This random UUID generator works entirely in your browser and is written in JavaScript. A UUID is a unique identifier that is a 16-byte (128-bit) hexadecimal number that's often used in databases and software development. By default, it consists of five hyphen-separated groups in the format xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
, which the program keeps in the pattern
variable. If the hyphens are disabled, the pattern is set to xxxxxxxxxxxxMxxxNxxxxxxxxxxxxxxx
. The values x
are arbitrary and can take any hex digit from 0-f
but the values M
and N
are special and can take only certain values. To create random UUIDs, the program starts a for
loop and runs it count
times (this variable can be changed in the options and it determines how many UUIDs will be printed in the output). In the loop, it replaces the letters x
, M
, and N
in the pattern
with random values. The digit x
is a random hexadecimal number calculated by the expression parseInt(Math.random()*16, 10).toString(16)
. The digit M
is the UUID version. It can be selected in the options and can take values from 1 to 5. When you select one or more versions, they are put into the array ver
and then picked at random via the expression ver[Math.floor(Math.random() * ver.length)]
. The digit N
is the UUID variant. It also can be selected in the options and can take hex values from 0 to f. We store all selected variants in the var
array and choose a random hex value via var[Math.floor(Math.random() * var.length)]
. After replacing all the letters in the pattern
with hex values, it's push()
ed to the uuids
array. When the loop ends, depending on the additional selected options, the generator calls uuids.map()
function to wrap UUIDs in braces, add URN namespace, and to convert hex digits to uppercase. Finally, the elements of the uuids
array are concatenated together thru the separator
character and are printed to the screen.
Created by Browserling
This random uuid generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.