If you can reverse it, then by definition it isn’t a hash. It’s an encoding. Any encoding will have zero collisions (otherwise it wouldn’t be able to accurately reverse it).
A common encoding for this purpose is base64.
solved What is the best reversable hash algorithm for a URL? (near-Zero collision!) [closed]