Skip to content

Instantly share code, notes, and snippets.

@pdubb29
pdubb29 / Base64Convert.cs
Created May 1, 2018 15:28
Convert a base 64 string to a string value.
var mystring = ""; //insert string here.
var encodedBytes = System.Convert.FromBase64String(mystring);
var theString = System.Text.Encoding.UTF8.GetString(encodedBytes);
Console.WriteLine(theString);