--- alias: user-guide-automation-converter-stringtobase64 description: "This converter encodes the input string as base64 using UTF-8 bytes" --- # String to Base64 The **String to Base64** converter receives a string and returns its base64-encoded representation. The encoding uses UTF-8 bytes. ## Settings This converter has no settings. ## Examples | Input | Output | | ------------------ | --------------------- | | `"recipeString"` | `"cmVjaXBlU3RyaW5n"` | | `"hello"` | `"aGVsbG8="` | | `""` | `""` | Table 1: Examples ![Settings panel for the String to Base64 converter.](./images/converter_string_tobase64_settings.png) ### Invalid Input This converter fails when the input is `null` or `undefined`. For what happens to the rest of the chain when a converter fails (the error is logged, reported for monitoring, and the next task does not run), see [[user-guide-automation-converters-index]]. | Input | Result | | ----------- | -------------------------------------------- | | `null` | Fails: the input cannot be encoded. | | `undefined` | Fails: the input cannot be encoded. | Table 2: Invalid Input