What this encoder produces
The tool first converts your text to UTF-8 bytes, then represents those bytes using the standard Base64 alphabet. Output uses + and /, with = padding when needed. It produces a single line without adding a newline to your original text.
Text and exact encoded output
Hello → SGVsbG8=café → Y2Fmw6k=. The accented letter uses more than one UTF-8 byte.👋 → 8J+Riw==Hello with a final space → SGVsbG8g. Spaces and newlines are part of the input, so apparently similar text can have different output.Formula / Calculation Method
How to Use This Tool
- Enter the exact text, including any spaces or line breaks you want to preserve.
- Click Encode to Base64.
- Copy the result and check that your destination expects standard Base64.
Common Use Cases
Choose the format your destination expects
This tool generates standard Base64, not Base64url. JWT segments and some URL parameters use a different alphabet and may omit padding; check the receiving system before pasting standard output there. This text encoder does not upload or encode image and document files.
Base64 does not protect a secret
Anyone who has the output can decode it. Use it when a protocol requires a text representation of bytes, not to hide passwords or confidential messages. Encoding happens in this browser. Use the decoder to confirm the exact text comes back.