Base64 Encoder & Decoder
Convert text to Base64 or decode Base64 back to plain text. Runs entirely in your browser.
Last updated
How to encode or decode Base64
- Paste your text or Base64 string.
- Click Encode to turn text into Base64, or Decode to turn Base64 back into text.
- Click Copy result, or Swap to work the other way.
About this tool
Base64 turns arbitrary bytes into a set of 64 printable characters (A–Z, a–z, 0–9, +, /), which is why it's used to embed binary-ish data in text formats like JSON, URLs, or email. Encoding uses the browser's native TextEncoder and btoa, so full Unicode text (emoji, accents, non-Latin scripts) is handled correctly rather than just plain ASCII.
Nothing you type here is sent anywhere — the conversion happens locally in your browser tab.
Questions about Base64
What is Base64?
A way of writing any data using only 64 safe characters (A–Z, a–z, 0–9, + and /), so it can travel inside text such as JSON, email or URLs.
Is Base64 encryption?
No. Anyone can decode it, so it hides nothing. Never use it to protect passwords or secrets.
Does it handle emoji and accented letters?
Yes. Text is encoded as UTF-8 first, so emoji, accents and non-Latin scripts round-trip correctly.
Why does Base64 end with = signs?
They’re padding. Base64 works in groups of 3 bytes, and one or two = signs fill the last group when the data doesn’t divide evenly.
How do I convert an image to Base64?
Use the image to Base64 converter, which reads the file and gives you a data URI ready for HTML or CSS.