Internet-Draft alternate-uuid-encoding November 2025
Davis & Peabody Expires 29 May 2026 [Page]
Workgroup:
uuidrev
Internet-Draft:
draft-davis-uuidrev-alternate-uuid-encoding-methods
Updates:
9562 (if approved)
Published:
Intended Status:
Standards Track
Expires:
Authors:
K. R. Davis
Cisco Systems
BGP. Peabody

Alternate UUID Encoding Methods

Abstract

This document presents considerations and best practices for alternate Universally Unique Identifier (UUID) encoding methods observed in the industry.

This document updates [RFC9562] to provide suggested alternate encoding methods, best practices and the various implementation considerations required for choosing the correct encoding for an application.

When selected correctly; these alternate UUID encodings perform better on the wire, in a database, or within various other application logics versus the unnecessarily verbose text representation from [RFC9562].

About This Document

This note is to be removed before publishing as an RFC.

The latest revision of this draft can be found at https://example.com/LATEST. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-davis-uuidrev-alternate-uuid-encoding/.

Discussion of this document takes place on the Revise Universally Unique Identifier Definitions (uuidrev) Working Group mailing list (mailto:uuidrev@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/uuidrev/. Subscribe at https://www.ietf.org/mailman/listinfo/uuidrev/.

Source for this draft and an issue tracker can be found at https://github.com/uuid6/new-uuid-encoding-techniques-ietf-draft.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 29 May 2026.

Table of Contents

1. Introduction

The original "hex and dash", 8-4-4-4-12, format of UUIDs defined by [RFC9562] represents a 128 bit UUID value as a 288 bit value. While this may be great for human readability; the only available UUID text representation suffers poorly for storage, transmission and application parsing.

Due to this shortcoming savvy programmers have been leveraging alternate encoding UUIDs for as long as UUIDs have been around. Bespoke implementations within a single application or a myriad of one-off libraries attempt to cover where the original encoding falls short. While these solve the problem in a bubble: most applications, databases, or standard libraries provide UUIDs as a built-in set of functionality which mirror the IETF documents. If a feature is not defined by an applicable specification documents, the implementors and maintainers do not write the code and thus the end users do not see the feature. Thus while the problem of alternate encodings has been known, and solved, for many years; there is no applicable standard document thus no consistent implementation across UUID implementations.

While overhauling RFC4122 content and creating UUIDv6, UUIDv7, and UUIDv8 for RFC9562; one of the largest topics for discussion was that of alternate encodings. This tremendous show of support for the topic has proven that an update is required. This topic grew in length to the point where it needed to be split out of the revision and into a separate document which focuses solely on the topic of alternate UUID Encoding.

This document will cover the most common alternate UUID Encoding methods used in the field while covering the pros and cons for each. The latter half of this document will cover the best practice and considerations that implementations should factor in while selecting, implementing and even building new alternate UUID encoding method outside of the items covered in Alternate UUID Encoding Methods. These best practices are a result of many years of research, community feedback and inspection of over 55 different alternate UUID encoding implementations across 17 different alphabets. (See Example UUID Base Encoding Tools, Libraries, and resources.)

2. Terminology

2.1. Conventions and Definitions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2.2. Abbreviations

The following abbreviations are used in this document:

UUID

Universally Unique Identifier [RFC9562]

BaseXX

Base where XX references two numeric values with any leading 0 kept. For example Base02, Base10, Base16, Base32, Base64, etc.

3. Alternate UUID Encoding Methods

[RFC9562], Section 4 details that at its core, any given UUID is a 128 bit value which can be represented as Base02 (binary), Base10 (decimal/integer), base16 (hex) and even a custom "hex-and-dash" string format; which is Base16 (hex) with a few extra dash characters added to create a unique UUID string format that is instantly recognizable. Further, the section goes on to discuss other string formats that often use the Hex and Dash format or Integer format.

While these are the "well known" UUID formats. The truth is that since UUID is a single 128 bit data value. It can be easily transposed and represented by many common BaseXX alphabets.

The sheer number combinations of BaseXX Alphabets coupled with the various considerations found in Section 4 make it impossible to cover every single BaseXX Alphabet combination in a single document. Instead this document will focus on the BaseXX Alphabets that feature US-ASCII ([RFC20]) which see the most usage in real world implementations or prototyped well during the early phases of creating this document.

UUID standard library implementors SHOULD consider adding support for at least one alternate encoding defined in this document and MAY provide support for more; including those not listed in this document. If creating or implementing a BaseXX Alphabet for UUID that is not covered already in the following sections refer to the various considerations found in UUID Encoding Best Practices.

For an at-a-glance comparison of the alphabets, refer to Table 1.

Table 1: Alt UUID Encoding Alphabet Comparison
Encoding Variant Alphabet Order
Base16 [RFC9562], Section 4 0123456789ABCDEF with - characters added
Base16 [RFC4648], Section 8 0123456789ABCDEF
Base32 [RFC4648], Section 6 ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
Base32 [RFC4648], Section 7 0123456789ABCDEFGHIJKLMNOPQRSTUV
Base32 [DCB32] 0123456789ABCDEFGHJKMNPQRSTVWXYZ
Base36 --- 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
Base52 --- ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Base58 [Bitcoin] 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
Base62 [IEEEBase62] ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
Base64 [RFC4648], Section 4 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Base64 [RFC4648], Section 5 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
Base64 [Base64sort] $0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
Base85 [Z85] 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#

Note: All UUID examples in this document are alternate encodings of [RFC9562], Section 4's Example UUID starting from either Figure 2 (binary) or Figure 3 (integer). Each section has a a few example encodings but any UUID featured in RFC9562 can be found in the Appendix C table converted to the corresponding BaseXX Alphabet Encoding.

3.1. Base32

Base32 alphabets generally use 5 bits per character to encode the original value and produce a 26 character output which likely have padding present when encoding a 128 bit UUID. These Base32 Alphabets include, but are not limited to, the standards based Base32 from [RFC4648], Section 6, Base32hex from [RFC4648], Section 7, Douglas Crockford's Base32 [DCB32], Z-Base-32 [ZB32], and [GEOHASH].

Base32 alphabets tend to feature the most variance between the characters used by the underlying alphabet since the implementors can be more selective with exactly what characters are present. Character Exclusions, alphabet Sorting and Ordering are almost always present with little overlap between the various implementations.

Base32 tends to be case insensitive since lowercase character a-z are often treated the same as uppercase A-Z due to the fact that the distinct characters are not required to fill out the underlying alphabet. Finally, Special Characters are not usually used with Base32 encoding unless for Padding Characters or Checksum Characters features which can usually be omitted entirely.

Base32 is a great choice for UUID implementations where it is available. Either Base32hex [RFC4648] or Douglas Crockford's Base32 [DCB32] are both recommended options for a 26 character UUID that provides a lot of great features for either machine or human interactions. An example of a UUID using Base32hex can be observed in Figure 1 with a second example for Crockford's Base32 shown in Figure 2.

Z-Base-32 human-oriented base-32 encoding makes to many changes to the underlying alphabet in order to accommodate a very custom use-case and cannot be recommended for use with UUID. Although [GEOHASH] is closer to Base32hex, featuring some specific characters excluded as also seen in Douglas Crockford's Base32 [DCB32]; the logic of removing trailing zero's is a something that no other BaseXX Alphabet does. Further it is possible that the Encoding Availability may prove challenging for implementors trying to leverage GEOHASH Base32 in their applications. Finally, the regular Base32 from from [RFC4648], Section 6 is a fine choice but when compared to base32hex; the sorting benefits make it a superior alphabet.

There are far too many other Base32 Alphabet variants to cover in this document. As such refer to UUID Encoding Best Practices while selecting an alternate Base32 alphabet not listed in this section.

V0EKVBJTTG8T19R502GCI7JBUO
Figure 1: Example UUID encoded as Base32 Hex

3.2. Base36

Base36 Alphabets are similar to Base32 in most every area but utilize 5.1699 bits per encoded character to reduce the size of a 128 bit UUID to 25 characters. The other main difference is using entirely uppercase A-Z characters which impacts Case Sensitivity. The most common Base36 Alphabet uses digits 0-9 and then uppercase A-Z. While the opposite (A-Z0-9) is possible, this impacts Sorting and Ordering thus it is rarely observed.

While the Base36 alphabet sees widespread Encoding Availability it is edged out slightly by the availability of Base32 Alphabets. Further the alphabet offers such little performance gains when compared to base32hex or Crockford's Base32 that it cannot be recommended as a must have encoding for all UUID implementations.

An example of a UUID using Base36 can be observed in Figure 3.

EOSWZOLG3BSX0ZN8OTQ1P8OOM
Figure 3: Example UUID encoded as Base36

3.3. Base52

Base52 is a custom alphabet consisting of entirely the 52 alphabet characters A-Z and a-z which create a 23 character UUID encoding at 5.700 bits per character.

While this not a very widespread BaseXX Alphabet, it does feature some interesting properties. This alphabet contains no Special Characters and excludes 0-9 thus it is safe in many scenarios where a leading digit or special character in the encoded output could prove challenging. This alphabet is ordered in a way that promotes Sorting and Ordering.

An example of a UUID using Base52 can be observed in Figure 4.

FraqvVvqUBoEOFXsPYOPwUm
Figure 4: Example UUID encoded as Base52

3.4. Base58

Base58, traditionally used by [Bitcoin] (and [Flickr]) is a fairly popular alphabet which features similar, but not quite the same, Character Exclusions as Crockford's Base32. Base58 can fit an 128 bit UUID into a 22 character encoding comprising 5.857 bits per character. The encoding does not traditionally leverage Padding Characters and there is little to zero variance among Base58 alphabets with the notable exception being the [Base58xrp] alphabet which features a highly customized order to accommodate very specific data inputs.

Base58's Encoding Availability is hit or miss but the format is well-known enough to encourage it's use with UUID.

An example of a UUID using Bitcoin's Base58 can be observed in Figure 5.

3.5. Base62

[IEEEBase62] defined by the IEEE is the largest BaseXX Alphabet to contain no Special Characters. Base62 can encode a 128 bit UUID as a 22 character output similar to Section 3.4 alphabets using 5.954 bits per character. During research for this document little was observed for libraries, tools or discussion about using this alphabet for encoding UUIDs.

An example of a UUID using IEEE's Base62 can be observed in Figure 6.

3.6. Base64

Base64 Alphabets are the first alphabets to require Special Characters in order to fill out the alphabet sufficiently. As a result these usually do not feature Character Exclusions. Base64 can encode a 128 bit UUID as a 22 character value similarly to Section 3.4 and Section 3.5 while using a full 6 bits per character.

Alphabets vary widely among implementation bases with those found in [RFC4648], Section 4 as Base64 and [RFC4648], Section 5 as Base64url being the two observed the most in the field by implementations already performing alternate UUID Encoding methods. With the introduction of symbols there are a near infinite number of permutations for a Base64 Alphabet. Thus covering them all in this document is not possible. When selecting a Base64 algorithm refer to Usage.

Base64 is recommended as an encoding for alternate UUIDs that want the most compact form possible with the least number of intrusive special characters. Alphabets like Base64url [RFC4648], Section 5 is encouraged for most use cases while [Base64sort] is encouraged when lexicographical sort order is of the utmost importance.

UUID implementors SHOULD implement Base64url which already features widespread Encoding Availability among the industry as of this specification.

An example of a UUID using Base64 can be observed in Figure 7 with a second example for Base64url shown in Figure 8.

+B1Prn3sEdCnZQCgyR5r9g==
Figure 7: Example UUID encoded as Base64

3.7. Base85

Base85 uses 4 bytes encoded as 5 characters representing 6.409 bits per character. Thus a 128 bit UUID can be represented as 20 characters. These alphabets features the most Special Characters but offers the most compact UUID found in the field. These alphabets tend to vary with [Z85], Base85 and ASCII85 being the dominant standouts among the crowd.

Due to their usage with encoding file contents as detailed in Compressing Nullish Characters. This specific compression techninque is not seen in [Z85] or other seen in other BaseXX Alphabets.

Base85 sees some usage in the field with UUIDs and can be used but Z85 is the recommended choice over Base85 or ASCII85.

An example of a UUID using Z85 can be observed in Figure 9.

4. UUID Encoding Best Practices

There are a number of factors which require consideration when choosing the best encoding type for a UUID. What is applicable and important to one use case may not be important to another. As such the authors have compiled all of the various considerations into a set of best practice categories in the upcoming sections.

Each section attempts to discuss the topic in relation to its usage with UUID however many of the topics below can be generalized into considerations for selecting an alternate encoding for any data input.

4.1. Usage

Determining how a UUID will be used is arguably the most important exercise one can do when considering alternate encodings. The result of this analysis will influence all of the following sections in one way or another. UUIDs are used anywhere and everywhere, thus the ubiquitous nature of UUIDs means that there is no single answer to this question and it is one either the implementor or the consumer must both consider.

Take for example a UUID used in text as a logging prefix to uniquely trace and debug functionality through an app. The frequency and size of these logs leans towards a a smaller, compact UUID encoding being preferred over something overly verbose.

If a UUID is to be used by humans in verbal or written situations one may want to omit specific characters as to avoid confusion. Similarly a shorter UUID encoding may also preferable when the characters of the UUID needs to be recited one-by-one over the telephone to remote support to perform some operation. Here both a smaller UUID with character exclusions is preferable to decrease the likelihood of mistakes.

UUIDs used within databases, covered in RFC9562, tend to care about case sensitivity, alphabet ordering and size of the actual encoding which impact both sorting, storage and performance when operating at maximum scale.

UUIDs sent across the wire between machines may benefit from a more compact overall form which reduces bytes on the wire and thus assists with Maximum Transmission Unit (MTU) on limited bandwidth, highly latent networks.

UUIDs used by Internet of Things (IoT) Devices may lean towards an alternate encoding algorithm which is the least computationally expensive as these devices are often limited in that respect.

4.2. Maximum Character Length

The number of characters in a given encoding alphabet is directly correlated to the size of the alternate UUID encoding output.

As a starting point the encodings defined by RFC9562 are Binary, Integer, and Hex. Base02 (Binary) version of a UUID is 128 characters in length consisting of 0s and 1s. The Base10 (decimal/integer) version of a UUID is 39 characters consisting of characters 0 through 9 while the Base16 (Hex) version of a UUID shortens this to 32 characters by using characters 0 through 9 and A through F.

Base32 libraries tend to produce a UUID output of 26 characters in length and base64 drops the output UUID to 22 characters.

With this trend one may be tempted to simply pick the highest BaseXX encoding available and get the smallest encoding output possible however as the output encoding decreases, the base alphabet increases. At a specific point both numeric values, upper and lowercase values may be present and any number of unique symbols can be present in the base alphabet. The addition and ordering of these can have rippling effects that one must properly consider. Further, some of these alphabets require unique math to properly apply to the fixed-length 128 bit UUID which may increase computational complexity in unfavorable ways along with padding to output a similarly fixed-length value.

Simply picking the biggest base alphabet to get the smallest encoding only works if the only consideration an implementation cares about is the actual size of the output UUID and nothing else.

To gleam the maximum size of a given BaseXX encoding convert the binary form of UUID MAX from [RFC9562], Section 5.10. Table 2 details the maximum length of various BaseXX Encoding methods without padding present.

Table 2: Alt UUID Encoding Length Comparison
Encoding Variant Maximum Character Length
Base16 [RFC9562], Section 4 36
Base16 [RFC4648], Section 8 32
Base32 [RFC4648], Section 6 26
Base32 [RFC4648], Section 7 26
Base32 [DCB32] 26
Base36 --- 25
Base52 --- 23
Base58 [Bitcoin] 22
Base62 [IEEEBase62] 22
Base64 [RFC4648], Section 4 22
Base64 [RFC4648], Section 5 22
Base64 [Base64sort] 22
Base85 [Z85] 20

4.3. Padding Characters

Padding characters go hand in hand with the previous section involving the maximum character length of an output alternate UUID encoding.

The most common padding character is the equal sign (=) however it could theoretically be any character possible. It is recommended to use the equal sign since it is the most well-known padding character among the various BaseXX encodings.

Further, this character is almost always in the least significant, right-most section of a given alternate UUID encoding. The padding SHOULD stay in this position and moving the character can have ramifications for sorting.

The inclusion or removal of the padding character determines if a given alternate encoding is to be fixed-length or a variable-length. If an implementation requires that a given UUID alternate encoding always be the same length then padding characters MUST be used. If fixed-length outputs are not a problem then the padding character MAY be omitted.

Table 3 compares padding usage among the BaseXX encoding methods in this document.

Table 3: Alt UUID Encoding Padding Comparison
Encoding Variant Padding
Base16 [RFC9562], Section 4 N
Base16 [RFC4648], Section 8 N
Base32 [RFC4648], Section 6 Y (=)
Base32 [RFC4648], Section 7 Y (=)
Base32 [DCB32] N
Base36 --- N
Base52 --- N
Base58 [Bitcoin] N
Base62 [IEEEBase62] Y
Base64 [RFC4648], Section 4 Y (=)
Base64 [RFC4648], Section 5 Y (=)
Base64 [Base64sort] N
Base85 [Z85] N

4.4. Checksum Characters

Some newer BaseXX encodings include checksum characters that are used to ensure the input/output encoding and decoding is working as expected.

The actual character and algorithm used vary among BaseXX implementations.

Including checksums increases both the maximum size of the output encoding and the computation requirements for encoding/decoding alternate UUID formats.

For alternate UUIDs transmitted among two machines it may be beneficial to include a checksum character to validate the given UUID has not been modified during transport before using it for various operations thus increasing the resiliency of the alternate UUID generation and parsing process.

For applications that simply care about generating UUIDs but do not need to parse, checksums may be omitted entirely. Table 4 compares checksum usage among the BaseXX encoding methods in this document.

Table 4: Alt UUID Encoding Checksum Comparison
Encoding Variant Checksums
Base16 [RFC9562], Section 4 N
Base16 [RFC4648], Section 8 N
Base32 [RFC4648], Section 6 N
Base32 [RFC4648], Section 7 N
Base32 [DCB32] Y (*,~,$,=,U,u)
Base36 --- N
Base52 --- N
Base58 [Bitcoin] Y (SHA256-based)
Base62 [IEEEBase62] N
Base64 [RFC4648], Section 4 N
Base64 [RFC4648], Section 5 N
Base64 [Base64sort] N
Base85 [Z85] N

4.5. Special Characters

After all of the alpha-numeric characters are used a BaseXX alphabet must resort to using special characters such as but not limited to underscore (_), hyphen (-), plus (+), forward slash (/), dollar sign ($), etc. This usually occurs around 62 characters (ten digits 0-9, 26 lowercase english characters, 26 uppercase english characters) but may happen with earlier BaseXX alphabets when specific characters are excluded.

The inclusion of these characters decrease the overall size of the encoded UUID but have implications in regards to not just sorting and readability but often application usage. For example Base64 as defined by [RFC4648] has two alphabets which change the special characters to ensure safe usage with URLs and Filenames. Another example is the ability to double-click a UUID and copy the value. When special characters are present the text highlight starts and stops between these characters. In such a scenario, if this is important one should implement a BaseXX Alphabet with no such characters.

When evaluating a baseXX encoding, care must be taken to ensure the special characters are compatible with the desired use case. Table 5 compares special character inclusions among the BaseXX encoding methods in this document.

Table 5: Alt UUID Encoding Special Character Comparison
Encoding Variant Special Characters
Base16 [RFC9562], Section 4 Y (dash)
Base16 [RFC4648], Section 8 N
Base32 [RFC4648], Section 6 N
Base32 [RFC4648], Section 7 N
Base32 [DCB32] N
Base36 --- N
Base52 --- N
Base58 [Bitcoin] N
Base62 [IEEEBase62] N
Base64 [RFC4648], Section 4 Y (plus, forward-slash)
Base64 [RFC4648], Section 5 Y (dash, underscore)
Base64 [Base64sort] Y (dollar-sign, underscore)
Base85 [Z85] Y (numerous, see Table 1)

4.6. Character Exclusions

Newer BaseXX alphabet may exclude characters and keep only one value present.

This often occurs when multiple characters are similar in shape which which may lead to issues when humans are required to read the characters aloud or manually transpose the characters by hand. Some characters may be excluded for other reasons. For example it may be advantageous to remove 0 as a possible option to eliminate the possibility of leading 0s in the output data which may lead to problems in specific use cases where leading 0s are not permitted or may be inadvertently removed by the application. Finally, in some smaller BaseXX alphabets it is possible to exclude characters because they are not required to fill out the space. The notable example is Base32hex defined by [RFC4648], Section 7 which only uses A through V because the remaining slots are filled by numeric 0-9.

The following character groupings illustrate some of the problematic characters that are similarly shaped.

- 0, O, o
- 1, I, i, L, l
- 2, Z, z
- 5, S, s
- V, v, U, u

Unfortunately there is no standard for which character is omitted or removed. Some BaseXX alphabets may remove the numeric characters while others may remove one or both of the english characters often replacing them with symbols in larger BaseXX alphabets to fill the gaps.

Implementations should vet BaseXX alphabets with character exclusions thoroughly to ensure any possible inclusion of symbols does not cause problems while also verifying that sorting is not impacted if sorting is a requirement. Table 6 compares character exclusions among the BaseXX encoding methods in this document.

Table 6: Alt UUID Encoding Character Exclusion Comparison
Encoding Variant Character Exclusions
Base16 [RFC9562], Section 4 N
Base16 [RFC4648], Section 8 N
Base32 [RFC4648], Section 6 N
Base32 [RFC4648], Section 7 N
Base32 [DCB32] Y (Ii,Ll,Oo,Uu)
Base36 --- N
Base52 --- N
Base58 [Bitcoin] Y (0,I,O,l)
Base62 [IEEEBase62] N
Base64 [RFC4648], Section 4 N
Base64 [RFC4648], Section 5 N
Base64 [Base64sort] N
Base85 [Z85] N

4.7. Case Sensitivity

Case Sensitivity becomes important when the alphabet is above 32 characters. For alphabets below Base32, such as Base16, uppercase (A-Z) and lowercase (a-z) characters may be used interchangeably however in larger BaseXX alphabets the uppercase and lowercase alphabetic characters represent distinct output encodings.

In most scenarios uppercase are placed before lowercase counterparts in the ordering. This ordering directly impacts sorting since most applications will sort uppercase characters before lowercase characters.

The BaseXX alphabet used also changes comparison logics where "aBc does not necessarily qual "AbC" in all output encodings. Table 7 compares case sensitivity among the BaseXX encoding methods in this document.

Table 7: Alt UUID Encoding Case Sensitivity Comparison
Encoding Variant Case Sensitive
Base16 [RFC9562], Section 4 N
Base16 [RFC4648], Section 8 N
Base32 [RFC4648], Section 6 N
Base32 [RFC4648], Section 7 N
Base32 [DCB32] N
Base36 --- N
Base52 --- Y
Base58 [Bitcoin] Y
Base62 [IEEEBase62] Y
Base64 [RFC4648], Section 4 Y
Base64 [RFC4648], Section 5 Y
Base64 [Base64sort] Y
Base85 [Z85] Y

4.8. Sorting and Ordering

Lexicographical sorting of UUIDs is a very important factor to many applications and the ordering of the BaseXX alphabet directly impacts the sorting of the encoded UUID output.

The alphabets generally consist of two or more of the following 4 components with optional omissions as defined by Section 4.6:

1. Numeric Characters: 0-9
2. Uppercase Character: A-Z
3. Lowercase Characters: a-z
4. Symbols: underscore (_), hyphen (-), plus (+), forward slash (/), dollar sign ($), etc.

The ordering of these is traditionally Numeric, Uppercase, Lowercase and Symbols.

It should be noted that some symbols like the dollar sign ($) may sort before numbers while other special such as an underscore (_) will be sorted after the uppercase characters but before the lowercase characters if sorted via their ASCII values.

If an implementation would like to ensure the sort order of the encoded value remains the same as the Base02 (binary) or Base10 (decimal) value one should scrutinize the position of the underlying BaseXX alphabets, their ordering and the includes symbols.

Figure 10 illustrate the ordering trendss for some common BaseXX Alphabets

- Base10: 0123456789
- Base36: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
- Base62: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
- Base64: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_
Figure 10: Alphabet Ordering Comparison

Table 8 compares binary sortting among the BaseXX encoding methods in this document.

Table 8: Alt UUID Encoding Sorting Comparison
Encoding Variant Sorts the Same as Binary
Base16 [RFC9562], Section 4 Y
Base16 [RFC4648], Section 8 Y
Base32 [RFC4648], Section 6 N
Base32 [RFC4648], Section 7 Y
Base32 [DCB32] Y
Base36 --- Y
Base52 --- Y
Base58 [Bitcoin] Y
Base62 [IEEEBase62] Y
Base64 [RFC4648], Section 4 N
Base64 [RFC4648], Section 5 N
Base64 [Base64sort] Y
Base85 [Z85] N

4.9. Compressing Nullish Characters

Some BaseXX alphabets may use varying techniques for compressing nullish characters which can sometimes yeild values smaller than what is cited in Section 4.2.

{Base36} and {Base58} will trim leading zero characters before attempting to encode the data.

{Base85} alphabets may employ a technique to compress a continous four byte sequence of ASCII Space characters as the character lowercase y. {Base85} alphabets may also compress a continous four byte sequence of ASCII Zero characters as the character lowercase z.

4.10. Encoding Availability

The BaseXX alphabet encoding availability may be the second greatest hurdle implementations navigate as they chose a viable alternate encoding for UUID.

For example, traditional Base64url safe sees far more implementations than Base32hex while even fewer have implemented Base62 or even Crockford's Base32 variant.

The ability to utilize a given encoding or provide a customized alphabet may be a limiting factor in implementations. In this scenario implementors will need to write their own, leverage third-party libraries or select a viable alternative.

4.11. Computation

The various base encodings have more or less computational requirements based on the size of the alphabet, the total number of bits encoded per character, if checksums are involved, and if floating point math is required.

For reference Base02 uses 2 bits per character encoding while Base10 uses 4 bits per character and Base32 uses 5 bits and Base64 uses 6 bits. While non non-power-of-two alphabet BaseXX alphabets like Base36, Base58 or Base62 use 5.169, 5.857 5.954 bits respectively where computation is (\log _{2}(XX)) and XX is the alphabet length.

Table 9 compares bits per character among the BaseXX encoding methods in this document.

Table 9: Alt UUID Encoding Bits Comparison
Encoding Variant Bits per Character
Base16 [RFC9562], Section 4 4.000
Base16 [RFC4648], Section 8 4.000
Base32 [RFC4648], Section 6 5.000
Base32 [RFC4648], Section 7 5.000
Base32 [DCB32] 5.000
Base36 --- 5.169
Base52 --- 5.700
Base58 [Bitcoin] 5.857
Base62 [IEEEBase62] 5.954
Base64 [RFC4648], Section 4 6.000
Base64 [RFC4648], Section 5 6.000
Base64 [Base64sort] 6.000
Base85 [Z85] 6.409

4.12. Application Specific

Some applications have very specific restrictions which may influence the alternate UUID encoding selection. This is a limited list compiling some known restrictions that implementations may consider while working with alternate UUID encodings.

4.12.1. URI, URL, URN

Uniform Resource Identifiers (URIs) have a specific list of reserved characters defined by [RFC3986], Section 2.2 which require percent encoding to be used.

It is advisable to avoid these using BaseXX alphabets that include these symbols.

4.12.2. DNS Record

Domain Name Systems (DNS) are case insensitive with the period or dot character (.) being a reserved symbol. [RFC9499], Section 2

Thus BaseXX alphabets that utilize this character or use upper and lowercase values as defined by {#best_practice_sensitivity} should be avoided.

4.12.3. XML, HTML, CSS

Extensible Markup Language ([XML]) namespaces cannot start with a leading numeric character.

While older versions of Hypertext Markup Language ([HTML]}) had restrictions on element identifiers starting with a leading digit. HTML5 does not have any such restrictions. The same goes for Cascading Style Sheet ([CSS]) selectors identifiers where older versions would have issues when identifiers start with digits.

Thus for XML, HTML and CSS is is advantageous to use some advanced emthods such as:

  • The alternate UUID encoding techninque defined in [NCNAME] to ensure that the first digit is always an uppercase alphabet character.

  • Utilize Section 3.3 which always does not start with a special character or digit.

  • Simply prefix the first non-digit/non-special character in the given alphabet. For example, if uppercase A is avaialble; prefix this character to satisfy the constraints.

5. Parsing

This document focuses on generating UUIDs via alternate formats over parsing UUIDs of alternate encoding formats. The generic default for any existing uuid_parse() function SHOULD remain that of [RFC9562], Section 4 hex-and-dash string format.

Implementors MAY provide parse functionality to parse UUIDs of alternate formats but the distrubution of the encoding algorithm among disperate systems is outside of the scope of this document.

In practice this is likely not an issue since most UUID implementations that require UUID parsing are likely aware of the generated encoding format. For example the sender and reciever of a Base64url encoded UUID may be within a known application boundary. It is rare for two differing systems to send UUIDs in a manner that requires the reciever to fully parse a UUID of any format back into binary; rather than using the UUID recieved at face value as a string.

6. Security Considerations

Section Checksum Characters is the only section that deals with any security-related items and this only covers data integrity validation for UUIDs sent across the wire. Otherwise there are no other security considerations.

7. IANA Considerations

This document has no IANA actions.

8. References

8.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/rfc/rfc4648>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC9562]
Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, , <https://www.rfc-editor.org/rfc/rfc9562>.

