you want a true globally unique ID if you're not validating uniqueness some other way (like via DB constraint). you can encode using a larger character set to get a shorter ID. Base58 is a good option, removes visually ambiguous characters: example: '2d06b29b-7b47-4ba0-8325-419277d62a09' -> '6ZUv7sYDG4LALynrXCjMGL'
(that repo is just an example, there are many generalize encoding and uuid libs available)