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

PHP base64_decode()

base64_decode — Decodes data encoded with MIME base64

Function

string base64_decode ( string $data [, bool $strict = false ] );

Parameters

$data - The encoded data.
$strict - Returns FALSE if input contains character from outside the base64 alphabet.

Return value

Returns the original data or FALSE on failure. The returned data may be binary.

Example
<?php
	$str = 'YmFzZTY0IGVuY29kZWQgc3RyaW5n';
	echo base64_decode($str);
?>
Github

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