Text to Base64 Converter
Encode plain text to a Base64 string.
Try an example:
Converting Text to Base64
Base64 encoding turns text or binary data into a safe ASCII string using 64 characters, so it survives transport through text-only channels like JSON, URLs, and email.
How to convert Text to Base64 by hand
- Take the UTF-8 bytes of your text.
- Group them into 24-bit chunks (three bytes at a time).
- Split each chunk into four 6-bit values.
- Map each 6-bit value to a Base64 character, padding with = if needed.
Worked example
Hello → SGVsbG8=
More converters
- Base64 to Text
- Decimal to Binary
- Binary to Decimal
- Decimal to Hexadecimal
- Hexadecimal to Decimal
- Binary to Hexadecimal
Frequently asked questions
How do I convert Text to Base64?
Take the UTF-8 bytes of your text. Group them into 24-bit chunks (three bytes at a time). Split each chunk into four 6-bit values. Map each 6-bit value to a Base64 character, padding with = if needed. Or just use the converter on this page — it does it instantly. Example: Hello becomes SGVsbG8=.
What is Hello in base64?
Hello converts to SGVsbG8=.
Is this converter free and private?
Yes — it is free and unlimited, and the conversion runs entirely in your browser, so nothing is uploaded to a server.