As far as I can tell, there is no documentation stating limitations on the character set used by the Couchbase document key. If that is true, why base64 encode the key? This only serves to add CPU overhead and lengthens the key unnecessarily. Being able to see the statistics for a URL in the console is also of interest and encoding the value prevents that.