String Encode
Encodes a string into various formats like Base64, Hex, or raw byte representations such as UTF-16/32.
Inputs#
| Port | Description |
|---|---|
| The UTF-8 string to encode. | |
| The encoding operation to apply. |
Outputs#
| Port | Description |
|---|---|
| The encoded string. |
Addendum#
This node converts a standard UTF-8 string into a different encoded format. The available operations can be grouped into two categories:
Printable Encodings#
These operations produce a human-readable ASCII string, safe for transport in many text-based systems.
| Encoding | Description |
|---|---|
Base64 |
Standard Base64 encoding. |
Base64 (URL Safe) |
A URL-safe variant of Base64. |
Base32 |
Base32 encoding. |
Base16 (Hex) |
Hexadecimal encoding. |
Raw Byte & Pass-Through Encodings#
These operations produce a string that contains the raw byte data of the encoded result. This output will likely not be human-readable and is intended for data interchange, such as writing to a file or using it with the String Decode node.
| Encoding | Description |
|---|---|
UTF-8 |
No-op. The original string is passed through unchanged. |
UTF-16 LE |
UTF-16 Little Endian. |
UTF-16 BE |
UTF-16 Big Endian. |
UTF-32 LE |
UTF-32 Little Endian. |
UTF-32 BE |
UTF-32 Big Endian. |
ID: core/string-encode@v1