How to encode text to Base64
- Type or paste your text into the left box.
- The Base64 result appears instantly on the right.
- Turn on URL-safe if the result will go into a URL, filename or token.
- Copy or download the encoded text.
Example
Hello, Figtray! encodes to SGVsbG8sIEZpZ3RyYXkh.
Common uses
- HTTP Basic authentication headers (
user:passwordencoded in Base64). - Embedding small payloads in JSON, XML or URLs that only accept text.
- Data URIs for inlining small assets in HTML or CSS.
- Encoding values for environment variables and config files.
To turn Base64 back into text, use the Base64 Decoder.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it. Never use it to protect passwords or secrets.
What is URL-safe Base64?
Base64url (RFC 4648 §5) replaces + with - and / with _ and drops the = padding, so the result can be used in URLs, filenames and JWTs without escaping.
Why is the Base64 output longer than my text?
Base64 represents every 3 bytes with 4 characters, so encoded data is about 33% larger than the original.
Does it handle non-English characters?
Yes. Text is encoded as UTF-8 first, so accents, non-Latin scripts and emoji round-trip correctly.