8.2. Informative References

[Base58xrp]
XRP Ledger, "base58 Encodings", , <https://xrpl.org/docs/references/protocol/data-types/base58-encodings>.
[Base64sort]
Prokhorenko, S., "Base64 Sort", commit 778a6a4, , <https://github.com/sergeyprokhorenko/Base64UUID>.
[Bitcoin]
Bitcoin, "A secure, lossless, and compressed Base62 encoding", commit fae71d3, , <https://github.com/bitcoin/bitcoin/blob/master/src/base58.cpp>.
[CSS]
W3C, "Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification", , <https://www.w3.org/TR/CSS2/syndata.html#value-def-identifier>.
[DCB32]
Crockford, D., "Douglas Crockford's Base32", , <https://www.crockford.com/base32.html>.
[Flickr]
Kellen, "manufacturing flic.kr style photo URLs", n.d., <https://www.flickr.com/groups/api/discuss/72157616713786392/>.
[GEOHASH]
Geohash, "Geohash", commit 3f0ce0b, , <https://github.com/vinsci/geohash/blob/master/Geohash/geohash.py>.
[HTML]
whatwg, "HTML Living Standard", , <https://html.spec.whatwg.org/>.
[IEEEBase62]
IEEE, "A secure, lossless, and compressed Base62 encoding", , <https://ieeexplore.ieee.org/document/4737287>.
[NCNAME]
Taylor, D., "Compact UUIDs for Constrained Grammars", , <https://datatracker.ietf.org/doc/draft-taylor-uuid-ncname/>.
[RFC20]
Cerf, V., "ASCII format for network interchange", STD 80, RFC 20, DOI 10.17487/RFC0020, , <https://www.rfc-editor.org/rfc/rfc20>.
[RFC3986]
Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, , <https://www.rfc-editor.org/rfc/rfc3986>.
[RFC9499]
Hoffman, P. and K. Fujiwara, "DNS Terminology", BCP 219, RFC 9499, DOI 10.17487/RFC9499, , <https://www.rfc-editor.org/rfc/rfc9499>.
[XML]
W3C, "Namespaces in XML 1.0 (Third Edition)", , <https://www.w3.org/TR/2009/REC-xml-names-20091208/>.
[Z85]
iMatix Corporation, "32/Z85", , <https://rfc.zeromq.org/spec/32/>.
[ZB32]
O'Whielacronx, Z., "human-oriented base-32 encoding", , <https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt>.

