// momentum

tracking since W47

// why it's here

  • Active: last commit today
  • Built almost entirely by one person
  • Health 89/100 with only 47 stars

// how to help

// readme

uuid58

Shorten UUIDs to 22-character Base58 strings, and back. uuid58 is a stable, well-tested encoding with one spec and libraries for JavaScript, Go, Python, Rust, Java, Kotlin, Swift, C#, PHP, Ruby, Dart, and PostgreSQL.

f4b247fd-1f87-45d4-aa06-1c6fc0a8dfaf  โ‡„  XDY9dmBbcMBXqcRvYw8xJ2

Try the converter in your browser โ†’

Why uuid58

  • Short and fixed-length. Always 22 characters instead of 36. Validate with one length check, and store in a fixed-width column such as CHAR(22).
  • URL-safe, no look-alikes. Uses the Bitcoin Base58 alphabet: nothing to escape in URLs, and no 0, O, I, or l to misread.
  • Sortable. Strings sort in the same order as the UUIDs they encode, so UUIDv7 IDs stay time-ordered.
  • Still a UUID. Conversion is lossless both ways. Keep UUID columns in your database, and show uuid58 in URLs, APIs, and logs.
  • Same output everywhere. A string made in Go decodes to the same UUID in Python, Rust, or PostgreSQL.
Read the full README on GitHub โ†—