MySQL : TO_BASE64(String)

Encodes a string using Base64 and returns the encoded result.


Function

TO_BASE64(str)

Parameters

str - A string value to be encoded in Base64 format.

Return value

Returns a Base64-encoded representation of the input string.

Example

# Note: This function is available starting from MySQL 5.6.1.
mysql> SELECT TO_BASE64('I will comeback soon');
-> SSB3aWxsIGNvbWUgYmFjayBzb29u

Home Page Base64encode List Privacy Policy About Us Contact

This website uses cookies to enhance your experience, personalize content and ads, and analyze our traffic.

©2025 Design by base64encodeonl.com