Base64 Encode

Enter text to encode in Base64 format
Click Save to generate shareable url

Similar Tools

What can you do with this base64 encode online tool

Base64 encode is used when binary data is shipped across a network, because some protocols may interpret data as control character or data can be corrupted when the protocol intepret data as special character combination. So, when data is transfered thru a protocol it's better if you encode data before transmiting and decode it after receiveing.

Function

string base64_encode ( string $data );

Params

$data - Data (String, Text etc) that needs to be encoded.

Return value

Returns encoded data.

Returns FALSE on failure.

Example

$encode = 'Code Beautify';

echo base64_encode($encode);

Function

Base64.encode64 ( data )

Params

data - Data that needs to be encoded.

Return value

Returns base64 encoded data.

Example

require 'base64'

data = 'Code Beautify'

encoded_data = Base64.encode64(data)