Base64 Decode Base64 Encode
More Tools
Other tools: Base64 Image Encoder | Base64 Image Decoder | Url Encoder | Url Decoder

MySQL to_base64()

Encode an input String using Base64.

Function

TO_BASE64(str)

Parameters

str - The String to be encoded

Return value

Returns the Base64-encoded version of str.

Example
#note: This function was added in MySQL 5.6.1.
mysql> SELECT TO_BASE64('base64 encoded string');
-> YmFzZTY0IGVuY29kZWQgc3RyaW5n
Github

https://github.com/base64encode/examples/blob/master/base64encode.sql