Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Decodes a base64 string to a UTF-8 string.
Deprecated aliases: base64_decodestring()
Syntax
base64_decode_tostring(base64_string)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| base64_string | string |
✔️ | The value to decode from base64 to UTF-8 string. |
Returns
Returns UTF-8 string decoded from base64 string.
Examples
The following example shows how to use base64_decode_tostring() to decode a base64 string into a UTF-8 string.
print Quine=base64_decode_tostring("S3VzdG8=")
Output
| Quine |
|---|
| Kusto |
Trying to decode a base64 string that was generated from invalid UTF-8 encoding returns null:
print Empty=base64_decode_tostring("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")
Output
| Empty |
|---|
Related content
- To decode base64 strings to an array of long values, see base64_decode_toarray()
- To encode strings to base64 string, see base64_encode_tostring()