---
title: encoding.Base64Encode
description: Returns the base64 decoding of the given content.
categories: []
keywords: []
action:
  aliases: [base64Encode]
  related:
    - functions/encoding/Base64Decode
  returnType: string
  signatures: [encoding.Base64Encode INPUT]
aliases: [/functions/base64, /functions/base64Encode]
---

```go-html-template
{{ "Hugo" | base64Encode }} → SHVnbw==
```
