#uuid #online #offline #minecraft #mojang


A library for handling and generating Minecraft offline and online UUIDs

3 releases (breaking)

0.3.0 Jan 8, 2023
0.2.0 Jan 8, 2023
0.1.0 Jan 7, 2023

#568 in Authentication


241 lines

uuid-mc Crates.io Crates.io

A Rust implementation of Minecraft's UUID logic. Includes functions to convert between usernames and online UUIDs (via the mojang API), and also crucially includes conversion from usernames to offline UUIDs (which was missing from the rust ecosystem).


Simply include the latest version of uuid-mc in your project. There are examples in the documentation.


Licensed under either of:

at your option.


This library provides functionality for converting usernames to and from Minecraft UUIDs, including support for offline and online players.
You may choose to disable either the offline or online features if you don't need them.

To start, head over to PlayerUuid or look at some of the examples in this crate.


~39K SLoC