PowerShell Base64 Decoder
Read the script inside a PowerShell encoded command. This workflow extracts the Base64 argument and decodes its UTF-16LE text in your browser, without executing PowerShell.
Opens the CyberChef workbench. Your input is processed locally.
How to use it
- Open the command decoder and paste the complete command line into Input. The recipe recognises -e, -en, -enc and -EncodedCommand followed by the Base64 argument.
- Read the decoded script in Output. If Auto Bake is off, press Bake. Inspect the text; do not run an unfamiliar command.
- If you only have the encoded argument, use the Base64-only decoder below. That skips command-line extraction.
A reproducible example
This synthetic sample uses no live indicators.
Input
powershell.exe -EncodedCommand VwByAGkAdABlAC0ATwB1AHQAcAB1AHQAIAAiAEgAZQBsAGwAbwAsACAAYQBuAGEAbAB5AHMAdAAiAA==
Expected output
Write-Output "Hello, analyst"
Why UTF-16LE matters
PowerShell's -EncodedCommand expects Base64 representing UTF-16LE text. Decoding those bytes as UTF-8 can leave a zero byte between letters. The final Decode text step selects UTF-16LE explicitly. Base64 is an encoding, not encryption.
Empty or unexpected output
An empty result from the command decoder can mean that the argument did not match its pattern. The extractor expects an unquoted argument of at least 20 Base64 characters. For quoted arguments, other abbreviations or shorter values, copy just the Base64 into the Base64-only decoder. Its strict mode reports malformed input. A correctly decoded script may contain more encoded layers; review each layer before choosing another operation.
What this result tells you
Readable text is not a safety verdict. This tool neither runs the script nor checks reputation. The example below only prints a greeting; use it to confirm the decoding workflow.
Reference: Microsoft: PowerShell -EncodedCommand.
Related tools
- Email Header AnalyzerInspect email headers in CyberChef: read Received hops, sender fields and reported SPF, DKIM and DMARC results using the browser-local Email viewer.
- IOC ExtractorExtract IP addresses, URLs, email addresses and hashes from text with CyberChef recipes. Inspect candidate indicators locally and review their source context.
Local processing, clear boundaries
These workflows process input in your browser. The hosted site uses analytics; optional Endpoint lookups are separate actions that can contact external services. See the privacy policy for details.