Appendix A. Acknowledgments

The authors gratefully acknowledge the contributions of

As well as all of those in the IETF community and on GitHub to who contributed to the discussions which resulted in this document.

Appendix B. Changelog

draft-00:

Appendix C. Test Vectors

The test vectors in the upcoming sections map the UUIDs found in RFC9562 Sections to their appropriate BaseXX Alphabet Encoding without padding.

C.1. Generic UUID

Table 10: UUID Test Vectors for RFC9562, Section 4
Encoding Variant RFC9562, Section 4
Base16 [RFC9562], Section 4 f81d4fae-7dec-11d0-a765-00a0c91e6bf6
Base16 [RFC4648], Section 8 f81d4fae7dec11d0a76500a0c91e6bf6
Base32 [RFC4648], Section 6 7AOU7LT55QI5BJ3FACQMSHTL6Y
Base32 [RFC4648], Section 7 V0EKVBJTTG8T19R502GCI7JBUO
Base32 [DCB32] Z0EMZBKXXG8X19V502GCJ7KBYR
Base36 --- EOSWZOLG3BSX0ZN8OTQ1P8OOM
Base52 --- FraqvVvqUBoEOFXsPYOPwUm
Base58 [Bitcoin] Xe22UfxT3rxcKJEAfL5373
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 +B1Prn3sEdCnZQCgyR5r9g
Base64 [RFC4648], Section 5 -B1Prn3sEdCnZQCgyR5r9g
Base64 [Base64sort] Is6JyiUTkGo9S_$9286ajq
Base85 [Z85] {-iekEE4M)R!2>3:Stl>

