Base64 Encoder & Decoder
Type or paste your text below, then encode or decode. Everything runs on your device.
Free online Base64 encoder and decoder
Base64 is a way of representing binary or text data using only 64 printable ASCII characters. It's widely used to embed images in HTML and CSS, encode email attachments, store data in JSON or URLs, and transmit content safely through systems that only handle plain text. This tool lets you convert text to Base64 and back again with a single click, and it handles full Unicode correctly so emoji and accented characters survive the round trip.
Your text is private
All encoding and decoding happens directly in your browser using the built-in btoa and atob functions. Nothing you type is ever uploaded to a server or stored anywhere — close the tab and it's gone. That makes it safe to use even for sensitive strings like tokens or configuration values.
Frequently asked questions
Does this support Unicode and emoji?
Yes. We encode text as UTF-8 before converting to Base64, so accented letters, non-Latin scripts and emoji all encode and decode without corruption.
Why do I get an "Invalid Base64" message?
Decoding only works on properly formatted Base64. If the input contains characters outside the Base64 alphabet or has an incorrect length, the decode fails and your text is left unchanged.