GUID Converter

Oct 18, 2021

GUID Converter is used to convert between GUID formats. It supports standard, integer, hex and base64 formats.

Input Type:
..
The type of the input GUID either explicitly specified or automatically detected
Standard:
..
GUID in standard format
Int:
..
GUID in Number format
Hex:
..
GUID in Hex format
Base64:
..
GUID in Base64 format

Generate random GUID / UUID based on RFC 4122 Version 4

View Tool

GUID

A GUID or (UUID) is a universally unique identifier which is a 128-bit number or (16 byte long).

They are used for generating globally unique IDs that are guaranteed to be unique without using a central repository (like a database) to generate them. Typical uses are in various project files (like .csproj or .aip). Read more at wikipedia.

Comments 6

Luis

Luis Copy Link

  • 3 years ago

How are you realizing the conversion of the Guid to Int, in the code? I'm trying to replicate this same process in a C# script.

sdfsdfsdf

sdfsdfsdf Copy Link

  • 3 years ago

// Turn a GUID into a string and strip out the '-' characters.
BigInteger huge = BigInteger.Parse(modifiedGuidString, NumberStyles.AllowHexSpecifier)

Oysgelt

Oysgelt Copy Link

  • 3 years ago

Any chance you could make the code available for perusal? Would like to understand how to convert from a string which is the Hex representation of a guid (i.e. 5FA6334EA726504981FB33B7DF5B96B0) into the guid's standard format.

Oysgelt

Oysgelt Copy Link

  • 3 years ago

public static String convertMSGUIDToHexFormat(String msGuid) {
return msGuid
.replaceAll("(.{2})(.{2})(.{2})(.{2}).(.{2})(.{2}).(.{2})(.{2})(.{18})",
"$4$3$2$1$6$5$8$7$9")
.replaceAll("-", "")
.toUpperCase(Locale.ROOT);
}

Hello

Hello Copy Link

  • 2 years ago

Can you provide the code snippet for base64 to GUID conversion as I am getting a different value

Skiing1507

Skiing1507 Copy Link

  • one year ago

WARNING: The GUID to int conversion implementation (and possibly others) on this site does not appear to be correct.

History
Oct 18, 2021
Support for 64-bit ZFS GUID
Mar 23, 2019
Tool Launched