C.2. NIL UUID

Table 11: UUID Test Vectors for RFC9562, Section 5.9: Nil UUID
Encoding Variant RFC9562, Section 5.9
Base16 [RFC9562], Section 4 00000000-0000-0000-0000-000000000000
Base16 [RFC4648], Section 8 00000000000000000000000000000000
Base32 [RFC4648], Section 6 AAAAAAAAAAAAAAAAAAAAAAAAAA
Base32 [RFC4648], Section 7 00000000000000000000000000
Base32 [DCB32] 00000000000000000000000000
Base36 --- 0
Base52 --- A
Base58 [Bitcoin] 1
Base62 [IEEEBase62] 0
Base64 [RFC4648], Section 4 AAAAAAAAAAAAAAAAAAAAAA
Base64 [RFC4648], Section 5 AAAAAAAAAAAAAAAAAAAAAA
Base64 [Base64sort] F$$$$$$$$$$$$$$$$$$$$$
Base85 [Z85] 00000000000000000000

C.3. MAX UUID

Table 12: UUID Test Vectors for RFC9562, Section 5.10: MAX UUID
Encoding Variant RFC9562, Section 5.10
Base16 [RFC9562], Section 4 FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
Base16 [RFC4648], Section 8 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Base32 [RFC4648], Section 6 77777777777777777777777774
Base32 [RFC4648], Section 7 VVVVVVVVVVVVVVVVVVVVVVVVVS
Base32 [DCB32] ZZZZZZZZZZZZZZZZZZZZZZZZZW
Base36 --- p777777777777777777777777p
Base52 --- GBIWTpZqojFGQPQPXtvbJAv
Base58 [Bitcoin] P8AQGAut7N92awznwCnjuQP
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 /////////////////////w
Base64 [RFC4648], Section 5 _____________________w
Base64 [Base64sort] Izzzzzzzzzzzzzzzzzzzzz
Base85 [Z85] s8W-!s8W-!s8W-!s8W-!

