Skip to content

Instantly share code, notes, and snippets.

@mattbalzan
Last active January 6, 2025 11:00
Show Gist options
  • Save mattbalzan/cd9960ea42252d6640cc88cf3b87b2a1 to your computer and use it in GitHub Desktop.
Save mattbalzan/cd9960ea42252d6640cc88cf3b87b2a1 to your computer and use it in GitHub Desktop.
Decode base64 to file
# --[ Decode base64 to file ]
# --[ Matt Balzan | mattGPT.co.uk ]
$b64 = "paste here all the base64 text"
$filename = "path\to\imagefile"
$bytes = [Convert]::FromBase64String($b64)
[IO.File]::WriteAllBytes($filename, $bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment