--- title: encoding.Base64Encode linkTitle: base64Encode description: Returns the base64 decoding of the given content. categories: [functions] keywords: [] menu: docs: parent: functions function: aliases: [base64Encode] returnType: string signatures: [encoding.Base64Encode INPUT] relatedFunctions: - encoding.Base64Decode - encoding.Base64Encode aliases: [/functions/base64, /functions/base64Encode] --- ```go-html-template {{ "Hugo" | base64Encode }} → "SHVnbw==" ```