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

C# System.Convert.FromBase64String()

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.

Function

public static byte[] FromBase64String( string s )

Parameters

s - The string to convert

Return value

An array of 8-bit unsigned integers that is equivalent to s.

Example
string base64Encoded = "YmFzZTY0IGVuY29kZWQgc3RyaW5n";
string base64Decoded;
byte[] data = System.Convert.FromBase64String(base64Encoded);
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data);
Github

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

See also:
C# ToBase64String