Base64 encoder & decoder

Paste any text and convert it to Base64, or paste a Base64 string and get the original text back. Accented characters and emoji are handled correctly (UTF-8).

πŸ”’ The conversion happens in your browser: nothing is sent anywhere or stored.

What is Base64 encoding used for?

Base64 turns any sequence of bytes into text made up only of letters, digits, +, / and =. You'll run into it everywhere: images embedded in CSS and emails (data URIs), the Authorization: Basic header in HTTP requests, and the first two parts of a JWT. Keep in mind it is not encryption β€” anyone can decode it. Its only job is to carry binary data through channels that accept plain text.

Why UTF-8 support matters

The browser's built-in btoa() function fails on its own with accented letters, symbols like "€" and emoji, because it only accepts 8-bit characters. This tool first converts your text to UTF-8 bytes with TextEncoder, so strings like "cafΓ©" and "πŸ™‚" encode and decode without errors β€” producing the exact same output you would get in Python or Node.js.