Forgly

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

  1. Take the UTF-8 bytes of your text.
  2. Group them into 24-bit chunks (three bytes at a time).
  3. Split each chunk into four 6-bit values.
  4. Map each 6-bit value to a Base64 character, padding with = if needed.

Worked example

HelloSGVsbG8=

More converters

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.