base64-decode Decode Base64 to text
Examples
Inspect a Basic auth header from a server log
Usage
"dXNlcm5hbWU6c2VjcmV0X3Rva2VuXzEyMw==" | base64-decode Decode a Base64 string found in an email header
Usage
"SGVsbG8gV29ybGQh" | base64-decode Decode a Base64-encoded JSON config payload
Usage
"eyJuYW1lIjoiQWxpY2UiLCJyb2xlIjoiYWRtaW4ifQ==" | base64-decode View source
(input)=>{
try {
return decodeURIComponent(escape(atob(input.trim())));
} catch (e) {
return `Error: ${e.message}`;
}
}