--- id: base64encode title: base64Encode Search Operator sidebar_label: base64Encode description: Use the base64Encode operator to convert ASCII or non-ASCII strings into base64-encoded format within your search queries. slug: /help/docs/search/search-query-language/search-operators/base64encode/ canonical: https://www.sumologic.com/help/docs/search/search-query-language/search-operators/base64encode/ --- The `base64Encode` operator takes an ASCII or non-ASCII string and converts it to a base64 string. ## Syntax `base64Encode("") as ` `base64Encode() as ` ## Example The following example returns `base64` with a value of `aGVsbG8gd29ybGQ=`: ```sumo | base64Encode("hello world") as base64 ``` The Base64Encode function supports encoding non-ASCII characters in addition to ASCII. The following example returns `base64` with a value of `5LiWIOOCiOOBhOOBoQ==`: ```sumo | base64encode("世 よいち") as base64 ``` :::note Make sure that the encoding format you use matches the decoding format. :::