Base64 Encode & Decode
Encode any text or binary data to Base64 and decode Base64 back to its original form — all instantly in your browser.
More Encoding & Crypto Tools
How to Use Base64 Encode & Decode
Type or paste text into the input box, press Encode to get its Base64 representation, or paste a Base64 string and press Decode to see the original. The tool handles UTF-8 text correctly using the TextEncoder and TextDecoder APIs, so characters outside the Latin-1 range (emojis, Cyrillic, Chinese, etc.) are encoded and decoded faithfully. A Copy button lets you grab the result in one click. Everything runs locally — nothing you type is sent to a server.
About Base64 Encode & Decode
Details & Tips
Frequently Asked Questions
Is Base64 encryption?
Why is my Base64 output about 33% larger than the input?
Does this tool support UTF-8 text like emoji and accented characters?
Can I decode a JWT payload with this tool?
What is the difference between Base64 and Base64URL?
Why do I get an error when decoding a Base64 string?
Can I use Base64 to embed an image in HTML?
Is my text sent to a server when I encode or decode?
What happens if I try to decode binary data (like a PDF) that was Base64-encoded?
Can I encode line by line or should I paste the whole block at once?
Part of These Collections
Also Available As
base64 encoder, base64 decoder, base64 encode online, base64 decode online, text to base64, base64 to text, base64 converter, base64 utf8
Found a Problem?
Let us know if something with Base64 Encode & Decode isn't working as expected.
Thanks — we'll take a look.