base64_encode
Encode UTF-8 text into Base64 format for safe embedding in JSON, URLs, or HTTP headers. Handles non-ASCII characters correctly.
Instructions
Encode a UTF-8 text string to Base64. Handles non-ASCII characters correctly. Returns the Base64-encoded string. Has no side effects. Use when you need to embed binary or unicode data in JSON, URLs, or HTTP headers. Do NOT use to encode binary files — this tool accepts UTF-8 text only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The UTF-8 text to encode as Base64. |