Base64 Decode Online
The tool helps to decode a base64 code to plaintext, just enter the base64 code then press the button
Enter a base64 string then decode
What is Base64 Decode tool?
Decodes data encoded with MIME base64. The tool supports decoding base64 to plain text
Base64 Decode in Php
This is source simple base64 decode for php language.
https://www.php.net/manual/en/function.base64-decode.php
$stringBase64 = 'aHR0cHM6Ly9zaXRhLmFwcC9iYXNlNjQtZGVjb2Rl';
$plainText = base64_decode($stringBase64);
echo $plainText;
//output: https://sita.app/base64-decode
See also base64 encode in php
Base64 Decode in javascript
This is source simple base64 decode for javascript language.
var stringBase64 = 'c2l0YS5hcHA';
var plainText = atob(stringBase64);
console.log(plaintext);
//output: sita.app
See also base64 encode in javascript
Base64 Decode in Java
This is source simple base64 decode for java language.
import java.util.Base64;
import java.util.UUID;
import java.io.UnsupportedEncodingException;
public class SitaDevStringBase64Decode {
public static void main(String args[]) {
try {
// Encode using basic encoder
String base64encodedString = Base64.getEncoder().encodeToString(
"sita.app".getBytes("utf-8"));
// Decode
byte[] base64decodedBytes = Base64.getDecoder().decode(base64encodedString);
System.out.println("Original String: " + new String(base64decodedBytes, "utf-8"));
} catch(UnsupportedEncodingException e) {
System.out.println("Error :" + e.getMessage());
}
}
}