Power Query
published
Search
⌃K

Binary.FromText

Binary.FromText

Decodes data from a text form into binary.
function (optional text as nullable any, optional encoding as nullable any) as nullable any

Description

Returns the result of converting text value text to a binary (list of number). encoding may be specified to indicate the encoding used in the text value. The following BinaryEncoding values may be used for encoding.

Category

Binary

Examples

Decode "1011" into binary.
Binary.FromText("1011")
Binary.FromText("1011", BinaryEncoding.Base64)
Decode "1011" into binary with Hex encoding.
Binary.FromText("1011", BinaryEncoding.Hex)
Binary.FromText("EBE=", BinaryEncoding.Base64)