Base64
Convert text to Base64 and back. Accents and emoji work: we always go through UTF-8, which is exactly where hastily built tools break.
Your text stays on your device: nothing is uploaded
Paste Base64 and it turns it back into text; anything else becomes Base64. You can always pick the direction yourself.
Advanced options
Uses - and _ instead of + and /, with no trailing =. Not needed when decoding: it is recognised on its own.
Result
Paste something on the left: the result appears as you type.
How it works
Base64 exists to push bytes through places that expect text: an email, a URL, a configuration file. Here accented characters survive the trip, which the browser’s built-in functions do not guarantee. When decoding we accept both alphabets without asking which one it is, and we ignore line breaks. If the decoded bytes are not valid text we tell you, instead of showing you a row of question marks.
Frequently asked questions
- Can I turn a file or an image into Base64?
- No, this works only with text you type or paste. The same goes the other way: decode the Base64 of an image or a PDF and we tell you the bytes are not text, and there is no file to download. A code starting with “data:image/png;base64,” holds exactly that kind of image.
- When do I need the URL-safe alphabet?
- When the Base64 has to live in a web address or a token: it uses - and _ instead of + and /, and drops the trailing = signs. You find it under “Advanced options”, along with the 76-character lines of the email format. When decoding you don’t have to choose, we recognise both. If you have a whole JWT, “Read JWT” shows you what’s inside straight away.
- It says this isn’t valid Base64. What should I check?
- That there are no stray characters: quotes, punctuation, a prefix copied along with the code. Spaces, line breaks and missing trailing = signs are fine. If the message mentions the length, a piece of the code is probably missing: copy it again in full.
- Why is the byte count different from the number of letters?
- Because the count under the result is in bytes, and an accented letter takes two, an emoji four: “ciao 👋” is six characters and nine bytes. Base64 is longer still, because every three bytes become four characters.
What you paste is never uploaded. Anywhere.
The text you type stays in your browser’s memory: no request goes out while you type. You can paste something confidential.
- Processed locallyEverything happens on this page.
- Nothing to upload, nothing to wait forNothing to upload, no waiting.
- Nothing to deleteWe keep nothing: nothing reaches us.