page_title: base64decode - Functions - Configuration Language
description: The base64decode function decodes a string containing a base64 sequence.
page_title: base64decode function reference
description: The `base64decode` function decodes a string containing a base64 sequence. Learn how to use the `base64decode` function in Packer templates.
page_title: base64gzip - Functions - Configuration Language
description: The base64encode function compresses the given string with gzip and then
encodes the result in Base64.
page_title: base64gzip function reference
description: The `base64gzip` function compresses the given string using gzip and then encodes the result in base64. Learn how to use the `base64gzip` in Packer templates.
page_title: testdecodebase64 - Functions - Configuration Language
description: The testdecodebase64 function converts a base64 encoded string, whose underlying encoding is the one specified as argument, into a UTF-8 string.
page_title: testdecodebase64 function reference
description: The `testdecodebase64` function converts a base64-encoded string into a UTF-8 string. Learn how to use the `testdecodebase64` function in Packer templates.
page_title: testencodebase64 - Functions - Configuration Language
description: The testencodebase64 function converts a UTF-8 NFC input string to a base64 blob that encodes the target encoding's rendering of the input string.
page_title: testencodebase64 function reference
description: The `testencodebase64` function converts a UTF-8 NFC string into a base64 blob to match the destination encoding. Learn how to use the `testencodebase64` function in Packer templates.
---
# `textencodebase64` Function
@ -8,7 +8,7 @@ description: The testencodebase64 function converts a UTF-8 NFC input string to
Encodes the input string to the destination encoding.
The output is base64-encoded to account for HCL's string encoding limitations: they must be UTF-8, NFC-normalised.
Packer uses the "standard" Base64 alphabet as defined in
Packer uses the standard base64 alphabet as defined in