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

PHP base64_encode()

base64_encode — Encodes data with MIME base64

Function

string base64_encode ( string $data );

Parameters

$data - The data to encode.

Return values

The encoded data, as a string or FALSE on failure.

Example
<?php
	$str = 'base64 encoded string';
	echo base64_encode($str);
?>
Github

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

See also:
PHP base64_decode