Base64 Encoder
Type or paste text and get its Base64 encoding as you type, right in your browser.
Input
Base64 · encoded
EncodedType text in the input panel to encode it.
Base64 maps every 3 bytes onto 4 ASCII characters so binary data survives text-only channels — data URIs, JSON, email. It's an encoding, not encryption: anyone can reverse it. This tool round-trips full UTF-8, so accented and non-Latin text encode and decode cleanly.
- Ratio
- 4 : 3
- Charset
- A–Z 0–9 + /
Related tools
Guides
Type or paste text and this Base64 encoder shows the encoded string as you go. There's no button to press.
Base64 rewrites data using 64 plain characters (A–Z, a–z, 0–9, + and /), with = as padding. That lets it travel through places that only expect text: JSON fields, data URIs, email bodies, HTTP headers. The cost is size. Every 3 bytes become 4 characters, so the output runs about a third longer than the input.
The encoder turns your text into UTF-8 bytes first, so accented letters, non-Latin scripts and emoji come out right. It works on text only, not files, and the text stays in your browser.
What is Base64 encoding?
A way of writing bytes using only printable ASCII characters. People reach for it for:
- Data URIs in HTML and CSS
- HTTP Basic auth headers (user:password, encoded)
- Binary values inside JSON or XML
- Attachments in MIME email
How to use the Base64 encoder
- Type or paste text into the input box.
- The Base64 output appears as you type.
- Click Copy result to grab it.
Example outputs
Some inputs and their encodings:
- hello → aGVsbG8=
- randomly → cmFuZG9tbHk=
- café → Y2Fmw6k= (the é is two bytes in UTF-8)
Frequently asked questions
Is Base64 encryption?
No. Anyone can decode it without a key, so don't use it to hide passwords or tokens.
Why does my output end with = or ==?
Base64 works in 3-byte blocks. When the input isn't a multiple of 3 bytes long, the last block gets one or two = signs as padding.
Does it produce URL-safe Base64?
No, the output uses the standard + and / characters. For the URL-safe variant, swap + for -, / for _, and drop any trailing =.
Can I encode a file or an image?
Not here. The encoder only takes text you type or paste.
Is this Base64 encoder free?
Yes, with no sign-up. Your text isn't sent to a server.
Built and maintained by Bipul Kumar. Found a wrong number or a broken result? Tell me and I'll fix it.