Base64 Decode Base64 Encode CSS Beautifier Url Encoder Url Decoder Image to Base64 Base64 to Image

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

See also:
MySQL from_base64