UUID to base64 converter for MongoDB Install go install github.com/555f/uuid2base64@v1.0.0 How use? uuid2base64 b5f6a498-14fc-449d-8933-44c2d13ee4fd Output: tfakmBT8RJ2JM0TC0T7k/Q== Now you can use MongoDB in the request: BinData(0, "tfakmBT8RJ2JM0TC0T7k/Q==")