To decode Base64, use the following command:
```powershell
PS > [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("XYZ"))
<decoded string>
```
To encode string into base64, use the following command:
```powershell
PS > [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nVnV"))
<base64 encoded string>
```
### See also
1. [[Base64 Encoding]]
### Reference
1.