About this tool
Base64 is a way of representing binary data using only 64 safe text characters: the letters A-Z and a-z, the digits 0-9, and the symbols + and /. It is used whenever binary content has to travel through a system that only handles text, for example embedding a small image directly in HTML or CSS as a data URI, sending attachments in email (MIME), storing credentials in HTTP Basic authentication headers, and carrying binary values inside JSON or XML.
This tool converts in both directions. In encode mode it turns your text into a Base64 string, handling UTF-8 properly so emoji, accented letters and non-Latin scripts survive the round trip. In decode mode it converts a Base64 string back to readable text. It accepts input with line breaks, missing padding characters and the URL-safe alphabet (which uses - and _ instead of + and /), and it can strip a leading data:...;base64, prefix for you.
You can also encode a whole file, such as a small icon or image, to get a ready-to-use data URI. Keep in mind that Base64 makes data about 33% larger, so it is best for small assets. Most importantly, Base64 is encoding, not encryption: anyone can decode it, so never use it to hide passwords or secrets.
All conversion happens locally in your browser. Your text and files are not uploaded to any server.