| document type | cmdlet |
|---|---|
| external help file | FabricTools-Help.xml |
| HelpUri | |
| Locale | en-US |
| Module Name | FabricTools |
| ms.date | 04/01/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Convert-FromBase64 |
Decodes a Base64-encoded string into its original text representation.
Convert-FromBase64 [-Base64String] <string> [<CommonParameters>]
The Convert-FromBase64 function takes a Base64-encoded string as input, decodes it into a byte array, and converts it back into a UTF-8 encoded string. It is useful for reversing Base64 encoding applied to text or other data.
Output: Hello, World!
Convert-FromBase64 -Base64String "SGVsbG8sIFdvcmxkIQ=="Output: Some encoded text
$encodedString = "U29tZSBlbmNvZGVkIHRleHQ="
Convert-FromBase64 -Base64String $encodedStringThe Base64-encoded string that you want to decode.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This function assumes the Base64 input is a valid UTF-8 encoded string. Any decoding errors will throw a descriptive error message.
Author: Tiago Balabuch
{{ Fill in the related links here }}