base64_encode
Encode UTF-8 plaintext to standard Base64 (RFC 4648) for safely embedding binary data in HTTP headers, data URIs, or JSON payloads.
Instructions
Encode a UTF-8 plaintext string to standard Base64 (RFC 4648 §4, +/= alphabet). Use when you need to embed binary-safe text in HTTP headers, data URIs, or JSON payloads; note this tool uses the standard alphabet — replace + with - and / with _ manually if URL-safe Base64 is required. Pure local encoding with no network calls. Returns the Base64-encoded string as plain text. Always succeeds for valid UTF-8 input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | UTF-8 plaintext string to encode, e.g. "Hello, world!" or binary-safe data. |