C.4. UUIDv1

Table 13: UUID Test Vectors for RFC9562, Section A.1: UUIDv1
Encoding Variant RFC9562, Section A.1
Base16 [RFC9562], Section 4 C232AB00-9414-11EC-B3C8-9F6BDECED846
Base16 [RFC4648], Section 8 C232AB00941411ECB3C89F6BDECED846
Base32 [RFC4648], Section 6 YIZKWAEUCQI6ZM6IT5V55TWYIY
Base32 [RFC4648], Section 7 O8PAM04K2G8UPCU8JTLTTJMO8O
Base32 [DCB32] R8SAP04M2G8YSCY8KXNXXKPR8R
Base36 --- BHW3F9QSZLQPYH8GTZ35HZ4UE
Base52 --- EddHArfCMSZGGUJvWdXrHHq
Base58 [Bitcoin] Qys2KsgsAKw9ZKupo76FCh
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 wjKrAJQUEeyzyJ9r3s7YRg
Base64 [RFC4648], Section 5 wjKrAJQUEeyzyJ9r3s7YRg
Base64 [Base64sort] I1Beg$_0FGvAE7bqjTnhW5
Base85 [Z85] .znd(LOs.@V=F+O?P<+y

C.5. UUIDv3

Table 14: UUID Test Vectors for RFC9562, Section A.2: UUIDv3
Encoding Variant RFC9562, Section A.2
Base16 [RFC9562], Section 4 5df41881-3aed-3515-88a7-2f4a814cf09e
Base16 [RFC4648], Section 8 5df418813aed351588a72f4a814cf09e
Base32 [RFC4648], Section 6 LX2BRAJ25U2RLCFHF5FICTHQTY
Base32 [RFC4648], Section 7 BNQ1H09QTKQHB2575T582J7GJO
Base32 [DCB32] BQT1H09TXMTHB2575X582K7GKR
Base36 --- 5K8PHACEYCDEGBDB1VWP0EAHQ
Base52 --- CKwZBXIbBzTOnGTcpOSLRtq
Base58 [Bitcoin] CbuPE286MB6RsDazcU7sUy
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 XfQYgTrtNRWIpy9KgUzwng
Base64 [RFC4648], Section 5 XfQYgTrtNRWIpy9KgUzwng
Base64 [Base64sort] GSx0X0Diop4NXbAoe0IE1T
Base85 [Z85] ?1\tb3ped>Lo2muJP>R)

