| external help file | Microsoft.PowerShell.TextUtility.dll-Help.xml |
|---|---|
| Module Name | Microsoft.PowerShell.TextUtility |
| online version | |
| ms.date | 08/29/2024 |
| schema | 2.0.0 |
Converts a Base64-encoded string back to its original form.
ConvertFrom-Base64 [-EncodedText] <String> [-AsByteArray] [<CommonParameters>]
The command converts a Base64-encoded string back to its original form. The original form can be a string or any arbitrary binary data.
ConvertFrom-Base64 -EncodedText "SGVsbG8gV29ybGQh"Hello World!
ConvertFrom-Base64 -EncodedText "SGVsbG8gV29ybGQh" -AsByteArray72
101
108
108
111
32
87
111
114
108
100
33
Returns the converted output as an array of bytes. This is useful when the original form is binary data.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe Base64-encoded string to convert back to its original form.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
By default, this command returns the converted data as a string.
When you use the AsByteArray parameter, this command returns the converted data as an array of bytes.