Encode any text to Base64 or decode it, with Arabic kept intact, or turn an image or file into a Data URI to embed in CSS or HTML. All in your browser.
The username and password in an Authorization header are Base64-encoded.
Data URI
Embedding a small icon in CSS without an extra request.
Important notes
Do
Use it to move data safely through text systems
Use Data URIs for small icons only
Avoid
Base64 is not encryption: anyone can decode it
Do not embed big images; size grows by about a third and they are not cached separately
Example: an icon inside your CSS
A small SVG or PNG icon of a few kilobytes can become a Data URI placed straight into CSS, so it shows without an extra request. Larger images are better compressed and kept as separate files the browser can cache.
Key terms
Short definitions of what you meet along the way.
Base64
A way to turn any data into 64 safe characters for text-based systems.
UTF-8
The encoding that stores Arabic and every language on the web.
Data URI
A link carrying the file content itself instead of its address, starting with data:.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy