pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

base64-decode Decode Base64 to text

{ } Encode
Input0 chars
Output0 chars

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}`;
                }
            }

Also useful for