Encode to Base64
Convert text to Base64, accents and emoji included, with the URL-safe variant; decode it in one click.
Convert text to Base64, accents and emoji included, with the URL-safe variant; decode it in one click.
Runs entirely in your browser: nothing you type is sent or stored.
+ and /. It is used wherever only text is allowed: e-mail attachments, images inside HTML or CSS (data: URLs), HTTP Basic authentication, JSON Web Tokens…
= complete the last group. That is also why Base64 is about a third longer than the original: Hello (5 bytes) becomes SGVsbG8= (8 characters).
é takes 2 bytes, an emoji 4. This is what other tools and programming languages expect, whereas JavaScript's btoa() fails on any accented character.
+ and / have a meaning of their own. Base64URL replaces them with - and _ and drops the final =. JSON Web Tokens use it. Tick “URL-safe” to get it.