Base64 Encoder & Decoder
Convert text to Base64 and back, or turn a file into a data URI — with proper UTF-8 handling for emoji and accents.
data: URI you can paste anywhereWhat is Base64, and why use it?
Base64 turns any data — text, images, files — into a plain string of safe ASCII characters that survives email, JSON, URLs and copy-paste without getting mangled.
Encode
Paste text to get its Base64 form. Emoji and accented characters are handled correctly through UTF-8 — no garbled output.
Decode
Paste a Base64 string to read the original text back. Whitespace and URL-safe variants are accepted automatically.
File → data URI
Drop in an image or small file to get a data: URI you can embed directly in HTML or CSS.
Private by design. Every conversion happens right here in your browser using built-in JavaScript. Your text and files are never sent anywhere — we never see them.
Frequently Asked Questions
What is Base64 encoding used for? ▼
Does it handle emoji and accented characters correctly? ▼
What is URL-safe Base64? ▼
+ and /, which have special meaning in web addresses. The URL-safe option swaps them for - and _ and drops the trailing = padding, so the result can be dropped straight into a link.Why does decoding say my Base64 is invalid? ▼
What is a data URI, and when would I use one? ▼
data: string that contains a whole file inline. It's handy for embedding a small image directly in HTML or CSS so it loads without a separate request.