About the Base64 Encoder
Encode text to Base64 or URL-safe Base64, with the size overhead shown.
Also known as: encode base64, text to base64, base64 converter, url safe base64.
How to use this calculator
- Enter text to encode, url-safe output (- and _, no padding), wrap at 76 characters (mime).
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
Every 3 bytes become 4 characters from the 64-character alphabet
Worked example
Using the values pre-filled in the calculator above:
- Text to encode: Hello, World!
- URL-safe output (- and _, no padding): no
- Wrap at 76 characters (MIME): no
the calculator returns:
- Base64: SGVsbG8sIFdvcmxkIQ==
- Input size: 13 B
- Encoded size: 20 B
- Size increase: 53.8%