C.6. UUIDv4

Table 15: UUID Test Vectors for RFC9562, Section A.3: UUIDv4
Encoding Variant RFC9562, Section A.3
Base16 [RFC9562], Section 4 919108f7-52d1-4320-9bac-f847db4148a8
Base16 [RFC4648], Section 8 919108f752d143209bacf847db4148a8
Base32 [RFC4648], Section 6 SGIQR52S2FBSBG5M7BD5WQKIVA
Base32 [RFC4648], Section 7 I68GHTQIQ51I16TCV13TMGA8L0
Base32 [DCB32] J68GHXTJT51J16XCZ13XPGA8N0
Base36 --- 8M8SCPFUGFIJ4QENJ0IG77QG8
Base52 --- DWDhSoKPZRoqkgBWaJcOckY
Base58 [Bitcoin] JyZVoFVQxQNmw2bsgr7D1R
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 kZEI91LRQyCbrPhH20FIqA
Base64 [RFC4648], Section 5 kZEI91LRQyCbrPhH20FIqA
Base64 [Base64sort] HGZFYrJh4278igy3UQFJXc
Base85 [Z85] K=Y}zqQE&OO2(xP*D!xe

C.7. UUIDv5

Table 16: UUID Test Vectors for RFC9562, Section A.4: UUIDv5
Encoding Variant RFC9562, Section A.4
Base16 [RFC9562], Section 4 2ed6657d-e927-568b-95e1-2665a8aea6a2
Base16 [RFC4648], Section 8 2ed6657de927568b95e12665a8aea6a2
Base32 [RFC4648], Section 6 F3LGK7PJE5LIXFPBEZS2RLVGUI
Base32 [RFC4648], Section 7 5RB6AVF94TB8N5F14PIQHBL6K8
Base32 [DCB32] 5VB6AZF94XB8Q5F14SJTHBN6M8
Base36 --- 2RTO2O5WTBFMSYWZX7KHQ1Z8I
Base52 --- BFPTsrUJhwfXFHQeVflYshu
Base58 [Bitcoin] 6nTLogGvw2vmQjtATLqvLq
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 LtZlfeknVouV4SZlqK6mog
Base64 [RFC4648], Section 5 LtZlfeknVouV4SZlqK6mog
Base64 [Base64sort] FipaKxuHSLXtMW8aLcfePX
Base85 [Z85] f4KPZ>{GI&MeK63Sii1(

C.8. UUIDv6

Table 17: UUID Test Vectors for RFC9562, Section A.5: UUIDv6
Encoding Variant RFC9562, Section A.5
Base16 [RFC9562], Section 4 1EC9414C-232A-6B00-B3C8-9F6BDECED846
Base16 [RFC4648], Section 8 1EC9414C232A6B00B3C89F6BDECED846
Base32 [RFC4648], Section 6 D3EUCTBDFJVQBM6IT5V55TWYIY
Base32 [RFC4648], Section 7 3R4K2J1359LG1CU8JTLTTJMO8O
Base32 [DCB32] 3V4M2K1359NG1CY8KXNXXKPR8R
Base36 --- 1TM3WVVTP7XVNZXA2TV43IJWM
Base52 --- liRiaXmgJTfBQppyCovyGu
Base58 [Bitcoin] 4oVbpzb8BpnTH1mg11dmWd
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 HslBTCMqawCzyJ9r3s7YRg
Base64 [RFC4648], Section 5 HslBTCMqawCzyJ9r3s7YRg
Base64 [Base64sort] FTmJ4B7mdf$AE7bqjTnhW5
Base85 [Z85] 9)3YwbpWEeV=F+O?P<+y

C.9. UUIDv7

Table 18: UUID Test Vectors for RFC9562, Section A.6: UUIDv7
Encoding Variant RFC9562, Section A.6
Base16 [RFC9562], Section 4 017F22E2-79B0-7CC3-98C4-DC0C0C07398F
Base16 [RFC4648], Section 8 017F22E279B07CC398C4DC0C0C07398F
Base32 [RFC4648], Section 6 AF7SFYTZWB6MHGGE3QGAYBZZR4
Base32 [RFC4648], Section 7 05VI5OJPM1UC7664RG60O1PPHS
Base32 [DCB32] 05ZJ5RKSP1YC7664VG60R1SSHW
Base36 --- 36TWI214QWJ7MGSVQ83NM8WF
Base52 --- BrKaFlCsyjaiCYuzuWvtun
Base58 [Bitcoin] BihbxwwQ4NZZpKRH9JDCz
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 AX8i4nmwfMOYxNwMDAc5jw
Base64 [RFC4648], Section 5 AX8i4nmwfMOYxNwMDAc5jw
Base64 [Base64sort] F0UmAXTQ0wktY3r$kB0naE
Base85 [Z85] 0E(rMD9zXlN8E+*3<O!N

C.10. UUIDv8

Table 19: UUID Test Vectors for RFC9562, Section B.1: UUIDv8
Encoding Variant RFC9562, Section B.1
Base16 [RFC9562], Section 4 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0
Base16 [RFC4648], Section 8 2489E9AD2EE28E008EC932D5F69181C0
Base32 [RFC4648], Section 6 ESE6TLJO4KHABDWJGLK7NEMBYA
Base32 [RFC4648], Section 7 4I4UJB9ESA7013M96BAVD4C1O0
Base32 [DCB32] 4J4YKB9EWA7013P96BAZD4C1R0
Base36 --- 25VHD0YEN79F79OO0TV0BAE9S
Base52 --- skNtHBdXlnQCRPhYqjxSkQ
Base58 [Bitcoin] 5WhDz2zW6g9mHu7EP9hoVq
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 JInprS7ijgCOyTLV9pGBwA
Base64 [RFC4648], Section 5 JInprS7ijgCOyTLV9pGBwA
Base64 [Base64sort] FZXTahAi9D$7v8BhMqZN6$
Base85 [Z85] b-g=/f5?(>J(:6b{k%{w
Table 20: UUID Test Vectors for RFC9562, Section B.2: UUIDv8
Encoding Variant RFC9562, Section B.2
Base16 [RFC9562], Section 4 5c146b14-3c52-8afd-938a-375d0df1fbf6
Base16 [RFC4648], Section 8 5c146b143c528afd938a375d0df1fbf6
Base32 [RFC4648], Section 6 LQKGWFB4KKFP3E4KG5OQ34P36Y
Base32 [RFC4648], Section 7 BGA6M51SAA5FR4SA6TEGRSFRUO
Base32 [DCB32] BGA6P51WAA5FV4WA6XEGVWFVYR
Base36 --- 5G8XXKU1AQGT02ZJGR8PA3EUU
Base52 --- CIhPGFswaUyeIiUVKFQScIW
Base58 [Bitcoin] CNV2iY4mKiTS1uw8RxapEH
Base62 [IEEEBase62] TODO
Base64 [RFC4648], Section 4 XBRrFDxSiv2TijddDfH79g
Base64 [RFC4648], Section 5 XBRrFDxSiv2TijddDfH79g
Base64 [Base64sort] GR45gJE499zOD9CpoCwUjq
Base85 [Z85] tOH@/jw}7nLzRq84E%t?

Appendix D. Example UUID Base Encoding Tools, Libraries, and resources

The following list of libraries, tools, code, packages and other resources is for illustrative and research purposes.

Neither the authors or IETF endorse any of these libraries or guarantee their contents safe and harmless.

Install, download or use this software at your own risk.

D.1. Base32, Base

- https://github.com/chilts/sid
- https://www.jsdelivr.com/package/npm/uuid-encoder
- https://github.com/jetify-com/typeid
- https://docs.crunchybridge.com/api-concepts/eid
- https://hackage.haskell.org/package/ron-0.12/docs/RON-UUID.html
- https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencl_system_uuid.htm

D.2. Base32, Hex

- https://github.com/rs/xid

D.3. Base32, Crockford

- https://github.com/ulid/spec
- https://codeberg.org/prettyid/python
- https://ptrchm.com/posts/based-uuid/
- https://github.com/martinheidegger/uuid-b32
- https://docs.rs/fast32/latest/fast32/
- https://uuid.ramsey.dev/en/stable/rfc4122/version7.html
- https://crates.io/crates/crockford-uuid
- https://rymc.io/blog/2024/uuidv7-typeids-in-diesel/
- https://docs.rs/rusty_ulid/latest/rusty_ulid/

D.4. Base32, NCNAME

- https://www.rubydoc.info/gems/uuid-ncname

D.5. Base36

- https://github.com/paralleldrive/cuid2
- https://www.jsdelivr.com/package/npm/uuid-encoder
- https://duncan99.wordpress.com/2013/01/22/converting-uuid-to-base36/
- https://github.com/salieri/uuid-encoder
- https://stackoverflow.com/questions/62059588/shortening-a-guid
- https://gist.github.com/fabiolimace/508dd2dd9d32fd493b31a5f386d5d4bc
- https://classic.yarnpkg.com/en/package/base36-uuid

D.6. Base58

- https://github.com/cbschuld/uuid-base58
- https://www.linkedin.com/pulse/advantages-using-base58-unique-identifier-databases-lucian-ivanov
- https://github.com/AlexanderMatveev/go-uuid-base58
- https://packagist.org/packages/cbschuld/php-uuid-base58
- https://classic.yarnpkg.com/en/package/uuid58
- https://blog.schochastics.net/posts/2024-08-24_short-uuids/
- https://www.jsdelivr.com/package/npm/uuid-encoder

D.7. Base62

- https://github.com/boundary/flake
- https://github.com/segmentio/ksuid
- https://www.jsdelivr.com/package/npm/uuid-encoder

D.8. Base64

- https://github.com/elastic/elasticsearch/blob/main/server/src/main/java/org/elasticsearch/common/UUIDs.java#L23
- https://github.com/chilts/sid
- https://github.com/twitter-archive/snowflake
- https://github.com/ppearcy/elasticflake/blob/master/src/main/java/org/limberware/elasticflake/Base64.java
- https://www.mongodb.com/docs/manual/reference/method/ObjectId.createFromBase64/
- https://firebase.blog/posts/2015/02/the-2120-ways-to-ensure-unique_68
- https://www.jsdelivr.com/package/npm/uuid-encoder
- https://base64-uuid.com/
- https://rcfed.com/Utilities/Base64GUID
- https://toolslick.com/conversion/data/guid
- https://guidgenerator.com/
- https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abencl_system_uuid.htm

D.9. Base85

- https://stackoverflow.com/a/772984
- http://codehardblog.azurewebsites.net/encoding-uuid-based-keys-to-save-memory/
- https://gist.github.com/Higgs1/fee62d230bd87257e0b0
- https://www.npmjs.com/package/pure-uuid
- https://cjhaas.com/2013/11/12/php-base85-encode-128-bit-integer-guiduuid/
- https://webpowered.tools/textcodec/

Authors' Addresses

Kyzer R. Davis
Cisco Systems
Brad G. Peabody