---
title: "encode:base64 — Encode MIME Base64"
description: "iXML command encode:base64: Encode MIME Base64."
canonical_url: "https://www.zeyos.com/ixml/ref/encode-base64"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/encode-base64.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# encode:base64 — Encode MIME Base64

ENCODE:BASE64 encodes a value according to RFC 2045 using a 65-character printable subset of US-ASCII to represent arbitrary byte sequences.

MIME Base64 is designed to make binary data survive transport through transport layers that are not 8-bit clean. MIME Base64-encoded data is about 33 percent larger than the unencoded data.

ENCODE:BASE64 is the complement of the DECODE:BASE64 operation.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: string

### Examples

```xml
<output>
	<encode:base64>My name is iXML!</encode:base64>
</output>

<!-- TXkgbmFtZSBpcyBpWE1MIQ== -->
```
